From db00feff938277dff28516e896fe48a167f8dbfa Mon Sep 17 00:00:00 2001 From: kade-github <26305836+Kade-github@users.noreply.github.com> Date: Mon, 14 Apr 2025 09:43:08 -0700 Subject: [PATCH] Vsync does work now --- source/funkin/util/WindowUtil.hx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/funkin/util/WindowUtil.hx b/source/funkin/util/WindowUtil.hx index 1b7a4a806..ef35a69e7 100644 --- a/source/funkin/util/WindowUtil.hx +++ b/source/funkin/util/WindowUtil.hx @@ -160,13 +160,8 @@ class WindowUtil public static function setVSyncMode(value:lime.ui.WindowVSyncMode):Void { - // Apply the new value. - var success = FlxG.stage.application.window.setVSyncMode(value); + FlxG.stage.application.window.setVSyncMode(value); - if (!success) - { - // Maybe throw an error? - FlxG.stage.application.window.setVSyncMode(lime.ui.WindowVSyncMode.OFF); - } + // TODO: Add an error check here, simply doing !result (as 0 is success), doesn't work for the check. } }