Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1400,7 +1400,7 @@ void Application::paintGL() { · 1399 unmodified lines | ||
| 1400 | 1400 | // Some LOD-like controls need to know a smoothly varying "potential" frame rate that doesn't |
| 1401 | 1401 | // include time waiting for sync, and which can report a number above target if we've got the headroom. |
| 1402 | 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; // seconds | |
| 1403 | + const float paintWaitAndQTTimerAllowance = 0.001f; // seconds | |
| 1404 | 1404 | // Store both values now for use by next cycle. |
| 1405 | 1405 | _lastInstantaneousFps = instantaneousFps; |
| 1406 | 1406 | _lastUnsynchronizedFps = 1.0f / (((usecTimestampNow() - now) / (float)USECS_PER_SECOND) + paintWaitAndQTTimerAllowance); |