Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: cper on January 11, 2016, 10:18:53 PM

Title: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 11, 2016, 10:18:53 PM
I am trying to disable the Auto Load All Prefabs in Project in the prefab preferences but I can't find the settings, only this option is missing in my preferences window. I am using version 1.8

I have many prefabs that is has Playmaker component so loading all of it in the editor is very slow.

Any suggestion please?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 11, 2016, 11:44:23 PM
There's a Prefabs section in Preferences > General
https://hutonggames.fogbugz.com/default.asp?W117
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 12, 2016, 01:28:08 AM
Yes, but I couldn't find that option. Please see my screenshot as attached.
Thank you.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 12, 2016, 01:37:47 AM
Auto Load Prefabs in Scene should do what you want.

When are you seeing prefabs loading?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 12, 2016, 04:18:29 AM
Let's say I have 300 prefabs that have FSM in the project, even I open a new scene, open the Playmaker Editor, is still loads all prefab with Auto Load Prefabs in Scene Turn off. So even on a empty scene, working with Playmaker editor is extremely slow, once the editor window is closed is back to normal.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 12, 2016, 04:27:01 AM
And why the settings of Auto Load All Prefabs in Project is not available in the General Preference?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 13, 2016, 11:52:09 AM
I'll track down what is auto loading the prefabs. I would expect the Prefab settings to cover all scenarios, but maybe not...

Where are you seeing the term "Auto Load All Prefabs in Project" in the UI? Does it appear in the console? I did a quick search and couldn't find it anywhere...
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 13, 2016, 09:29:33 PM
Is not in the UI, but on I found it playmaker manual, which I think this option is very useful for my case.
https://hutonggames.fogbugz.com/?W644

My project is only getting started and the editor is already very slow, creating a new game object in scene takes few seconds. After closing Playmaker editor everything is smooth. I tried turning off Auto Load prefab in scene but doesn't really help.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 15, 2016, 01:21:08 AM
I am using a prefab with FSM component and using it as many (Hundreds) instances of this prefab in the scenes. What can I do to improve the speed when editing with Playmaker Editor? Any suggestion?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 19, 2016, 02:30:36 AM
I'm looking into this issue this week. What version of Unity are you using?
We used to delay committing edits to prefab instances for exactly this case, but I think something might have changed in Unity 5.3.

You could try collapsing the PlayMakerFSM Inspector in the Unity Inspector panel.

EDIT: Also what specifically is slowing down. I'm trying to repro here by making hundreds of prefab instances in a scene and editor performance is fine... Maybe it's specific actions or edits...?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 20, 2016, 09:12:03 PM
I am using unity 5.3, playmaker 1.8 beta

First thing I tried collapsing the FSM inspector, still very slow. Only improvement when I close the Playmaker Editor itself even with inspector open, then is back to normal speed.

What's slowing down is everything I do in Unity Editor, like creating an empty game object in the scene (right click create object, wait for 2 seconds the object is created in the hierachy). Undo action in Unity editor (takes around 2 second to undo any action with Playmaker Editor open)
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 20, 2016, 09:30:35 PM
Can you email me your project or a download link? (Don't post the project with Playmaker dlls).
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: MAX_POWER on January 24, 2016, 03:53:24 AM
I have the same problem. When collapsing the playmaker editor it starts to run smoothly. I guess what causes the problem is that if you have prefabs that have errors even though they are not used in the scene or anywhere. For example you have a prefab object which has activate game object action set to specify game object and none has been assigned.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 24, 2016, 12:50:09 PM
Does turning off Real-Time Error Checking in preferences help?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 24, 2016, 10:18:26 PM
sorry for the late reply, I am not able to upload the scene as is confidential. I did try to reproduce in a new project but the performance is ok but sometime is slow, kind of random and still trying to figure out to reproduce the issue.

I will try uncheck check error realtime. Thanks.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: MAX_POWER on January 25, 2016, 11:27:27 AM
Disabling real time error checking from the error check preferences did help. Thanks.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: Alex Chouls on January 28, 2016, 12:02:24 PM
There's a new version in the store that fixes editor performance issues with larger FSMs. It should also help with editing prefabs.

Import the latest version and install 1.8.0 beta 41 from the Welcome Window.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on January 28, 2016, 08:57:55 PM
Great! I will give it a try. Thanks.
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: cper on May 13, 2016, 12:34:09 AM
It has been sometime and I am using 1.8.0 beta 43, nothing has changed I still have very slow performance in both Unity and Playmaker Editor. Disable Autoload prefab in scene & real time error checking doesn't help at all.

I also realised, even with the Autoload prefab off my empty scene is still loaded with hundreds of FSM in Playmaker editor so trying to PLAY an empty scene takes more than 10 seconds.

To recreate this, just load a scene with many FSM game object, go to new empty scene. Open Playmaker Editor and you will see all the FSM object still remain in the recent list from previous heavy scene. Is there a way to clear the list so at least I can have run faster on an empty scene?
Title: Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
Post by: mdotstrange on May 31, 2016, 02:53:25 AM
I'm also having the same issue- my scene takes 20-28 seconds to play- I tried all the Playmaker tips I could find on these forums and all the Unity tips I could find like these http://answers.unity3d.com/answers/966405/view.html (http://answers.unity3d.com/answers/966405/view.html) but no speed up-

I tried to resolve it using Unity 5.2 - 5.4 and Playmaker 1.8.0 - 1.8.1 and implementing everything I could find but I still have the long hang before play times-

I tried deleting assets one by one to find out what asset/script was causing the delay- it wasn't just one- things gradually sped up as I deleted assets and Playmaker actions- but I can't do that with my project as I need the assets-

I also tried creating a new project adding assets one by one while timing play mode wait times- with all the assets the load time was only 3 seconds-

Anyone have any secret techniques to share?