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 Sphere rendering into ApelRenderer #16

Closed DarthSharkie closed 2 months ago

DarthSharkie commented 2 months ago

This mimics #14 by moving the sphere drawing into ParticleObject and ApelRenderer. Note that the default implementation here is both less and more efficient than the existing algorithm. It is less efficient because it doesn't cache the computed points; however, the previous point cache was ineffective because it only retained a single point. It also doesn't cache the rotations, but it makes up for that by computing the combined rotation once per tick via quaternion, which should be faster than Euler angles.

I expect that implementations of ApelRenderer will further optimize for point caches, rotation/quaternion caches, and more.