Search Unity

Feedback (Case 1158368) Hierarchy window performance degradation

Discussion in '2019.3 Beta' started by Peter77, May 25, 2019.

  1. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    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.

    upload_2019-5-25_15-19-26.png

    upload_2019-5-25_15-25-54.png

    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.
     
    Last edited: May 25, 2019
    LeonhardP likes this.
  2. alexeyzakharov

    alexeyzakharov

    Unity Technologies

    Joined:
    Jul 2, 2014
    Posts:
    275
    Could you please enable "Profiler Editor" to see what's taking time in the EditorLoop.
     
    Peter77 likes this.
  3. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    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/is...erarchy-contains-a-high-number-of-gameobjects

    prof_1_hierarchy_open.png
    prof_2_hierarchy_open.png


    prof_3_hierarchy_closed.png
     
    Last edited: Jul 11, 2019
  4. alexeyzakharov

    alexeyzakharov

    Unity Technologies

    Joined:
    Jul 2, 2014
    Posts:
    275
    @Peter77 Thank you for the test and for the reporting the issue!
     
    Peter77 likes this.
  5. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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. :(

    // WildStyle
     
    alexeyzakharov and Peter77 like this.
  6. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    Thanks for letting us know you see this issue too, because Unity QA have difficulties to reproduce it.
     
    Last edited: Jun 9, 2019
    alexeyzakharov likes this.
  7. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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
     
    Peter77 likes this.
  8. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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
     
  9. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
  10. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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
     
    Peter77 likes this.
  11. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    This issue is making my Unity productivity a misery.. I'm attaching a screenshot from my profiler of the editor overhead.

    2019-08-17_13h08_14.png

    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
     
  12. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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
     
  13. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    225
    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:
    https://assetstore.unity.com/packages/tools/utilities/qhierarchy-28577

    // WildStyle
     
  14. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    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.
     
    LeonhardP and Prodigga like this.
  15. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    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

    hierarchy_2019_3_0b3.png

    hierarchy_2018_4_6f1.png
     
  16. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    297
    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?
     
    Peter77 likes this.
  17. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,519
    Thanks for testing Peter. Could you please reply to the last message from QA since this is still an issue?
     
    Peter77 likes this.
  18. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    4,012
    Thanks for the reminder, bug-report has been updated now.
     
    LeonhardP likes this.