(Case 1158368) Hierarchy window performance degradation

Playing the game attached to Case 1108597 in 2019.3.0a3 editor feels very slow and unresponsive compared to earlier Unity versions. Looking at the Profiler shows a 43ms cost on “EditorLoop” pretty much all the time.

What can I do to get rid of this cost and make it playable in the editor again? “Deep Profile” unfortunately does not reveal any information on that EditorLoop entry.

Profiler Hierarchy

ProfilerTimeline

I did not have any object selected where an expensive inspector window was shown. Only the game view, hierarchy, project window and console was visible.

1 Like

Could you please enable “Profiler Editor” to see what’s taking time in the EditorLoop.

1 Like

Hi Alex, thanks for the quick help!

“Profile Editor” revealed the performance degradation is caused by the Hierarchy window. When I close the Hierarchy window, performance is significantly better. I believe still slower than in earlier versions, but much better.

I’ve submitted a bug-report and also attached the saved profiler data of both cases, with and without having the Hierarchy window open.

(Case 1158368) 2019.3: Hierarchy window performance degradation
https://issuetracker.unity3d.com/issues/2019-dot-3-hierarchy-window-performance-degradation-when-hierarchy-contains-a-high-number-of-gameobjects

Hierarchy Window Open

4589155--427831--prof_1_hierarchy_open.png
4589155--427834--prof_2_hierarchy_open.png

Hierarchy Window closed 4589155--427837--prof_3_hierarchy_closed.png

3 Likes

@Peter77 Thank you for the test and for the reporting the issue!

1 Like

Thanks @Peter77

I’ve just upgraded my project from Unity 2018.4.1f1 to Unity 2019.1.5f1 – apart from the editor being slower than the previous versions (again), I’m also seeing a significant performance issue when the Hierarchy window is open. It actually makes the editor near unusable when I’m editing multiple scenes!

Only work around right now, is to have the hierarchy window open, but not visible… then only switch to it when you want to do something specific (which is often), grind your teeth trying to complete said task and then hide the hierarchy window again after.

Please fix this urgently and back-port for the fix to Unity 2019.1.5f1 as well. I cannot believe a bug like this made it into a major release. :frowning:

// WildStyle

3 Likes

Thanks for letting us know you see this issue too, because Unity QA have difficulties to reproduce it.

1 Like

That’s interesting, it’s really apparent on my project(s).

  • If I reset the layout to Default the problem is gone / much better.
  • However, soon as I select something in the hierarchy things start slowing down.
  • If I use a multi monitor layout and my usual layout with hierarchy on the other monitor it’s even slower.
  • Add a multi scene setup and it gets slower yet again.
  • If I reset to my custom layout it gets faster for a moment, then as soon as I select something it starts again.

// WildStyle

2 Likes

Adding to this - when I click to expand / collapse something in the hierarchy it takes around 3 seconds after I’ve clicked for the action to happen!

// WildStyle

I was able to reproduce it in an isolated project and submitted the bug-report:
(Case 1161198) 2019.3: Hierarchy window gets slower with more GameObjects

QA just replied with:

6 Likes

Wow - this is great news, thank you Peter!

Looking at the description on the issue, seems there could be more to it than this based on my experiences. However, hopefully the issues relate, so fixing the root cause will fix all.

// WildStyle

1 Like

This issue is making my Unity productivity a misery… I’m attaching a screenshot from my profiler of the editor overhead.

I can see where it’s happening… but not the details beyond that. My development workflow has been suffering from this for months now. Any idea when this will be fixed?

// WildStyle

Another weird side-effect / symptom – when in play mode the same editor hierarchy view performance is much better. When stopping play the issue comes back again the same.

// WildStyle

Update here: I tracked my problem to an asset, it looks like one of the editor upgrades changed something with the assets DLL. Whatever it was caused the performance issue. I deleted and reinstalled the asset and now the Hierarchy is performing much better.

Asset in question was:

// WildStyle

QA replied to the issue and wrote they’re no longer able to reproduce it with Unity 2019.3.0b3. I will take a look at it next weekend and report back.

2 Likes

Re-tested with 2019.3.0b3 today. It improved a lot.

It went down from about 40ms (0a3) to 18ms (0b3). I also tested 2018.4.6f1, where it costs about 9.5ms here.

  • 2019.3.0a3 = 40 ms

  • 2019.3.0b3 = 18 ms

  • 2018.4.6f1 = 9.5 ms

2019.3.0b3 4962863--482843--hierarchy_2019_3_0b3.png

2018.4.6f1 4962863--482840--hierarchy_2018_4_6f1.png

1 Like

Jumping on this thread, isn’t 18ms a bit too much? Maybe there is room for more optimization…or is this to be expected with the hierachy view?

1 Like

Thanks for testing Peter. Could you please reply to the last message from QA since this is still an issue?

1 Like

Thanks for the reminder, bug-report has been updated now.

1 Like

I re-tested it with 2019.3.0b9 today and it’s still about twice as slow as in 2018.4. It’s the same as I wrote earlier:

Good news, we have a fix and it’s on its way to 2020.1 and 2019.3.

5 Likes