Comparison between setInterval and requestAnimationFrame