| 1087 | } |
| 1088 | |
| 1089 | OVR_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 | |
| 1101 | OVR_PUBLIC_FUNCTION(double) ovr_GetTimeInSeconds() |
| 1102 | { |
nothing calls this directly
no outgoing calls
no test coverage detected