Skip to content

Commit

Permalink
fix fps display
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Jan 11, 2024
1 parent 66a767e commit 3f59d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function engineInit(gameInit, gameUpdate, gameUpdatePost, gameRender, gameRender
};

// frame time tracking
let frameTimeLastMS = 0, frameTimeBufferMS = 0, averageFPS;
let frameTimeLastMS = 0, frameTimeBufferMS = 0, averageFPS = 0;

// main update loop
function engineUpdate(frameTimeMS=0)
Expand Down

0 comments on commit 3f59d91

Please sign in to comment.