diff --git a/source/Main.hx b/source/Main.hx index c0a85d315..8ffbe724f 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -13,6 +13,7 @@ import openfl.events.Event; import openfl.Lib; import openfl.media.Video; import openfl.net.NetStream; +import funkin.util.WindowUtil; /** * The main class which initializes HaxeFlixel and starts the game in its initial state. @@ -67,6 +68,8 @@ class Main extends Sprite funkin.Preferences.lockedFramerateFunction = untyped js.Syntax.code("window.requestAnimationFrame"); #end + WindowUtil.setVSyncMode(funkin.Preferences.vsyncMode); + if (hasEventListener(Event.ADDED_TO_STAGE)) { removeEventListener(Event.ADDED_TO_STAGE, init);