mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 06:08:34 +01: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 now = performance.now();
|
||||
const elapsed = now - lastDrawTime;
|
||||
if (elapsed >= (1000 / 30)) { // Adjusted for milliseconds
|
||||
if (elapsed >= (1000 / 15)) { // Adjusted for milliseconds
|
||||
lastDrawTime = now;
|
||||
draw();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue