Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
baba-k's avatar
baba-k
Honored Guest
10 years ago

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

  • You use it like this:

    frameTiming = ovrHmd_BeginFrameTiming(hmd, 0); 
    ovrTrackingState ts = ovrHmd_GetTrackingState(hmd, frameTiming.ScanoutMidpointSeconds);
  • baba-k's avatar
    baba-k
    Honored Guest
    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!