Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Emitter replaces oldest/random particle when full #208

Open
djeedai opened this issue Jul 16, 2023 · 0 comments
Open

[Feature] Emitter replaces oldest/random particle when full #208

djeedai opened this issue Jul 16, 2023 · 0 comments
Labels
A - internal Internal change on a core system C - enhancement New feature or request

Comments

@djeedai
Copy link
Owner

djeedai commented Jul 16, 2023

Describe the solution you'd like

Split from #118.

When the particle effect is full (all particles spawned), the emitter kills the random / the oldest particle to allow spawning a new one, to ensure the spawning rate is truly constant and not clamped by the capacity of the GPU buffer.

Describe why you want that solution. Is this related to a problem?

Clamping to the capacity means no particle spawn until one die to make space for it, which will likely break the effect visually. This pushes effect authors to over-allocate the effect to ensure clamping doesn't occur. Replacing a random or the oldest particle often has very little consequence visually.

Describe alternatives you've considered

Over-allocating the effect. This wastes GPU resources.

@djeedai djeedai added C - enhancement New feature or request A - internal Internal change on a core system labels Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - internal Internal change on a core system C - enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant