Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tricky_Widget on April 07, 2015, 12:52:29 PM

Title: Does an FSM waiting for an event use CPU? [Solved]
Post by: Tricky_Widget on April 07, 2015, 12:52:29 PM
I'm developing for mobile, so CPU use is critical.  I find I have a lot of FSMs that are sitting idle waiting on an event.  Are these waiting FSMs using CPU cycles while they're waiting?

Thanks!
Title: Re: Does an FSM waiting for an event use CPU?
Post by: Lane on April 07, 2015, 01:02:08 PM
To my understanding its the same cost as a script doing nothing in Update(), but waiting for other valid methods to be invoked.

Which is basically moot.

You should see anything unusual in the profiler.
Title: Re: Does an FSM waiting for an event use CPU?
Post by: Tricky_Widget on April 07, 2015, 01:03:15 PM
To my understanding its the same cost as a script doing nothing in Update(), but waiting for other valid methods to be invoked.

Which is basically moot.

Fantastic, thanks!  :D