#1006 Improve requestAnimationFrame performance (v1.0).