Skip to content

Commit

Permalink
vsync option
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherSeawhite authored Apr 2, 2024
1 parent 46d1f12 commit 4776c71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4776c71

Please sign in to comment.