summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp
diff options
context:
space:
mode:
authorBrad Davis <[email protected]>2014-09-04 14:32:18 -0700
committerBrad Davis <[email protected]>2014-09-04 14:32:18 -0700
commit32dc394487af8e4fb1b43fb852f1d5448eaf7f31 (patch)
treebe53f49e96e8e2bba1dada04197cf508b60b4eaf /LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp
parent85d370840fa4d49a63331a203460fe763288d417 (diff)
Updating to windows 0.4.2
Diffstat (limited to 'LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp')
-rw-r--r--LibOVR/Src/CAPI/CAPI_DistortionRenderer.cpp9
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();
}