Why is requestAnimationFrame better than setInterval or setTimeout
High quality animation. The question is most simply answered with. requestAnimationFrame produces higher quality animation completely eliminating flicker and shear that can happen when using setTimeout or setInterval, and reduce or completely remove frame skips. Shear is when a new canvas buffer is presented to the display buffer midway through the display scan resulting in … Read more