Skip to content

Commit

Permalink
don't use DwmFlush WaitForVerticalBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Nov 2, 2024
1 parent ca08dd6 commit 2c69e41
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1560,17 +1560,8 @@ HRESULT dd_WaitForVerticalBlank(DWORD dwFlags, HANDLE hEvent)
{
if (g_config.maxgameticks == -2)
{
/* Workaround for DwmFlush() freeze (e.g. slow alt+tab) issue on windows 7 SP1 */
if (g_ddraw.renderer == ogl_render_main && !IsWine() && !IsWindows8OrGreater())
{
if (fpsl_wait_for_vblank())
return DD_OK;
}
else
{
if (fpsl_dwm_flush() || fpsl_wait_for_vblank())
return DD_OK;
}
if (fpsl_wait_for_vblank())
return DD_OK;
}

if (!g_ddraw.flip_limiter.tick_length)
Expand Down

0 comments on commit 2c69e41

Please sign in to comment.