playMaker

Author Topic: Editor slowdown when PM 1.8.2 editor is active  (Read 7681 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Editor slowdown when PM 1.8.2 editor is active
« on: August 13, 2016, 11: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

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!
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #1 on: August 14, 2016, 02:08:06 PM »
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-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #2 on: August 14, 2016, 03: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?

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #3 on: August 14, 2016, 05: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
« Last Edit: August 14, 2016, 05:48:19 PM by mdotstrange »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #4 on: August 14, 2016, 06: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...

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #5 on: August 14, 2016, 06: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-


Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #6 on: August 14, 2016, 06: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?

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #7 on: August 14, 2016, 07:22:06 PM »
I found the culprit! :)

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



So making sure this is unchecked this fixes my issue- thx for the help Alex
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #8 on: August 14, 2016, 08:13:55 PM »
Thanks for posting that - I'll investigate why that's slower in 1.8.2!

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #9 on: August 16, 2016, 08: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
« Last Edit: August 16, 2016, 08:10:27 AM by play_edu »

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #10 on: August 17, 2016, 09: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.

Gua

  • Beta Group
  • Sr. Member
  • *
  • Posts: 309
    • Andrii Vintsevych
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #11 on: August 25, 2016, 04: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.

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #12 on: August 26, 2016, 12:54:46 AM »
+1

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #13 on: September 28, 2016, 02:51:56 AM »
bump

Ony

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Editor slowdown when PM 1.8.2 editor is active
« Reply #14 on: November 22, 2016, 03: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.