mirror of
https://codeberg.org/ashley/poke.git
synced 2025-01-19 00:03:37 -05:00
Update html/poketube.ejs
This commit is contained in:
parent
866e0b853d
commit
43b684d83e
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 loopStart = () => {
|
||||||
const now = performance.now();
|
const now = performance.now();
|
||||||
const elapsed = now - lastDrawTime;
|
const elapsed = now - lastDrawTime;
|
||||||
if (elapsed >= (1000 / 30)) { // Adjusted for milliseconds
|
if (elapsed >= (1000 / 15)) { // Adjusted for milliseconds
|
||||||
lastDrawTime = now;
|
lastDrawTime = now;
|
||||||
draw();
|
draw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue