Open JonDum opened 6 years ago
Works well for a single spring, but starts being a major performance snag having many Springs all calling requestAnimationFrame.
requestAnimationFrame
Using this in a webgl app targeting 60fps.
Is there a way to not have them all register their own raf on every _step and instead manually loop each one? Similar to how rebound does it?
_step
I have a single raf callback that I do all polling, updating, and then drawing in. Multiple raf's kill the performance.
Works well for a single spring, but starts being a major performance snag having many Springs all calling
requestAnimationFrame
.Using this in a webgl app targeting 60fps.
Is there a way to not have them all register their own raf on every
_step
and instead manually loop each one? Similar to how rebound does it?I have a single raf callback that I do all polling, updating, and then drawing in. Multiple raf's kill the performance.