You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platform/windows/display_wgc.cpp
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,15 @@ namespace platf::dxgi {
137
137
} catch (winrt::hresult_error &e) {
138
138
BOOST_LOG(warning) << "Screen capture may not be fully supported on this device for this release of Windows: failed to disable border around capture area: [0x"sv << util::hex(e.code()).to_string_view() << ']';
139
139
}
140
+
try {
141
+
if (winrt::ApiInformation::IsPropertyPresent(L"Windows.Graphics.Capture.GraphicsCaptureSession", L"MinUpdateInterval")) {
142
+
capture_session.MinUpdateInterval(4ms); // 250Hz
143
+
} else {
144
+
BOOST_LOG(warning) << "Can't set MinUpdateInterval on this version of Windows";
145
+
}
146
+
} catch (winrt::hresult_error &e) {
147
+
BOOST_LOG(warning) << "Screen capture may be capped to 60fps on this device for this release of Windows: failed to set MinUpdateInterval: [0x"sv << util::hex(e.code()).to_string_view() << ']';
0 commit comments