diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index d99ad5eb431fd..d2f072b524bc3 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -360,8 +360,12 @@ static void WinCreate() if( !software_renderer ) { dbg( D_INFO ) << "Attempting to initialize accelerated SDL renderer."; - renderer.reset( SDL_CreateRenderer( ::window.get(), renderer_id, SDL_RENDERER_ACCELERATED | - SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE ) ); + int init_flags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE; + if( get_option( "VSYNC" ) ) { + init_flags |= SDL_RENDERER_PRESENTVSYNC; + } + + renderer.reset( SDL_CreateRenderer( ::window.get(), renderer_id, init_flags ) ); if( printErrorIf( !renderer, "Failed to initialize accelerated renderer, falling back to software rendering" ) ) { software_renderer = true;