High CPU:main on empty project

I’ve noticed within the last few weeks that all my project are running with 5ms CPU:Main even with nothing going on (all lighting minimal etc). I’ve profiled the game and it’s spending 80% of the time on gfx.waitforpresentongfxthread.
I used to get 1ms at most before. Have upgraded to Sonoma on my M1 Macbook and just wondering if maybe it’s due to that working on things in the background as it seems to be waiting on the GPU to do something. I’ve tried debugging the GPU using XCode but can’t work out to run the project, it just launches the Hub every time.

Has anyone else noticed similar?

See attached for in game profiling. Looks to be waiting on the GPU but that’s as far as I can tell what’s up.



OK I got it running at 600fps by reverting to Unity 2021. Any ideas why?

What Unity version were you using? Maybe it’s related to this Unity Issue Tracker - [macOS] FPS decrease when entering the Play Mode

I was using the latest 2022 and 2023 when I posted. Thanks though I’ll have a read

I just tried the latest LTS version of 2022 and it’s still running log a dog so I don’t think it was related to the above bug