Redraw measures using `requestAnimationFrame` for performance.