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
14001400 // Some LOD-like controls need to know a smoothly varying "potential" frame rate that doesn't
14011401 // include time waiting for sync, and which can report a number above target if we've got the headroom.
14021402 // 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; // seconds
1403+ const float paintWaitAndQTTimerAllowance = 0.001f; // seconds
14041404 // Store both values now for use by next cycle.
14051405 _lastInstantaneousFps = instantaneousFps;
14061406 _lastUnsynchronizedFps = 1.0f / (((usecTimestampNow() - now) / (float)USECS_PER_SECOND) + paintWaitAndQTTimerAllowance);