playMaker

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

Silicon Power

  • Full Member
  • ***
  • Posts: 186
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: 480
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #1 on: November 14, 2019, 09: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: 768
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #2 on: November 14, 2019, 11: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

  • Full Member
  • ***
  • Posts: 186
Re: Should I enable Every Frame option or use a wait for 1 min action?
« Reply #3 on: November 14, 2019, 05:46:09 PM »
Thanks for help.