Skip to content

Docs / Using arts

Performance

Animation on a web page costs main-thread time that the page needs for everything else. Elroot Dot Matrix is built to spend as little as it can.

What every art does

  • Draws at most 30 frames a second.
  • Groups its dots into eight brightness levels and draws each level in one go.
  • Draws the faint grid once per size, not every frame.
  • Stops while it is off screen, and the browser stops it in background tabs.
  • Shows one still frame for reduced motion.

What was measured

Every art passes a frame budget test: one 1280 × 720 frame (14,400 dots) worked out in under 10 ms. On the machine the arts were made on (18 November 2026), the middle art took under 1 ms and the slowest about 6 ms. A typical card is a few thousand dots, a fraction of that.

Making it cheaper still

  • Raise spacing: twice the spacing is a quarter of the dots.
  • Ask your assistant to start the art only when it matters, for example when a card is hovered.