diff options
-rw-r--r-- | src/QuickMedia.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index f6d036e..c966b8c 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -386,12 +386,16 @@ namespace QuickMedia { window.setFramerateLimit(0); monitor_hz = get_monitor_max_hz(disp); + window.setVerticalSyncEnabled(true); + vsync_set = true; + /* if(enable_vsync(disp, window.getSystemHandle())) { vsync_set = true; } else { fprintf(stderr, "Failed to enable vsync, fallback to frame limiting\n"); window.setFramerateLimit(monitor_hz); } + */ fprintf(stderr, "Monitor hz: %d\n", monitor_hz); if(create_directory_recursive(get_cache_dir().join("thumbnails")) != 0) { |