Skip to main content
New Participant
March 18, 2015

ovrFrameTiming usage

Hello!

I'm in the process of writing some code for viewing 360 images on an Oculus but am a bit unclear as to whether I need to worry about the ovrFrameTiming object returned by ovrHmd_BeginFrame ? I'm using SDK distortion (0.4.4), no position tracking, and rendering with timewarp enabled at over 75fps. It seems fine but frame timing is mentioned a few times in the docs and in the examples so I'm a bit confused. In what circumstances should the ovrFrameTiming object be used ?

thanks!

    2 replies

    Inspiring
    March 18, 2015
    You use it like this:

    frameTiming = ovrHmd_BeginFrameTiming(hmd, 0); 
    ovrTrackingState ts = ovrHmd_GetTrackingState(hmd, frameTiming.ScanoutMidpointSeconds);
    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
    babakAuthor
    New Participant
    March 23, 2015
    Hi,

    Thanks for your reply.

    I meant more when/why should it be used ? I'm calling ovrHmd_BeginFrame/ovrHmd_GetEyePoses not the functions you suggested, is that okay ?

    thanks!