diff --git a/source/funkin/ui/options/PreferencesMenu.hx b/source/funkin/ui/options/PreferencesMenu.hx index 240eade8b9b..612ea1ed245 100644 --- a/source/funkin/ui/options/PreferencesMenu.hx +++ b/source/funkin/ui/options/PreferencesMenu.hx @@ -120,6 +120,11 @@ class PreferencesMenu extends Page Preferences.autoFullscreen = value; }, Preferences.autoFullscreen); + #if web + createPrefItemCheckbox('Unlocked Framerate', 'If enabled, the framerate will be unlocked.', function(value:Bool):Void { + Preferences.unlockedFramerate = value; + }, Preferences.unlockedFramerate); + #else // disabled on macos due to "error: Late swap tearing currently unsupported" #if !mac createPrefItemEnum('VSync', 'If enabled, game will attempt to match framerate with your monitor.', [ @@ -136,11 +141,6 @@ class PreferencesMenu extends Page case WindowVSyncMode.ADAPTIVE: "Adaptive"; }); #end - #if web - createPrefItemCheckbox('Unlocked Framerate', 'If enabled, the framerate will be unlocked.', function(value:Bool):Void { - Preferences.unlockedFramerate = value; - }, Preferences.unlockedFramerate); - #else createPrefItemNumber('FPS', 'The maximum framerate that the game targets.', function(value:Float) { Preferences.framerate = Std.int(value); }, null, Preferences.framerate, 30, 300, 5, 0);