+static void CheckGameSpeedForVsync(boolean force_vsync_game_speed)
+{
+ if (strEqual(setup.vsync_mode, STR_VSYNC_MODE_OFF) ||
+ setup.game_frame_delay <= MAX_VSYNC_FRAME_DELAY)
+ return;
+
+ if (force_vsync_game_speed)
+ {
+ /* set game speed to existing list value that is fast enough for vsync */
+ setup.game_frame_delay = 15;
+
+ execSetupGame_setGameSpeeds(TRUE);
+
+ Request("Game speed was set to \"fast\" for VSync to work!", REQ_CONFIRM);
+ }
+ else
+ {
+ Request("Warning! Game speed too low for VSync to work!", REQ_CONFIRM);
+ }
+}
+