1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

add option to uncap fps, and fix #1470

This commit is contained in:
zsilencer
2015-07-04 13:00:32 -06:00
parent f3cc003691
commit 76b231c150
11 changed files with 111 additions and 29 deletions

View File

@@ -737,7 +737,7 @@ void platform_refresh_video()
if (gConfigGeneral.hardware_display) {
if (gRenderer == NULL)
gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED);
gRenderer = SDL_CreateRenderer(gWindow, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
if (gBufferTexture != NULL)
SDL_DestroyTexture(gBufferTexture);