Game 065 — Too Many Updates

New concept: batching DOM writes with requestAnimationFrame

This game is a performance lab. Move your mouse inside the arena and watch how many UI updates happen. Switch between naive updates and batched updates.

Mode
Batched
Mouse events
0
DOM updates
0
Approx FPS

Why this matters: games feel “laggy” when you update the DOM too often. Batching updates with requestAnimationFrame keeps things smooth.

What’s different from last game?

Instead of a new mechanic, you practice performance: fewer DOM writes → smoother feel.

Optional challenge variants

    Tips

    Open DevTools → Console to see helpful logs. Try changing constants at the top of the script.