From 7147eeb12233024d30a59b986676b58b46e244a0 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Mon, 26 Feb 2024 20:41:46 +0000 Subject: [PATCH] make 30 fps --- html/poketube.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index be4c375b..56466f70 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1898,7 +1898,7 @@ let lastDrawTime = 0; // Timestamp of the last draw request const loop = () => { const now = performance.now(); const elapsed = now - lastDrawTime; - if (elapsed >= (1000 / 24)) { + if (elapsed >= (1000 / 30)) { lastDrawTime = now; ctx.drawImage(AMvideo, 0, 0, canvas.width, canvas.height); }