diff --git a/frontend/src/ts/elements/fps-counter.ts b/frontend/src/ts/elements/fps-counter.ts index 1616dd6e2..78b4c3afe 100644 --- a/frontend/src/ts/elements/fps-counter.ts +++ b/frontend/src/ts/elements/fps-counter.ts @@ -25,7 +25,8 @@ export function start(): void { stopLoop = false; frameCount = 0; startTime = performance.now(); - fpsInterval = window.requestAnimationFrame(loop); + + if (!fpsInterval) fpsInterval = window.requestAnimationFrame(loop); el.classList.remove("hidden"); }