Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silicon Power on November 14, 2019, 07:42:30 AM

Title: Should I enable Every Frame option or use a wait for 1 min action?
Post by: Silicon Power on November 14, 2019, 07:42:30 AM
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?
Title: Re: Should I enable Every Frame option or use a wait for 1 min action?
Post by: Thore 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.
Title: Re: Should I enable Every Frame option or use a wait for 1 min action?
Post by: tcmeric 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 :)
Title: Re: Should I enable Every Frame option or use a wait for 1 min action?
Post by: Silicon Power on November 14, 2019, 05:46:09 PM
Thanks for help.