From 6435464d0064bf2137aad8a9bb9bda61da2fcfd4 Mon Sep 17 00:00:00 2001 From: Imbris Date: Sat, 25 Jul 2020 17:00:33 -0400 Subject: [PATCH] Make video mode selection slightly better --- voxygen/src/window.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/voxygen/src/window.rs b/voxygen/src/window.rs index 68a536a8ab..c154845a2b 100644 --- a/voxygen/src/window.rs +++ b/voxygen/src/window.rs @@ -1054,10 +1054,13 @@ impl Window { window .current_monitor() .video_modes() - .filter(|mode| mode.bit_depth() >= 24) + .filter(|mode| mode.bit_depth() >= 24 && mode.refresh_rate() >= 59) .max_by_key(|mode| mode.size().width) .unwrap_or_else(|| { - warn!("No video mode with a bit depth of at least 24 found"); + warn!( + "No video mode with a bit depth of at least 24 and a refresh rate of \ + at least 60Hz found" + ); window .current_monitor() .video_modes()