8fps8fps8fps8fps8fps8fps8fps8fps

This commit is contained in:
Brooke Vibber 2023-08-18 17:46:07 -07:00
parent 77aeccccef
commit ca7faf698f

View file

@ -232,7 +232,10 @@
let timer = null; let timer = null;
source.addEventListener('playing', () => { source.addEventListener('playing', () => {
if (!timer) { if (!timer) {
timer = setInterval(update, 1000 / 10); // target 8 fps
// not sure we can get any faster
// downloads over sio
timer = setInterval(update, 1000 / 8);
} }
update(); update();
}); });