From 32dc394487af8e4fb1b43fb852f1d5448eaf7f31 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 4 Sep 2014 14:32:18 -0700 Subject: Updating to windows 0.4.2 --- LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp') 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(); } -- cgit v1.2.3