JavaScript でループ処理を行うための関数のひとつ requestAnimationFrame。 今さらながら調べ直してみた。 調べなおすきっかけは three.js REVISION: ’63’ のソースを眺めたから。 ループ処理を行うための他の手段は時間ベースの2つの関数です。 setTimeout, setInterval 今では setTimeout, setInterval は非効率で requestAnimationFrame が実装されているブラウザでは使うべきでは無いと言われています。 IE にも実装され microsoft のサイトで解説を見ることができます。 ie.microsoft.com: requestAnimationFrame API MSDN: Timing control for script-based animations (“requestA
![[JavaScript] 今さらながらrequestAnimationFrameをもう一度](https://cdn-ak-scissors.b.st-hatena.com/image/square/6c35180033ae4020a0e0c1b662cd0d153d918e3f/height=288;version=1;width=512/http%3A%2F%2Fwww.inazumatv.com%2F_fb%2Ffb_inazumatv2.png)