From 014ad1821fb4cbf269c40f8e8ab89b72a4c6dd92 Mon Sep 17 00:00:00 2001 From: Yukino Song Date: Sat, 15 Feb 2025 05:19:09 +0800 Subject: [PATCH] Don't request doubled refresh rate - the new SudoVDA driver already created the doubled mode --- src/process.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/process.cpp b/src/process.cpp index 420e80d4..b4fa1a0c 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -263,10 +263,6 @@ namespace proc { int target_fps = launch_session->fps ? launch_session->fps : 60; - if (config::video.double_refreshrate) { - target_fps *= 2; - } - std::wstring vdisplayName = VDISPLAY::createVirtualDisplay( device_uuid_str.c_str(), device_name.c_str(), @@ -276,6 +272,10 @@ namespace proc { launch_session->display_guid ); + if (config::video.double_refreshrate) { + target_fps *= 2; + } + if (!vdisplayName.empty()) { BOOST_LOG(info) << "Virtual Display created at " << vdisplayName;