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;