Skip to content

Commit

Permalink
work-around a bug in Windows 11's Direct3D9 VSync timer (#501)
Browse files Browse the repository at this point in the history
* work-around a bug in Windows 11's Direct3D9 VSync timer

* set direct3d11 on all versions of Windows
  • Loading branch information
fabiangreffrath committed Apr 8, 2022
1 parent c70f5a5 commit 4f9be3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/i_video.c
Expand Up @@ -1499,6 +1499,11 @@ static void I_InitGraphicsMode(void)
texture = NULL;
}

#ifdef _WIN32
// [FG] work-around a bug in Windows 11's Direct3D9 VSync timer
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11");
#endif

renderer = SDL_CreateRenderer(screen, -1, flags);

// [FG] try again without hardware acceleration
Expand Down

0 comments on commit 4f9be3f

Please sign in to comment.