DarthSharkie / 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
0 stars 0 forks source link

ParticlePolygon has a memory leak in its `cachedShapes` member #41

Closed DarthSharkie closed 2 months ago

DarthSharkie commented 4 months ago

A hash map that can only grow based on number of sides and size of polygon is probably not a good idea. This should use unit polygons, so the likely size is smaller. Points can be scaled to the size of the polygon at time of rendering.

DarthSharkie commented 2 months ago

Fixed in https://github.com/GitBrincie212/Apel-Mod/pull/61