Search Unity

Question Mistakenly fixed low FPS problem

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

  1. MatanYamin

    MatanYamin

    Joined:
    Feb 2, 2022
    Posts:
    110
    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