playMaker

Author Topic: Playmaker extreme slowdown after upgrade  (Read 1316 times)

Papatwika

  • Playmaker Newbie
  • *
  • Posts: 9
Playmaker extreme slowdown after upgrade
« on: January 06, 2022, 03:16:55 PM »
Hello!

We are currently upgrading some of older projects to newer Unity version for different reasons. During the upgrade process, we also upgraded Playmaker.

We upgraded to Unity 2020.3 from Unity 5.5 and Playmaker to 1.9.4 from 1.7.8.

However, after the upgrade, Playmaker is extremely slow. A scene that took 5-10 seconds to load before now takes around 2min 30 seconds. Not only that, but building our app took ~30mins before, it now takes a very long time, I had to stop the process after 16 hours.

By debugging the scene loading slowdown in the Editor, I was able to determine that the PlaymakerFSM component loading is what takes so long.

Also, looking at the build logs, it seems each of our scenes (75 of them) takes a long time to "Deserialize" (not sure if its Playmaker related?)
Here's a example of a scene loading logs:

Opening scene 'Assets/Scenes/Scenarios/Scenario 08A.unity'
Unloading 41 Unused Serialized files (Serialized files now loaded: 0)
LightingSettings: switching bake backend from 1 to 0.
Loaded scene 'Assets/Scenes/Scenarios/Scenario 08A.unity'
   Deserialize:            39619.324 ms
   Integration:            201.288 ms
   Integration of assets:  9.122 ms
   Thread Wait Time:       -8.957 ms
   Total Operation Time:   39820.777 ms
System memory in use before: 165.0 MB.
System memory in use after: 164.9 MB.

I reverted the Playmaker upgrade and the loading times are back to normal. However I can't use the old version of Playmaker in Unity 2020, I get a bunch of Editor error when opening the Playmaker Editor Window.

Any help on this would be immensely appreciated.
« Last Edit: January 06, 2022, 03:34:45 PM by Papatwika »

Papatwika

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Playmaker extreme slowdown after upgrade
« Reply #1 on: January 10, 2022, 03:23:07 PM »
I was able to fix my issue!

I used the Playmaker tool "Update All FSMs in Build". The script took a while to run, like 2 whole days, but after all the FSM files got updated, my scenes and builds time are back to normal.