#1006 Use requestAnimationFrame instead of setInterval (v1.0).