Wrapped tick in requestAnimationFrame