You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! First of all, thanks for creating and sharing this library. I've started using this a while ago and it's been perfect for adding subtle effects to my games :)
However, after adding a lot of particles to my game (for example during playdate.update for a continuous effect like smoke), I realised the particles are not cleaned up properly and the performance starts dropping steadily.
I narrowed it down to the main particles table which adds, but never removes, each particle instance:
I'll try out some approaches to fix this and hopefully submit a PR later for this, but wanted to raise this issue in case you have any ideas regarding it already.
The text was updated successfully, but these errors were encountered:
Hi! First of all, thanks for creating and sharing this library. I've started using this a while ago and it's been perfect for adding subtle effects to my games :)
However, after adding a lot of particles to my game (for example during
playdate.update
for a continuous effect like smoke), I realised the particles are not cleaned up properly and the performance starts dropping steadily.I narrowed it down to the main
particles
table which adds, but never removes, each particle instance:pdParticles/pdParticles.lua
Line 30 in 1a2dec5
I'll try out some approaches to fix this and hopefully submit a PR later for this, but wanted to raise this issue in case you have any ideas regarding it already.
The text was updated successfully, but these errors were encountered: