Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Mistakenly fixed low FPS problem

Discussion in 'VR' started by MatanYamin, Mar 20, 2023.

  1. MatanYamin


    Feb 2, 2022
    Hey everyone,

    I have a game in VR, and I had some serious problem with low FPS and I didn't know what was the issue.
    Profiler showed that the major MS was "Gfx.WaitForRenderThread" but I couldn't find an answer to it.

    While i was testing I accidentally pressed the shut-off screen button on my Oculus 2, and when I returned to the game the frames went up to 72!

    This thing happens in every build I make.

    My question is, how do I avoid doing this for the players (Or, in other words, is there a way doing this from script?), and why the heck did it happen from the first place?

    (Hope this will help other developers that encounter the same issue as I did)
    Last edited: Mar 20, 2023