Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: mdotstrange on August 13, 2016, 08:17:18 AM

Title: Editor slowdown when PM 1.8.2 editor is active
Post by: mdotstrange on August 13, 2016, 08:17:18 AM
I'm using Unity 5.3.6f1 and just upgraded to Playmaker 1.8.2f7

Whenever the Playmaker editor tab is active the whole Unity editor lags- here's a video displaying the behavior https://www.youtube.com/watch?v=GqjDXWXlhYc (https://www.youtube.com/watch?v=GqjDXWXlhYc)

When the editor tab is not shown the editor is snappy- as soon at the editor is shown creating objects lags, changing tags/layers lags- it slows down a lot of functions in Unity

I tested it on both Windows and OS X and the slowdown happens on both with the same project- hiding the editor tab gets rid of the problem- I tried disabling all of Pm's debugging/error checking options but the lag is still there-

This slowdown didn't happen in 1.8.1.x with the same project- new empty projects are not affected- so there's something in my project that is causing the lag with 1.8.2.x

I'll just hide the editor when not using it for now- but if anyone has any ideas for other solutions please let me know- thanks!
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: mdotstrange on August 14, 2016, 11:08:06 AM
I'm also getting lags/slowdown when working with Fsm's- going to downgrade to 1.8.1.x as I didn't have these issues with that version-
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Alex Chouls on August 14, 2016, 12:08:35 PM
Hmmm, can't reproduce the issue here.
Can you submit a bug report so we can get more info on your setup?
Also do you have any other editor extensions imported?
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: mdotstrange on August 14, 2016, 02:37:54 PM
I duplicated the project and deleted all other editor extensions and still had the issue-

Yes, I'll send a bug report- thx

Its a strange bug as I've tested with combinations of Pm 1.8.1 and 1.8.2 and Unity 5.3.5 and 5.3.6

I've been able to isolate the problem a little more- it seems its the action browser that is causing the slowdown, not the Pm editor itself-

If I open the project with the default workspace- everything is fine- if I open the Playmaker editor- The Unity Editor works fine but manipulating fsm's slows/lags-

As soon as I open the action browser then the slowdown/lag starts for all of Unity and Playmaker whenever the Pm editor is shown- if I hide the Pm editor- things go back to normal-

Could this mean that it is a custom action that is causing the slowdown? Thx
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Alex Chouls on August 14, 2016, 03:15:40 PM
Quote
Could this mean that it is a custom action that is causing the slowdown?

It's possible. Do you have any actions selected in the action browser when the slowdown occurs? There is a new CallMethodEditor in 1.8.2. You could try deleting that to see if its the culprit.

How many FSMs do you have in your project and the open scene? Trying to repro here...
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: mdotstrange on August 14, 2016, 03:46:24 PM
No actions selected when slowdown occurs-

I tried deleting CallMethodEditor and a few custom actions I added around the time I noticed the lag- still having the editor issue-

Its a game I've been working on for ever a year- to play the game in the Unity Editor it takes about 20 seconds to start after pressing play-

There's probably well over 100-150 fsm's in the project- 50 or so arraymaker lists and 50 or so arraymaker hash tables- So lots of prefabs with fsm's, lists, hash tables, and custom actions-


Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Alex Chouls on August 14, 2016, 03:50:13 PM
Any chance you could share the project privately so I could profile it? Or Profile Editor on your end and post a screenshot?
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: mdotstrange on August 14, 2016, 04:22:06 PM
I found the culprit! :)

If I uncheck "Auto refresh action usage" in the action browser settings the slowdown/lag is gone

(http://i.imgur.com/0c0lzEW.png)

So making sure this is unchecked this fixes my issue- thx for the help Alex
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Alex Chouls on August 14, 2016, 05:13:55 PM
Thanks for posting that - I'll investigate why that's slower in 1.8.2!
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: play_edu on August 16, 2016, 05:07:39 AM
Yes Same issue Here and Also With unity 5.4.0f3 Pm 1.8.2 Give me this warning.


OnLevelWasLoaded was found on PlayMakerFSM
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Gua on August 17, 2016, 06:53:38 AM
I have same issue on Unity 5.2.4 as soon as I close last peace of Playmaker interface, fps returns to normal.
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Gua on August 25, 2016, 01:26:54 PM
I've noticed that it slows down, when there's a gameobject with FSM opened in inspector. Canvas itself doesn't slow it down for me.
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: play_edu on August 25, 2016, 09:54:46 PM
+1
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: play_edu on September 27, 2016, 11:51:56 PM
bump
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: Ony on November 22, 2016, 01:35:39 PM
I'm still having this trouble in 1.8.3.f4 :( I've unchecked the "Auto refresh action usage" setting but no improvement). I'm using Unity 5.4.2f2.
Title: Re: Editor slowdown when PM 1.8.2 editor is active
Post by: play_edu on February 06, 2017, 11:32:57 PM
Bump

Any update On this.