Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -944,6 +944,11 @@ void Application::idle() { · 943 unmodified lines | ||
| 944 | 944 | // Only run simulation code if more than IDLE_SIMULATE_MSECS have passed since last time we ran |
| 945 | 945 | |
| 946 | 946 | if (diffclock(&_lastTimeIdle, &check) > IDLE_SIMULATE_MSECS) { |
| 947 | + // We call processEvents() here because the idle timer takes priority over | |
| 948 | + // event handling in Qt, so when the framerate gets low events will pile up | |
| 949 | + // unless we handle them here. | |
| 950 | + processEvents(); | |
| 951 | + | |
| 947 | 952 | update(1.0f / _fps); |
| 948 | 953 | |
| 949 | 954 | _glWidget->updateGL(); |