pub unsafe extern "C" fn ovr_GetPredictedDisplayTime(
    session: ovrSession,
    frameIndex: c_longlong
) -> f64
Expand description

Gets the time of the specified frame midpoint.

Predicts the time at which the given frame will be displayed. The predicted time is the middle of the time period during which the corresponding eye images will be displayed.

The application should increment frameIndex for each successively targeted frame, and pass that index to any relevant OVR functions that need to apply to the frame identified by that index.

This function is thread-safe and allows for multiple application threads to target their processing to the same displayed frame.

In the even that prediction fails due to various reasons (e.g. the display being off or app has yet to present any frames), the return value will be current CPU time.

in session Specifies an ovrSession previously returned by ovr_Create.

in frameIndex Identifies the frame the caller wishes to target. A value of zero returns the next frame index.

Returns the absolute frame midpoint time for the given frameIndex.

see ovr_GetTimeInSeconds