Adding specific SDL_Hint for the dynamic VSYNC

This commit is contained in:
Francisco Javier Trujillo Mata 2022-08-26 17:58:59 +02:00 committed by Ryan C. Gordon
parent 2f08bf2313
commit f1e4685806
3 changed files with 27 additions and 9 deletions

View file

@ -1405,6 +1405,17 @@ extern "C" {
*/
#define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"
/**
* \brief A variable controlling if VSYNC is automatically disable if doesn't reach the enough FPS
*
* This variable can be set to the following values:
* "0" - It will be using VSYNC as defined in the main flag. Default
* "1" - If VSYNC was previously enabled, then it will disable VSYNC if doesn't reach enough speed
*
* By default SDL does not enable the automatic VSYNC
*/
#define SDL_HINT_PS2_DYNAMIC_VSYNC "SDL_PS2_DYNAMIC_VSYNC"
/**
* \brief A variable to control whether the return key on the soft keyboard
* should hide the soft keyboard on Android and iOS.