OpenXR - Remove frame limitation

This commit is contained in:
Lubos
2025-02-13 18:18:15 +01:00
parent 102b515f7c
commit 2567debda5
+1 -7
View File
@@ -294,16 +294,10 @@ bool VR_InitFrame( engine_t* engine ) {
passthroughRunning = (VR_GetConfig(VR_CONFIG_PASSTHROUGH) != 0);
}
// NOTE: OpenXR does not use the concept of frame indices. Instead,
// XrWaitFrame returns the predicted display time.
XrFrameWaitInfo waitFrameInfo = {};
waitFrameInfo.type = XR_TYPE_FRAME_WAIT_INFO;
waitFrameInfo.next = NULL;
frameState.type = XR_TYPE_FRAME_STATE;
frameState.next = NULL;
OXR(xrWaitFrame(engine->appState.Session, &waitFrameInfo, &frameState));
OXR(xrWaitFrame(engine->appState.Session, 0, &frameState));
engine->predictedDisplayTime = frameState.predictedDisplayTime;
XrViewLocateInfo projectionInfo = {};