diff options
Diffstat (limited to 'LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp')
-rw-r--r-- | LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp b/LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp index 217310c..f335675 100644 --- a/LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp +++ b/LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp @@ -99,7 +99,6 @@ double DistortionRenderer::WaitTillTime(double absTime) return 0.0; double newTime = initialTime; - volatile int i; while (newTime < absTime) { @@ -124,7 +123,7 @@ double DistortionRenderer::WaitTillTime(double absTime) if (sleptTime > remainingWaitTime) { OVR_DEBUG_LOG_TEXT( - ("[DistortionRenderer::FlushGpuAndWaitTillTime] Sleep interval too long: %f\n", sleptTime)); + ("[DistortionRenderer::WaitTillTime] Sleep interval too long: %f\n", sleptTime)); } else { @@ -135,9 +134,9 @@ double DistortionRenderer::WaitTillTime(double absTime) else #endif { - for (int j = 0; j < 50; j++) - i = 0; - } + for (int j = 0; j < 5; j++) + OVR_PROCESSOR_PAUSE(); + } newTime = ovr_GetTimeInSeconds(); } |