Remix.run Logo
Nikolaus018 5 hours ago

The DOM chokes so fast if you try to render thousands of SVGs or divs for this.

If you haven't already, just dump the data into an HTML5 <canvas> using requestAnimationFrame. Pulling the byte frequency data from the Web Audio API and drawing it straight to a canvas buffer is pretty much the only way to keep it at a smooth 60fps without killing the browser.