Skip to content

Commit

Permalink
Merge pull request #9 from crowplexus/patch-1
Browse files Browse the repository at this point in the history
my bad fam
  • Loading branch information
FixedData authored Sep 7, 2024
2 parents 40719ca + f48f4bb commit 801bece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/meta/data/FPSCounter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class FPSCounter extends TextField
// Event Handlers
private override function __enterFrame(deltaTime:Float):Void
{
// prevents the overlay from updating every frame, why would you need to anyways
if (deltaTimeout > 1000) {
deltaTimeout = 0.0;
// prevents the overlay from updating every frame, why would you need to anyways @crowplexus
if (deltaTimeout < 1000) {
deltaTimeout += deltaTime;
return;
}

Expand All @@ -58,7 +58,7 @@ class FPSCounter extends TextField

currentFPS = times.length < FlxG.updateFramerate ? times.length : FlxG.updateFramerate;
updateText();
deltaTimeout += deltaTime;
deltaTimeout = 0.0;
}

public dynamic function updateText():Void { // so people can override it in hscript
Expand Down

0 comments on commit 801bece

Please sign in to comment.