From 4776c71d4a3063056024ae38068e07a8f0dd9210 Mon Sep 17 00:00:00 2001 From: AnotherSeawhite <52661206+AnotherSeawhite@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:23:46 +0900 Subject: [PATCH] vsync option --- src/options.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/options.cpp b/src/options.cpp index ffe1c0c269bc7..5c5930a118f95 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -2648,6 +2648,13 @@ void options_manager::add_options_graphics() false, COPT_CURSES_HIDE ); + #if defined(SDL_HINT_RENDER_VSYNC) + add( "VSYNC", graphics, translate_marker( "Use VSync" ), + translate_marker( "Enable vertical synchronization to prevent screen tearing. VSync can slow the game down a lot. Requires restart." ), + false, COPT_CURSES_HIDE + ); +#endif + #if defined(__ANDROID__) get_option( "FRAMEBUFFER_ACCEL" ).setPrerequisite( "SOFTWARE_RENDERING" ); #else