1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

Revert "don't emulate 60hz vblank on 60hz monitor"

This reverts commit 95a5f7231e8298d73302a02982631fe3a9401e84.
This commit is contained in:
FunkyFr3sh 2024-11-02 18:11:42 +01:00
parent 9313a997dd
commit ca08dd6006
2 changed files with 1 additions and 10 deletions

View File

@ -176,7 +176,6 @@ typedef struct CNCDDRAW
DWORD gui_thread_id;
BOOL show_driver_warning;
BOOL windowed_hack;
BOOL wait_for_real_vblank;
struct
{

View File

@ -701,14 +701,6 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
g_config.fullscreen = FALSE;
}
}
else if (g_config.maxgameticks == 0)
{
// no need to emulate 60hz vblank if we got a 60hz monitor
if (g_ddraw.mode.dmDisplayFrequency == 60 || g_ddraw.mode.dmDisplayFrequency == 59)
{
g_ddraw.wait_for_real_vblank = TRUE;
}
}
}
BOOL zooming = g_ddraw.zoom.enabled;
@ -1566,7 +1558,7 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
HRESULT dd_WaitForVerticalBlank(DWORD dwFlags, HANDLE hEvent)
{
if (g_config.maxgameticks == -2 || g_ddraw.wait_for_real_vblank)
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())