1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-01-31 04:33:33 -05:00

mke 30 again

This commit is contained in:
Ashley //// 2024-02-19 13:17:57 +00:00
parent 43b684d83e
commit d98f4cc8ff

View file

@ -1895,7 +1895,7 @@ let lastDrawTime = 0; // Timestamp of the last draw request
const loopStart = () => { const loopStart = () => {
const now = performance.now(); const now = performance.now();
const elapsed = now - lastDrawTime; const elapsed = now - lastDrawTime;
if (elapsed >= (1000 / 15)) { // Adjusted for milliseconds if (elapsed >= (1000 / 30)) { // Adjusted for milliseconds
lastDrawTime = now; lastDrawTime = now;
draw(); draw();
} }