adjust timeout so infinite loops are less laggy

This commit is contained in:
Nycki 2025-07-12 10:13:45 -07:00
parent d1dc368f8f
commit 7ff9024ba5

View file

@ -28,7 +28,7 @@
F.A?.close(); F.A?.close();
F.A=A=new AudioContext; F.A=A=new AudioContext;
// kill some time for the audio context to start // kill some time for the audio context to start
S='@qx@'+F.value; S='@qx@'+F.value.toLowerCase();
// stack // stack
B=[]; B=[];
// stack variables // stack variables
@ -95,6 +95,6 @@ M=_=>{
S=C[a]+S.slice(s--); S=C[a]+S.slice(s--);
// loop // loop
(S=S.slice(s))&&setTimeout(M) (S=S.slice(s))&&setTimeout(M,50)
};M() };M()
">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop ">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop