History

coding standards

Howard Stearns committed 10 years ago

Commit 270cfe81 parent 32e49671 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -1400,7 +1400,7 @@ void Application::paintGL() { · 1399 unmodified lines
1400 // Some LOD-like controls need to know a smoothly varying "potential" frame rate that doesn't1400 // Some LOD-like controls need to know a smoothly varying "potential" frame rate that doesn't
1401 // include time waiting for sync, and which can report a number above target if we've got the headroom.1401 // include time waiting for sync, and which can report a number above target if we've got the headroom.
1402 // In my tests, the following is mostly less than 0.5ms, and never more than 3ms. I don't think its worth measuring during runtime.1402 // In my tests, the following is mostly less than 0.5ms, and never more than 3ms. I don't think its worth measuring during runtime.
1403 static const float paintWaitAndQTTimerAllowance = 0.001; // seconds1403 const float paintWaitAndQTTimerAllowance = 0.001f; // seconds
1404 // Store both values now for use by next cycle.1404 // Store both values now for use by next cycle.
1405 _lastInstantaneousFps = instantaneousFps;1405 _lastInstantaneousFps = instantaneousFps;
1406 _lastUnsynchronizedFps = 1.0f / (((usecTimestampNow() - now) / (float)USECS_PER_SECOND) + paintWaitAndQTTimerAllowance);1406 _lastUnsynchronizedFps = 1.0f / (((usecTimestampNow() - now) / (float)USECS_PER_SECOND) + paintWaitAndQTTimerAllowance);