use requestAnimationFrame like a PRO. lock in FPS at 30 like a noob.