Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ragtag Shawn on September 11, 2020, 12:08:34 AM

Title: Any way to block PlayMakerFSM.Update from being called...
Post by: Ragtag Shawn on September 11, 2020, 12:08:34 AM
One way to improve performance in Unity is to only have one MonoBehaviour call all the updates for all your components. This drastically saves on the overhead cost of the C# to C++ invocation.

In the profiler it shows MonoBehaviour calling PlayMakerFSM.Update for every FSM on every GameObject.

I tried setting the update to manual and calling the update myself and that works, but there are still calls to the MonoBehaviour PlayMakerFSM.Update methods. So even though it's not doing anything in the update it still pays the overhead cost of calling it. Which means setting it to manual update and calling it with one component doesn't save anything.

Is there anyway to setup PlayMaker to use this pattern to gain performance?
Title: Re: Any way to block PlayMakerFSM.Update from being called...
Post by: djaydino on September 20, 2020, 05:08:40 AM
Hi.
there are several setting in Playmaker Preferences which can help improve performance, especially on the debug section.