Jump to content
Sign in to follow this  
superstar

Painting brush freezes for about 1 second after each stroke or mouse-click

Recommended Posts

Hi,

 

Polybrush 0.9.6b0

 

I had created prefabs using ProBuilder (e.g. ProBuilder plane with Subdivide 64 Faces).  There seems to be a 1 second freeze immediately after each left-button mouse click-down is released of the paint brush during texture blend, thus causing some kind of painting action lag.  This lag is noticeable when doing rapid mouse clicks or transitional strokes during painting.

 

So far, I've only experienced this happening when painting on ProBuilder prefabs.  When a ProBuilder object becomes a prefab, this painting action lag occurs.

 

Can you verify if this is occurring?

 

 

 

Thanks

Share this post


Link to post
Share on other sites

Yes, the momentary freezes on ProBuilder prefabs is a known issue.  Specifically, the problem is with Unity's Undo API when working specifically with large serialized arrays in prefab instances.  

 

As a workaround you can use the "GameObject/Break Prefab Instance" menu entry to temporarily un-link the object you're working with, then use "GameObject/Apply Prefab Changes" to re-link.

 

In addition, the next Polybrush update includes significant performance improvements, which should also help with higher vertex count meshes.

Share this post


Link to post
Share on other sites

Thank you for the explanation and the work around as suggested.

 

But there are situations when hundreds (including thousands) of ProBuilder prefab instances are each needed to be painted uniquely in the scene, all of which maybe derived from the same prefab.  So thus, applying changes to the prefab will update the painted appearance to all instances of that prefab globally, making them all look identical and resulting with an adverse affect in this situation.

 

I'm very excited for the next Polybrush update as you have mentioned.

 

 

Thanks again!

Share this post


Link to post
Share on other sites

But there are situations when hundreds (including thousands) of ProBuilder prefab instances are each needed to be painted uniquely in the scene, all of which maybe derived from the same prefab.  So thus, applying changes to the prefab will update the painted appearance to all instances of that prefab globally, making them all look identical and resulting with an adverse affect in this situation.

 

Yup, there's actually a ticket for that in the next update as well.  Instead of painting directly to the mesh Polybrush will use additionalVertexStreams to apply changes.

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  

×