aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 051b08d..3a42906 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1465,16 +1465,9 @@ namespace QuickMedia {
}
void Program::idle_active_handler() {
- if(idle) {
- if(update_monitor_max_fps_timer.get_elapsed_time_seconds() >= 3.0) {
- update_monitor_max_fps_timer.restart();
- monitor_max_fps = 0;
- for_each_active_monitor_output(disp, [&](const XRRCrtcInfo*, const XRRModeInfo *mode_info) {
- monitor_max_fps = std::max(monitor_max_fps, monitor_info_get_fps(mode_info));
- });
- }
+ if(idle)
window.set_framerate_limit(monitor_max_fps);
- }
+
idle = false;
idle_timer.restart();
}