Unity Bug

Significant perf hit when Inspector is open on object with large embedded graph

thermyy 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

I'm using a fairly large state graph embedded onto a single manager object. Prior to 1.4 i was seeing no performance hitches in editor. As of 1.4, I'm now seeing a significant perf drop when my manager object (the one with the embedded graph) is open. 

Selecting another object from the hierarchy clears all hitches. Perf is buttery in the graph window itself. 

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Unity Bug

Hi Thermyy!

Unfortunately that's a Unity quirk: every object displayed in the inspector is deserialized and reserialized at every frame. Since serialization is slow, you see lag spikes.

Possible workarounds:

  • Use a Macro instead of an embed
  • Double-click the canvas background to maximize the editor, thus hiding the inspector