GitBrincie212 / Apel-Mod

Apel is a library that brings particle animations to the table with flexible behaviour and a clean developer interface. It promises also lots of predefined shapes & paths to help the developer on their particle scene
Other
2 stars 1 forks source link

Move `drawLine` into `ParticleObject` #11

Closed DarthSharkie closed 3 months ago

DarthSharkie commented 3 months ago

This reduces an allocation and passes one less parameter.

The calculation for the "step" when drawing a line is also optimized to remove one division, 3n multiplication steps, and n assignments. The assignments and multiplications might have been optimized out at either compile time or runtime, but now neither is needed anyway!