Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Shruggger's avatar
Shruggger
Explorer
4 years ago
Solved

How do I set the FPS limit on my Oculus Quest 2 unity application?

My unity project is running super well on Quest 2 at 72hz. I believe the game can run at 90hz but I have no clue where I can set the FPS limit/lock. Where / how do I set this FPS lock for my game?

  • Anonymous's avatar
    Anonymous
    4 years ago

    First call this to get an array of available frame rates and make sure "90" is in the array:

    OVRPlugin.systemDisplayFrequenciesAvailable
    Then you can set the frame rate using this property: 
    OVRPlugin.systemDisplayFrequency
    You can also subscribe to this event. It will get called when the framerate successfully changes,
    or if there's an issue and Oculus resets the frame rate to 72.
    OVRManager.DisplayRefreshRateChanged

     

1 Reply

  • Anonymous's avatar
    Anonymous

    First call this to get an array of available frame rates and make sure "90" is in the array:

    OVRPlugin.systemDisplayFrequenciesAvailable
    Then you can set the frame rate using this property: 
    OVRPlugin.systemDisplayFrequency
    You can also subscribe to this event. It will get called when the framerate successfully changes,
    or if there's an issue and Oculus resets the frame rate to 72.
    OVRManager.DisplayRefreshRateChanged