playMaker

Author Topic: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project  (Read 8607 times)

cper

  • Playmaker Newbie
  • *
  • Posts: 17
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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #1 on: January 11, 2016, 11:44:23 PM »
There's a Prefabs section in Preferences > General
https://hutonggames.fogbugz.com/default.asp?W117

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #2 on: January 12, 2016, 01:28:08 AM »
Yes, but I couldn't find that option. Please see my screenshot as attached.
Thank you.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #3 on: January 12, 2016, 01:37:47 AM »
Auto Load Prefabs in Scene should do what you want.

When are you seeing prefabs loading?

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #4 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.

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #5 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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #6 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...

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #7 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.

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #8 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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #9 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...?
« Last Edit: January 19, 2016, 02:51:14 AM by Alex Chouls »

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #10 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)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #11 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).

MAX_POWER

  • Playmaker Newbie
  • *
  • Posts: 40
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #12 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #13 on: January 24, 2016, 12:50:09 PM »
Does turning off Real-Time Error Checking in preferences help?

cper

  • Playmaker Newbie
  • *
  • Posts: 17
Re: 1.8 Playmaker General Preferences - Auto Load All Prefabs in Project
« Reply #14 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.