Forum Discussion

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

Request : Provide Refresh Rate in the ovrHmd structure

For various reasons (e.g. determining the optimal pattern of physics steps per visual frame) it would be good to know the refresh rate of the HMD.

I know there is a value FrameIntervalSeconds in the ovrFrameTiming structure returned by the ovrHmd_GetFrameTiming function that is called every frame in the game loop. But it looks as if this is a precise measurement of each frame. It would be good to know the refresh rate of the device at the point of initialisation.

What I am guessing would be the way, is a refresh rate value in the ovrHmd structure filled in by the ovrHmd_Create function.

6 Replies

  • Can you see if this works for you:

    ovr_GetFloat(m_hmd, "VsyncToNextVsync", 0.f)
  • Scawen's avatar
    Scawen
    Heroic Explorer
    I did search for things like that but I can't find it in the ovrHmdDesc described in the "OVR_CAPI_0_6_0.h" file in the 0.6.0.1 SDK.
  • Ah, yes. DisplayRefreshRate was added in 0.7 so it will be available soon.