Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question High CPU:main on empty project

Discussion in 'macOS' started by henners999, Nov 2, 2023.

  1. henners999

    henners999

    Joined:
    May 30, 2020
    Posts:
    59
    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?
     
  2. henners999

    henners999

    Joined:
    May 30, 2020
    Posts:
    59
    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.
     

    Attached Files:

  3. henners999

    henners999

    Joined:
    May 30, 2020
    Posts:
    59
    OK I got it running at 600fps by reverting to Unity 2021. Any ideas why?
     
  4. BACALL

    BACALL

    Joined:
    Feb 21, 2017
    Posts:
    83
  5. henners999

    henners999

    Joined:
    May 30, 2020
    Posts:
    59
    I was using the latest 2022 and 2023 when I posted. Thanks though I’ll have a read
     
  6. henners999

    henners999

    Joined:
    May 30, 2020
    Posts:
    59
    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