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

Support particle death #4

Open
urogdiaron opened this issue Jul 8, 2017 · 0 comments
Open

Support particle death #4

urogdiaron opened this issue Jul 8, 2017 · 0 comments

Comments

@urogdiaron
Copy link
Owner

urogdiaron commented Jul 8, 2017

Maybe swap dead particles to the end so we have contiguous alive ones.

When do we do that? Do we need to do that?

Right now the cpu side doesn't know how many particles are alive so it runs the compute shader for all possible particles either way. Maybe we should let the cpu side know first so such an optimization could make sense in the first place.

If the cpu side knew how many groups it needs to dispatch we would need the particle buffer to have the alive particles in the beginning.

@urogdiaron urogdiaron changed the title Support a timer for particle lifetime Support particle death Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant