Changelog update

This commit is contained in:
Renan LE CARO 2025-03-29 21:05:53 +01:00
parent a328520191
commit adfd3ecf83
7 changed files with 67 additions and 82 deletions

View file

@ -386,21 +386,10 @@ export function tick() {
}
let FPSCounter = 0;
let FPSDisplay = document.getElementById("FPSDisplay") as HTMLDivElement;
export let lastMeasuredFPS = 60;
setInterval(() => {
if (isOptionOn("show_fps")) {
FPSDisplay.innerText =
FPSCounter +
" FPS " +
liveCount(gameState.coins) +
" COINS " +
(liveCount(gameState.particles) +
liveCount(gameState.texts) +
liveCount(gameState.lights)) +
" PARTICLES ";
} else {
FPSDisplay.innerText = "";
}
lastMeasuredFPS = FPSCounter
FPSCounter = 0;
}, 1000);