Don't request doubled refresh rate - the new SudoVDA driver already created the doubled mode

This commit is contained in:
Yukino Song
2025-02-15 05:19:09 +08:00
parent e35fc85201
commit 014ad1821f

View File

@@ -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;