Performance Issues in Unity Editor on Ventura (2021.3.10f1)

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:
8544038--1141757--Unity_lag.pngNormal state:
8544038--1141754--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

3 Likes

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.
8545550--1142135--upload_2022-10-28_1-33-21.png

3 Likes

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 Likes

i have lags on editor also after updating Ventura!

using m1 Mac Pro!

1 Like

Hopefully this issue can be solved, really annoying

2 Likes

The issue is somewhere around the script machine, when you move a graph for a certain ammount of time the throttling is appear

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

2 Likes

I am having the same issue. Did anyone fill a bug report yet?

1 Like

Same issue, with 2020.3.41f

1 Like

Here Editor CPU running even not running the game!

I am using M1 Mac Pro!!!
https://capture.dropbox.com/eceQWTg1Z0tMizjB

2 Likes

Same problem for me. When Editor slows down I only get 15fps and time is spend mainly in
GC.MarkDependencies.

2 Likes

same for me. I tried 2021.3.12f and 2022, the same at all

1 Like

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.

1 Like

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.

5 Likes

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):

Unloading 28 Unused Serialized files (Serialized files now loaded: 0)
Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize:            36.996 ms
    Integration:            313.983 ms
    Integration of assets:  0.102 ms
    Thread Wait Time:       -0.047 ms
    Total Operation Time:   351.034 ms
Unloading 313 unused Assets / (111.8 KB). Loaded Objects now: 19351.
Memory consumption went from Unknown to Unknown.
Total: 194.533672 ms (FindLiveObjects: 2.000461 ms CreateObjectMapping: 1.645294 ms MarkObjects: 190.680803 ms  DeleteObjects: 0.204552 ms)

Request Asset Garbage Collect because used heap size increased from Unknown to Unknown, exceeding the threshold of 4294967295.98 GB.
Unloading 29 Unused Serialized files (Serialized files now loaded: 0)
Unloading 313 unused Assets / (Unknown). Loaded Objects now: 19418.
Memory consumption went from Unknown to Unknown.
Total: 192.050848 ms (FindLiveObjects: 1.996828 ms CreateObjectMapping: 1.527987 ms MarkObjects: 188.303244 ms  DeleteObjects: 0.221791 ms)

Request Asset Garbage Collect because used heap size increased from Unknown to Unknown, exceeding the threshold of 4294967295.98 GB.
Unloading 15 Unused Serialized files (Serialized files now loaded: 0)
Unloading 15 unused Assets / (0.9 MB). Loaded Objects now: 19418.
Memory consumption went from Unknown to Unknown.
Total: 191.931415 ms (FindLiveObjects: 1.986690 ms CreateObjectMapping: 1.474565 ms MarkObjects: 188.407655 ms  DeleteObjects: 0.061484 ms)
3 Likes

That “from Unknown to Unknown” looks suspicious.

1 Like

Same, ever since I installed Ventura beta in august it started doing this

Before Lagging
8565755--1146368--Screenshot 2022-11-06 at 03.52.56.jpg

While Lagging

8565755--1146377--Screenshot 2022-11-06 at 03.57.58.jpg

1 Like

I think Odin inspector cause the problems. Just removed it yesterday, now my editor work normal

I am also using Odin. Will check without it.

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.

2 Likes