steamcompmgr: Don't require a fps limit for dynamic refresh

This commit is contained in:
Joshua Ashton 2022-04-17 22:55:46 +01:00
parent 34c6904234
commit a85d71cc9e

View file

@ -1707,7 +1707,7 @@ paint_all()
bool bCapture = takeScreenshot || pw_buffer != nullptr;
int nTargetRefresh = g_nSteamCompMgrTargetFPS && g_nDynamicRefreshRate && steamcompmgr_window_should_limit_fps( global_focus.focusWindow )// && !global_focus.overlayWindow
int nTargetRefresh = g_nDynamicRefreshRate && steamcompmgr_window_should_limit_fps( global_focus.focusWindow )// && !global_focus.overlayWindow
? g_nDynamicRefreshRate
: drm_get_default_refresh( &g_DRM );