Skip to main content
Up and Coming
August 14, 2015

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

    Inspiring
    August 14, 2015
    Can you see if this works for you:

    ovr_GetFloat(m_hmd, "VsyncToNextVsync", 0.f)
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    ScawenAuthor
    Up and Coming
    August 14, 2015
    Thanks, I will check that out.
    Live for Speed - www.lfs.net
    Inspiring
    August 14, 2015
    You can also check "DisplayRefreshRate" in the "ovrHmdDesc_".
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    ScawenAuthor
    Up and Coming
    August 14, 2015
    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.
    Live for Speed - www.lfs.net
    Inspiring
    August 14, 2015
    Ah, yes. DisplayRefreshRate was added in 0.7 so it will be available soon.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    ScawenAuthor
    Up and Coming
    August 14, 2015
    Great, thanks!
    Live for Speed - www.lfs.net