remove VSync option from mobile

This commit is contained in:
KarimAkra
2025-04-18 14:47:56 +03:00
parent c246de1ee1
commit e78d3ecf8f
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -136,7 +136,8 @@ class PreferencesMenu extends Page<OptionsState.OptionsMenuPageName>
#end
// disabled on macos due to "error: Late swap tearing currently unsupported"
#if !mac
// disable on mobile since it barely has any effect
#if !(mac || mobile)
createPrefItemEnum('VSync', 'If enabled, game will attempt to match framerate with your monitor.', [
"Off" => WindowVSyncMode.OFF,
"On" => WindowVSyncMode.ON,
+2 -1
View File
@@ -163,7 +163,8 @@ class WindowUtil
public static function setVSyncMode(value:lime.ui.WindowVSyncMode):Void
{
// vsync crap dont worky on mac rn derp
#if !mac
// and for mobile it isn't really needed
#if !(mac || mobile)
var res:Bool = FlxG.stage.application.window.setVSyncMode(value);
// SDL_GL_SetSwapInterval returns the value we assigned on success, https://wiki.libsdl.org/SDL2/SDL_GL_GetSwapInterval#return-value.