Closed fand closed 2 months ago
Previously, if VFX.play() is called more than once, the main loop runs more than once in a frame. This PR fixes this by managing the running state using the frame ID returned from requestAnimationFrame.
VFX.play()
requestAnimationFrame
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Previously, if
VFX.play()
is called more than once, the main loop runs more than once in a frame. This PR fixes this by managing the running state using the frame ID returned fromrequestAnimationFrame
.