Gamua / Starling-Extension-Particle-System

A particle system for the Starling framework, compatible with the "Particle Designer" from 71squared.com
Other
323 stars 146 forks source link

Allow starling to skip frames #33

Closed j3k0 closed 3 years ago

j3k0 commented 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.

PrimaryFeather commented 3 years ago

A great little optimization — thanks! 😄👍