fix: Add missing dirtyChunks variable and update rendering logic

This commit is contained in:
Kacper Kostka (aider)
2025-04-05 15:37:55 +02:00
parent 60a1757ab1
commit 15fb106246
4 changed files with 125 additions and 54 deletions

View File

@@ -65,8 +65,8 @@ function simulationLoop(timestamp) {
fps = Math.round(1000 / deltaTime);
document.getElementById('fps').textContent = `FPS: ${fps}`;
// Update physics
updatePhysics();
// Update physics with timestamp for rate limiting
updatePhysics(timestamp);
// Render
render();