Skip to content

Commit

Permalink
mobile frame stutter thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Feb 7, 2024
1 parent 635d55f commit 96668d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/MenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class MenuState extends FlxState {

override public function create() {
FlxG.game.focusLostFramerate = 60;
FlxG.fixedTimestep = false;

FlxG.fixedTimestep = !FlxG.onMobile; // fixed framerate on mobile
FlxG.camera.bgColor = 0xff35353d;
FlxSprite.defaultAntialiasing = false;
FlxG.mouse.load("assets/images/cursor.png", 2);
Expand Down

0 comments on commit 96668d4

Please sign in to comment.