From 7a0a8c3d6e98b29a5c5e5925600ce3c9f18af0bf Mon Sep 17 00:00:00 2001 From: CuckyDev Date: Mon, 12 Jul 2021 00:53:44 -0400 Subject: [PATCH] Maybe fix missing FPS counter put the toggleFPS code after all save file crap so that it might work better --- source/Main.hx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/Main.hx b/source/Main.hx index 5c6b862..e645d76 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -82,13 +82,6 @@ class Main extends Sprite game = new FlxGame(gameWidth, gameHeight, initialState, zoom, framerate, framerate, skipSplash, startFullscreen); #end addChild(game); - - #if !mobile - fpsCounter = new FPS(10, 3, 0xFFFFFF); - addChild(fpsCounter); - toggleFPS(FlxG.save.data.fps); - - #end PlayerSettings.init(); @@ -107,6 +100,12 @@ class Main extends Sprite FlxG.save.bind('funkin', 'ninjamuffin99'); KadeEngineData.initSave(); + + #if !mobile + fpsCounter = new FPS(10, 3, 0xFFFFFF); + addChild(fpsCounter); + toggleFPS(FlxG.save.data.fps); + #end } var game:FlxGame;