remove VSync option from mobile
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user