Search Unity

editor slow in background on mac when behind full window of other apps

Discussion in 'Editor & General Support' started by Gillissie_BnC, Mar 6, 2019.

  1. Gillissie_BnC

    Gillissie_BnC

    Joined:
    Oct 30, 2018
    Posts:
    4
    I'm on an iMac with a 5K monitor, and I have other apps running most of the time.

    In my game I have "Application.runInBackground = true;" set, but when I run my game in the editor, and then switch to another app with its window stretched to fill the screen, the game runs very slow in the background.

    If I reduce the size of the other app's window so that it doesn't fill the full screen, then Unity runs at full speed behind it.

    I don't know if there's anything Unity can do about this, but it seems like the Mac OS is somehow throttling other apps if a window is taking up most or all of the screen on top of Unity.
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,162
  3. Gillissie_BnC

    Gillissie_BnC

    Joined:
    Oct 30, 2018
    Posts:
    4
    It doesn't appear to be App Nap doing it. I don't see App Nap in the Activity Monitor as that article describes. Plus, WebGL does use OpenGL, so it shouldn't be eligible for App Nap.