Skip to content

[ParticleEmitter3D] Performance tanks over time after many emitters are created and then deleted #2041

@soupinthegrass

Description

@soupinthegrass

Is there an existing issue for this?

Enter the name of the extension

3D particle emitter 3.1.0

Describe the bug of the extension

When creating a 0.1 duration particle effect every frame at a location*, set to automatically delete, the game's performance slowly gets bogged down to the point of not being able to maintain a steady frame rate. I tested manually deleting the emitters after a 0.1 wait instead of letting them delete automatically and the problem persisted. When using the same event setup to instead spawn and then delete a 3D Model no performance issues were observed.

(*I'm aware this likely isn't a very efficient way or the intended way of using this plugin, it was a temporary setup for what I was testing)

I confirmed in the debugger that the instances are being deleted, however the performance hit can be seen observed in the Profiler.

Steps to reproduce

  1. create an emitter at a location every frame and then have it automatically delete itself or delete it with an event
  2. wait for a couple of minutes and observe the performance

GDevelop platform

Desktop

GDevelop version

5.6.257

Platform info

Details

Windows 10

Additional context

I started this project with the 3D FPS template, and updated the plugin to 3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠ Issue with an extensionAn issue with an extension that is already on the extension store

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions