Update FramerateCounter.hx

Remove the framerate count lerp
This commit is contained in:
Sword352
2023-06-30 07:04:36 +02:00
committed by GitHub
parent de979c6e20
commit 9cfb707c85
@@ -30,9 +30,9 @@ class FramerateCounter extends Sprite {
if (alpha <= 0.05) return;
super.__enterFrame(t);
lastFPS = CoolUtil.fpsLerp(lastFPS, FlxG.elapsed == 0 ? 0 : (1 / FlxG.elapsed), 0.25);
lastFPS = FlxG.elapsed == 0 ? 0 : (1 / FlxG.elapsed);
fpsNum.text = Std.string(Math.floor(lastFPS));
fpsLabel.x = fpsNum.x + fpsNum.width;
fpsLabel.y = (fpsNum.y + fpsNum.height) - fpsLabel.height;
}
}
}