MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetPredictedDisplayTime

Function ovr_GetPredictedDisplayTime

Revive/REV_CAPI.cpp:1089–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089OVR_PUBLIC_FUNCTION(double) ovr_GetPredictedDisplayTime(ovrSession session, long long frameIndex)
1090{
1091 REV_TRACE(ovr_GetPredictedDisplayTime);
1092
1093 MICROPROFILE_META_CPU("Predict Frame", (int)frameIndex);
1094
1095 uint32_t predictionID = 0;
1096 vr::VRCompositor()->GetLastPosePredictionIDs(&predictionID, nullptr);
1097 predictionID += (uint32_t)(frameIndex - session->FrameIndex);
1098 return (double)predictionID / session->HmdDesc.DisplayRefreshRate;
1099}
1100
1101OVR_PUBLIC_FUNCTION(double) ovr_GetTimeInSeconds()
1102{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected