Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on May 29, 2014, 02:00:42 PM

Title: Bool Test every frame vs Bool Changed
Post by: jess84 on May 29, 2014, 02:00:42 PM
Is one of these more efficient than the other?

Does it really matter than I have an object with 50 FSMs that rely on Bool Test (every frame) to progress?
Title: Re: Bool Test every frame vs Bool Changed
Post by: cmy on May 29, 2014, 03:44:10 PM
As far as I know all the "Changed" actions use every frame, while the "Tests" and "Compares" just give you the option to toggle it on or off. So it's likely the exact same thing.

I would imagine 50 FSM's running Bool Test every frame would slightly eat away at your FPS.
Title: Re: Bool Test every frame vs Bool Changed
Post by: TrentSterling on May 29, 2014, 10:27:44 PM
50 bool tests would take no time at all. You'd have to worry more about different overheads from the number of gameobjects/fsms.

And 50 isn't much at all. I have 400 FSMs doing all sorts of stuff every frame, without issue.

EDIT: This gives me an idea to add stop stopwatch actions if they don't already exist. Would be nice to profile stuff in PlayMaker without UnityPro.
Title: Re: Bool Test every frame vs Bool Changed
Post by: jess84 on May 30, 2014, 08:18:22 AM
Great, thanks for that... I guess I won't need to rework that :)
(It's achievement unlocking stuff that I have on 1 gameobject / 50 FSMs)