mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 02:37:57 +01:00
mke 30 again
This commit is contained in:
parent
43b684d83e
commit
d98f4cc8ff
1 changed files with 1 additions and 1 deletions
|
@ -1895,7 +1895,7 @@ let lastDrawTime = 0; // Timestamp of the last draw request
|
|||
const loopStart = () => {
|
||||
const now = performance.now();
|
||||
const elapsed = now - lastDrawTime;
|
||||
if (elapsed >= (1000 / 15)) { // Adjusted for milliseconds
|
||||
if (elapsed >= (1000 / 30)) { // Adjusted for milliseconds
|
||||
lastDrawTime = now;
|
||||
draw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue