Closed j3k0 closed 3 years ago
When the particle system contains no active particles, requesting a redraw prevents Starling from skipping the frame.
This implementation checks that no particles existed neither before nor after the simulation step. It doesn't request a redraw when this is the case.
A great little optimization — thanks! 😄👍
When the particle system contains no active particles, requesting a redraw prevents Starling from skipping the frame.
This implementation checks that no particles existed neither before nor after the simulation step. It doesn't request a redraw when this is the case.