Particle emitters don't always despawn when tank is empty, especially with low tank amounts. #6305
Closed
1 task done
Labels
🐛 bug
This is a bug impacting users
Is there an existing issue for this?
Describe the bug
When setting the particle emitter to be deleted when out of particles and having low amount in the tank (escalates at sub 10 amounts), the particle emitters don't get deleted but will stay active indefinitely until manually purged.
Steps to reproduce
Make particle emitters spawn with low tank amount and delete when tank is empty.
The amount of particle emitters will keep increasing and will on a longer run choke up all resources tanking the FPS.
Even when stopping the particle emitters spawning the lingering emitters are still there not getting deleted automatically.
You can manually delete the emitters though.
Check the amount of particles on scene with debug mode in editor.
Example program to the bug.
Lower the particle emitter tank value to get even more dramatic drop in performance, 1-3 particles in the tank drops the performance in about 10 seconds.
BugTest.zip
GDevelop platform
Desktop
GDevelop version
5.3.188 (editor full version: 5.3.188-13cf9b1d0b1ad06da2fff21ff366886922081b9c, core version: 4.0.99-0-release)
Platform info
Additional context
No response
The text was updated successfully, but these errors were encountered: