3 ms·
Lazy browser console hack to speed it up without locking the browser completely or rehosting: (()=>{for(let l=setInterval(()=>{},0);l;)clearInterval(l--);con
by zamadatix 1y ago
Lazy browser console hack to speed it up without locking the browser completely or rehosting:
(()=>{for(let l=setInterval(()=>{},0);l;)clearInterval(l--);const c=new MessageChannel;c.port1.onmessage=_=>(draw(),c.port2.postMessage(0));c.port2.postMessage(0)})()
It seems there are a lot of buggy positions which clear themselves given enough time. I managed to make it to 1,000,000 iterations without any permanent lockups (but some lasted a while)