Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Performance Issues in Unity Editor on Ventura (2021.3.10f1)

Discussion in 'macOS' started by TeorikDeli, Oct 27, 2022.

  1. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    Hi,

    I updated (regretfully) my macOS to Ventura a couple of days ago and since that, Unity Editor lags too much. But this is not happening always. Sometimes changing an opened scene solves it for a while. Closing and opening Unity again always solves it. But this is an annoying bug. It doesn't matter if I am using Unity on external monitor or built-in display, or turbo boost on/off, or work while on charging or not. I am not sure what triggers it (BUT maybe, changing uxml file or uss file could be the reason because I am usually using UI Toolkit these days). I check the profiler (attaching screenshots) and also the activity monitor (I think the CPU usage is doubled while lagging). By the way, there no lag when I am in Play Mode =/

    Is anyone else having the same or similar problem?

    While lagging:
    Unity_lag.png Normal state:
    Unity_nolag.png

    Unity 2021.3.10f1 (and some of the packages/plugins)
    RiderFlow
    Addressables
    Ide.Rider
    ParrelSync
    Normcore
    Odin
    Animation Rigging
    2D Sprites
    URP

    macOS Ventura 13.0
    2019 MBP, 2.3 GHz i9, 32 GB, 5500M 8 GB
     
    AlejMC, TomKowalczuk and Wrymnn like this.
  2. weishao_gsngames

    weishao_gsngames

    Joined:
    Dec 5, 2017
    Posts:
    1
    Seeing the exact same problem on Macbook pro 2021, Apple M1 Pro, MacOS Ventura.
    Cpu usage is pretty high when idling. Unity UI is barely responding when it happens.
    Restarting Unity fixes the issue, but then it reoccurs very often.
    upload_2022-10-28_1-33-21.png
     
    Last edited: Nov 15, 2022
    TomKowalczuk, Wrymnn and TeorikDeli like this.
  3. mertkalak

    mertkalak

    Joined:
    Nov 28, 2019
    Posts:
    4
    Having the same issue on M1 Max 64gb with MacOS Ventura 13.0. Lagging too much and affecting my workflow drastically. CPU is being throttled by UnityEditor.
     
  4. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    i have lags on editor also after updating Ventura!

    using m1 Mac Pro!
     
    TomKowalczuk likes this.
  5. olahnorbert1997

    olahnorbert1997

    Joined:
    Jun 29, 2020
    Posts:
    2
    Hopefully this issue can be solved, really annoying
     
    xiaobin_drpanda and TomKowalczuk like this.
  6. olahnorbert1997

    olahnorbert1997

    Joined:
    Jun 29, 2020
    Posts:
    2
    The issue is somewhere around the script machine, when you move a graph for a certain ammount of time the throttling is appear
     
  7. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    373
    Having the exact same issue, it is super annoying and editor gets unusable after like 10 minutes until you restart it. Then again the same thing over and over
     
    xiaobin_drpanda and TomKowalczuk like this.
  8. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    122
    I am having the same issue. Did anyone fill a bug report yet?
     
    TomKowalczuk likes this.
  9. sergioabril

    sergioabril

    Joined:
    Jan 11, 2016
    Posts:
    33
    Same issue, with 2020.3.41f
     
    TomKowalczuk likes this.
  10. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    tea_n_cake and TomKowalczuk like this.
  11. Thomas7781

    Thomas7781

    Joined:
    Nov 1, 2022
    Posts:
    2
    Same problem for me. When Editor slows down I only get 15fps and time is spend mainly in
    GC.MarkDependencies.
     
    AlejMC and TomKowalczuk like this.
  12. thanghp456

    thanghp456

    Joined:
    Feb 12, 2017
    Posts:
    4
    same for me. I tried 2021.3.12f and 2022, the same at all
     
    TomKowalczuk likes this.
  13. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    I think no one filled a bug report yet; but I will (probably today). I wasn't sure if it is just me or everyone had the same performance issue.
     
    TomKowalczuk likes this.
  14. JoeFazzino

    JoeFazzino

    Unity Technologies

    Joined:
    Sep 7, 2021
    Posts:
    1
    I personally have not had this issue on my M1 Pro but this thread has been flagged to the correct people. I do encourage people to submit bug reports in general we'd rather have many duplicate bug reports than none of an issue that is seriously affecting developers flow.
     
    konsnos, AlejMC, TomKowalczuk and 2 others like this.
  15. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    I submitted the bug report (Case IN-21919).

    And I looked at the Editor.log, this problem might be related to Asset Garbage Collect (maybe something is changed in Venture about the memory?). This is where the lag starts (Request Asset Garbage Collect message logs constantly):

    Code (CSharp):
    1. Unloading 28 Unused Serialized files (Serialized files now loaded: 0)
    2. Loaded scene 'Temp/__Backupscenes/0.backup'
    3.     Deserialize:            36.996 ms
    4.     Integration:            313.983 ms
    5.     Integration of assets:  0.102 ms
    6.     Thread Wait Time:       -0.047 ms
    7.     Total Operation Time:   351.034 ms
    8. Unloading 313 unused Assets / (111.8 KB). Loaded Objects now: 19351.
    9. Memory consumption went from Unknown to Unknown.
    10. Total: 194.533672 ms (FindLiveObjects: 2.000461 ms CreateObjectMapping: 1.645294 ms MarkObjects: 190.680803 ms  DeleteObjects: 0.204552 ms)
    11.  
    12. Request Asset Garbage Collect because used heap size increased from Unknown to Unknown, exceeding the threshold of 4294967295.98 GB.
    13. Unloading 29 Unused Serialized files (Serialized files now loaded: 0)
    14. Unloading 313 unused Assets / (Unknown). Loaded Objects now: 19418.
    15. Memory consumption went from Unknown to Unknown.
    16. Total: 192.050848 ms (FindLiveObjects: 1.996828 ms CreateObjectMapping: 1.527987 ms MarkObjects: 188.303244 ms  DeleteObjects: 0.221791 ms)
    17.  
    18. Request Asset Garbage Collect because used heap size increased from Unknown to Unknown, exceeding the threshold of 4294967295.98 GB.
    19. Unloading 15 Unused Serialized files (Serialized files now loaded: 0)
    20. Unloading 15 unused Assets / (0.9 MB). Loaded Objects now: 19418.
    21. Memory consumption went from Unknown to Unknown.
    22. Total: 191.931415 ms (FindLiveObjects: 1.986690 ms CreateObjectMapping: 1.474565 ms MarkObjects: 188.407655 ms  DeleteObjects: 0.061484 ms)
     
  16. LorenzoNuvoletta

    LorenzoNuvoletta

    Joined:
    Apr 28, 2014
    Posts:
    54
    That "from Unknown to Unknown" looks suspicious.
     
    TeorikDeli likes this.
  17. TomKowalczuk

    TomKowalczuk

    Joined:
    Aug 10, 2018
    Posts:
    7
    Same, ever since I installed Ventura beta in august it started doing this

    Before Lagging
    Screenshot 2022-11-06 at 03.52.56.png

    While Lagging

    Screenshot 2022-11-06 at 03.57.58.png
     
    AlejMC likes this.
  18. thanghp456

    thanghp456

    Joined:
    Feb 12, 2017
    Posts:
    4
    I think Odin inspector cause the problems. Just removed it yesterday, now my editor work normal
     
  19. Thomas7781

    Thomas7781

    Joined:
    Nov 1, 2022
    Posts:
    2
    I am also using Odin. Will check without it.
     
  20. AW_GAMES

    AW_GAMES

    Joined:
    Dec 31, 2018
    Posts:
    13
    I have the same problem on my Mac Studio M1 Max with Ventura. Editor UI, Camera Pan in Editor and Play Mode are laggy. I've tried Unity 2021 and 2022, and everytime performance is bad. I think problem is with Apple Silicon builds, because when I opened Intel Build - the Editor performance was much better than native Silicon.
     
    tea_n_cake and TomKowalczuk like this.
  21. TomKowalczuk

    TomKowalczuk

    Joined:
    Aug 10, 2018
    Posts:
    7
    I don’t have Odin installed but I have the exact same issue. Unity works smoothly for a certain amount of time usually 5-15min and then it becomes very slow but Play mode works fine and restarting unity fixes it
     
    Onat-H likes this.
  22. thelosev

    thelosev

    Joined:
    Feb 13, 2014
    Posts:
    4
    Same situation. No Odin.
    Macbook Air M1 2020 16/512
    macOS Ventura 13.0 (was fine on 12)
    Unity 2021.3.9f1 (Apple Silicon or Intel version - it doesn't matter)
     
    TomKowalczuk likes this.
  23. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    Well, good news, Unity has confirmed the bug and reported to the internal with UUM-19011 ID
     
  24. Wrymnn

    Wrymnn

    Joined:
    Sep 24, 2014
    Posts:
    373
    Do you have any link?
     
    TomKowalczuk likes this.
  25. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    122
    I guess he did only get a link for the internal ticket system yet. I hope the issue gets fixed soon, it's getting really annoying!
     
    TomKowalczuk likes this.
  26. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    Yeap, they sent me the internal id. I will update it when they send me.
     
    AlejMC, Matheuz and TomKowalczuk like this.
  27. Tyrannicus100BC

    Tyrannicus100BC

    Joined:
    Apr 24, 2015
    Posts:
    5
    Just chiming in, same issue here. Looking forward to a fix from Unity.
     
    AlejMC and TomKowalczuk like this.
  28. EChegodaev

    EChegodaev

    Joined:
    Dec 3, 2021
    Posts:
    1
    Same situation. We have 6 employees on macos
    4 upgraded to Ventura and all have lags. 2 not upgraded and no lags.
    After downgrade lags disappears.
     
    AlejMC and TomKowalczuk like this.
  29. echeg

    echeg

    Joined:
    Aug 1, 2012
    Posts:
    90
    Same problem
    macOS Ventura 13.0 macbook pro m1
     
    TomKowalczuk likes this.
  30. Thanitsak

    Thanitsak

    Joined:
    Jan 4, 2016
    Posts:
    116
    Same for me Macbook Pro M1 Max 64GB, no Odin and it's lagging so much.
     
    TomKowalczuk likes this.
  31. ppixu

    ppixu

    Joined:
    Jan 28, 2014
    Posts:
    5
    "Reimport All" helped for a while, but lagging started again after booting unity. Seems to depend on project complexity also.
     
  32. TomKowalczuk

    TomKowalczuk

    Joined:
    Aug 10, 2018
    Posts:
    7
    I tried an empty project and it still does it, usually after exiting play mode
     
  33. Matheuz

    Matheuz

    Joined:
    Aug 27, 2014
    Posts:
    29
    Coming here just to reinforce the problem, hoping for a fix soon.
     
    AlejMC likes this.
  34. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    I have paid 3000$ for M1 Mac Pro,but I use Unity like I feel like paid 30$ for a computer.Very laggy!!!
     
  35. Havokki

    Havokki

    Joined:
    Jun 28, 2015
    Posts:
    118
    I currently only work on code, since interacting with anything in the editor is impossible due to how laggy it is. Same issues with both existing projects and new empty ones.

    Sent a bug report: IN-23060
     
  36. AW_GAMES

    AW_GAMES

    Joined:
    Dec 31, 2018
    Posts:
    13
    Yeah, performance in Unity Editor on Ventura is horrible. I can't even use Editor smoothly on empty project with empty scene...
     
  37. peter_hall

    peter_hall

    Unity Technologies

    Joined:
    Sep 3, 2019
    Posts:
    16
    Just wanted to let you know that we can reproduce this internally and are working on getting it fixed as soon as we can!
     
  38. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    almost 3 weeks passed,waiting for solution ....
     
    Thanitsak likes this.
  39. thelosev

    thelosev

    Joined:
    Feb 13, 2014
    Posts:
    4
    That's great to hear! You go team *rocket emoji*
     
    AlejMC likes this.
  40. ItsaGts

    ItsaGts

    Joined:
    May 25, 2021
    Posts:
    7
    finger crossed
     
  41. AW_GAMES

    AW_GAMES

    Joined:
    Dec 31, 2018
    Posts:
    13
    Sounds amazing! Can u please provide issue tracker ID for that thread (if it exists)? It would be nice to be able to follow the progress
     
    TomKowalczuk likes this.
  42. Onat-H

    Onat-H

    Joined:
    Mar 11, 2015
    Posts:
    195
    I switched to the Rosetta Editor for the timing, hoping this would resolve it until this bug is fixed, but it's also present in the Rosetta Editor (running on M1 Max/Ventura ). I hope this is fixed soon, as currently I can use the editor for about 10-15 min at a time until it gets unusable and I have to restart.
     
    TomKowalczuk and SurreyMuso like this.
  43. SurreyMuso

    SurreyMuso

    Joined:
    Mar 16, 2020
    Posts:
    63
    I'm on 2021LTS and the latest version (2022.3.14) was released today. Sadly, no mention of a fix, nor anything in Known Issues. My work machine is still on Monterey but I stupidly updated my laptop to Ventura. Am lecturing next week so need to downgrade my laptop this weekend. My fault, of course...
     
    TomKowalczuk likes this.
  44. timgreenberg

    timgreenberg

    Joined:
    Feb 8, 2021
    Posts:
    13
    Same problem here on Ventura, Unity 2022.1.23f, visible stuttering when moving the viewport camera around, also high CPU usage and seems to be getting worse over time. Was working fine on Monterey
     
    TomKowalczuk likes this.
  45. justdizzy

    justdizzy

    Joined:
    Mar 8, 2016
    Posts:
    89
    I was a click away from installing Ventura. Really glad I found this first.
     
  46. Arthur-OnChainStudios

    Arthur-OnChainStudios

    Joined:
    Jun 9, 2021
    Posts:
    3
    I also submitted a ticket. IN-23659. Anyone have any luck working around the issue? I'm about to have to reformat my computer to go back to Monterey and not looking forward to it.
     
    Onat-H likes this.
  47. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    146
    4 week passed, poor unity.we cannot work on our projects.
     
    xiaobin_drpanda likes this.
  48. AW_GAMES

    AW_GAMES

    Joined:
    Dec 31, 2018
    Posts:
    13
    For me, Intel Based Editor working smooth – maybe use Unity in Rosetta compatibility mode until Unity drops an update with this issue resolved
     
  49. TeorikDeli

    TeorikDeli

    Joined:
    Apr 6, 2014
    Posts:
    146
    Well, Unity responded, "the internal review failed" o_O I really don't know what I have to do :eek:

    Screenshot 2022-11-23 at 21.03.32.png
     
  50. TomKowalczuk

    TomKowalczuk

    Joined:
    Aug 10, 2018
    Posts:
    7
    Are they for real ? It's unusable and it has been for months if you used the beta version.
     
    IgorBoyko, Wrymnn and TeorikDeli like this.