playMaker

Author Topic: Should I enable Every Frame option or use a wait for 1 min action?  (Read 208 times)

Silicon Power

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Hi. I want to know which is better for a better performance? Enabling every frame or using a wait action too loop every 1 second?

Thore

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #1 on: November 14, 2019, 07:25:25 AM »
Checking once a second is better for performance than checking 60 times per second, but it might depend on what precisely is set on every frame. Generally, be mindful of performance, but don’t worry too much at the beginning.

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 743
    • View Profile
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #2 on: November 14, 2019, 09:02:54 AM »
Just to add on to that. Wait actions also run on the update loop. The wait action also checks a float during that update. So if the everyframe action is just checking a bool, int, float, etc, it would be the defacto the same.

Agreed, worry not, unless you have 1000 fsm doing this :)

Silicon Power

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #3 on: November 14, 2019, 03:46:09 PM »
Thanks for help.