diff --git a/WebGames-master/WebGames-master/games2/game/cookie-clicker/index.html b/WebGames-master/WebGames-master/games2/game/cookie-clicker/index.html index 11fd327d..9311e8d6 100644 --- a/WebGames-master/WebGames-master/games2/game/cookie-clicker/index.html +++ b/WebGames-master/WebGames-master/games2/game/cookie-clicker/index.html @@ -277,48 +277,6 @@ frameLoop(); } - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - calculateFPS(); // Start FPS calculation } else { fpsCounter.style.display = 'none'; // Hide FPS counter diff --git a/WebGames-master/WebGames-master/games2/game/retro-bowl/index.html b/WebGames-master/WebGames-master/games2/game/retro-bowl/index.html index fee1b4a9..a0c3bb76 100644 --- a/WebGames-master/WebGames-master/games2/game/retro-bowl/index.html +++ b/WebGames-master/WebGames-master/games2/game/retro-bowl/index.html @@ -171,69 +171,6 @@ frameLoop(); } - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - calculateFPS(); // Start FPS calculation } else { fpsCounter.style.display = 'none'; // Hide FPS counter diff --git a/WebGames-master/WebGames-master/games2/game/tiny-fishing/index.html b/WebGames-master/WebGames-master/games2/game/tiny-fishing/index.html index 64d8d10e..70ece581 100644 --- a/WebGames-master/WebGames-master/games2/game/tiny-fishing/index.html +++ b/WebGames-master/WebGames-master/games2/game/tiny-fishing/index.html @@ -375,27 +375,6 @@ frameLoop(); } - calculateFPS(); // Start FPS calculation - } else { - fpsCounter.style.display = 'none'; // Hide FPS counter - } - let frames = 0; - - function frameLoop() { - const now = performance.now(); - frames++; - - if (now - lastFrameTime >= 1000) { - const fps = Math.round(frames / ((now - lastFrameTime) / 1000)); - fpsCounter.textContent = `FPS: ${fps}`; - frames = 0; - lastFrameTime = now; - } - requestAnimationFrame(frameLoop); - } - frameLoop(); - } - calculateFPS(); // Start FPS calculation } else { fpsCounter.style.display = 'none'; // Hide FPS counter diff --git a/WebGames-master/WebGames-master/index.html b/WebGames-master/WebGames-master/index.html index 064e8d8a..c44c67a2 100644 --- a/WebGames-master/WebGames-master/index.html +++ b/WebGames-master/WebGames-master/index.html @@ -286,6 +286,9 @@