cancel
Showing results for 
Search instead for 
Did you mean: 

ovrFrameTiming usage

baba-k
Honored Guest
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 2

cybereality
Grand Champion
You use it like this:

frameTiming = ovrHmd_BeginFrameTiming(hmd, 0); 
ovrTrackingState ts = ovrHmd_GetTrackingState(hmd, frameTiming.ScanoutMidpointSeconds);

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!