Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Feedback (Case 1158368) Hierarchy window performance degradation

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

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    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:
    379
    Could you please enable "Profiler Editor" to see what's taking time in the EditorLoop.
     
    Peter77 likes this.
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    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:
    379
    @Peter77 Thank you for the test and for the reporting the issue!
     
    Peter77 likes this.
  5. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    284
    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
     
    ROBYER1, alexeyzakharov and Peter77 like this.
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    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:
    284
    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
     
    cirocontinisio and Peter77 like this.
  8. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    284
    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

    QA Jesus

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

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    284
    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:
    284
    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:
    284
    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:
    284
    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

    QA Jesus

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

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    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
     
    laurentlavigne likes this.
  16. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    417
    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,975
    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

    QA Jesus

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

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
  20. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,975
    Good news, we have a fix and it's on its way to 2020.1 and 2019.3.
     
  21. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    That's indeed good news. Really cool! Looking forward to give it a try :)
     
  22. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
  23. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,975
    Peter77 likes this.
  24. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    I re-tested it with 2019.3.0f1 today and it's overall way worse than before. It's now so unresponsive, that my game is unplayable in the editor, with "EditorLoop" costing between 80-120ms most of the time.

    "SceneHierarchyWindow.Paint" is still twice as slow as in earlier Unity versions, and on top of that is now another 50ms cost somewhere in "EditorLoop".

    profiler_f01.png
     
    Seb-1814 and SugoiDev like this.
  25. FcsVorfeed

    FcsVorfeed

    Joined:
    Aug 15, 2014
    Posts:
    31
    i think the QA computer must be RTX2080TI,so they can not repeat any Performance issues,
    I think it is very unprofessional to use such a test machine

    why i knows? because i repeat a bug mail, i saw the QA recode a video to me,
    I was most surprised the video show me the unbeliveable speed computer,
    my RTX1080+i7 9700k was like a turtle to him, is titanX or rtx2080+i9?
     
    Last edited: Nov 28, 2019
  26. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    2,749
    This is the third identical post of this. I would ask that you please don't cross-post or hijack other threads.
     
    siggigg and rastlin like this.
  27. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,975
    The backport landed two days ago and will be in .0f2, I've asked the team to check on your report and see if there was another performance regression introduced in the meantime.
     
    konsic, AcidArrow, BTStone and 2 others like this.
  28. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    Thank you! :)
     
  29. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,975
    Thank you!
     
    Peter77 likes this.
  30. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    Tested 2019.3.0f3, but "SceneHierarchyWindow.Paint" continues to be about twice as slow as in 2018.4. In this version the number of GCAlloc's improved/reduced though.

    upload_2019-12-12_6-16-42.png

    As mentioned earlier, performance when playing the game in the editor has worsen significantly. It peaks up to 140ms per frame, which wasn't the case with earlier Unity versions.
    upload_2019-12-12_6-22-32.png

    upload_2019-12-12_6-20-49.png

    Please let me know what I can do to help you find/fix this issue.
     
    Last edited: Dec 12, 2019
    WildStyle69, Griz, bjarkeck and 5 others like this.
  31. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,757
    @Unity_Javier sent me an early build of 2019.3.0f4, which comes with various performance improvements. The editor does feel faster than earlier Unity 2019.3 releases, but there are still a few things that should get ironed out.

    I looked at "SceneHierarchyWindow.Paint" again and it improved in 2019.3.0f4, it costs about 12ms most of the time, but also going back and forth between 10ms to 18ms in my tests. Still slower than earlier Unity releases, but closer than the previous beta release.
    upload_2019-12-16_10-46-29.png

    More importantly to me, I no longer seem to be able to reproduce the 140ms spikes! I wouldn't consider this with about 50ms editor overhead solved yet, but a step into the right direction.
    upload_2019-12-16_10-46-50.png


    upload_2019-12-16_10-48-11.png
     
unityunity