Jump to content
Sign in to follow this  
db_mew

Doing a change to a ProBuilder object slows down the scene a lot

Recommended Posts

So for a while I've noticed that sometimes my scenes become slow to start when I hit play in the editor. And I also noticed that if I just make a new scene and put the same stuff in it as the previous scene had, it will start fast again. 

 

Well just now I narrowed it down to something more specific. I have a prototype scene that looks something like this:

 

q5cZAWI.png?1

 

So not horribly complex, but not completely trivial either. Note that the level geometry, as in the orange ground level and the grey "buildings" are all a single mesh. Let me know if it is a known issue that large meshes cause problems.

 

So anyways, If I put that into a new scene as a prefab, it starts quickly just fine. But if I then do a change to it, just something small, like extrude a face, the editor starts to freeze for a couple of seconds between actions and playmode starting will be slow as well.

 

I noticed that if I disable the gameobject, the play mode starts slow, but if I remove it from the scene, it will start fast again.

 

For reference, my computer specs:

i5 3570k @ 4.1Ghz, GTX 670 Windforce 3, 8GB Ram, Unity installed on an SSD drive.

(Note, my Windows temporary folder is on another drive which is not an SSD, in case that plays a role.)

 

Share this post


Link to post
Share on other sites

You're correct - the issue is with prefabs.

 

Unity does *something* with prefabs differently than it does for regular scene objects when registering Undo, and serializing in general.  Since ProBuilder objects can potentially store a lot of information during the serialization process, this process can be a choke point.  As a workaround, you can use "GameObject > Break Prefab Instance" when editing a ProBuilder prefab.

Share this post


Link to post
Share on other sites

Hi guys

 

I seem to be having this problem also, however my ProBuilder object isn't a prefab so that doesn't seem to be the problem for me. 

 

Could it be anything else?

 

edit: Ahh, nevermind, I don't know what I was looking at but it turns out it was indeed a prefab. Please ignore..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×