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

Fix effects getting stuck after a deletion #330

Merged
merged 1 commit into from
May 22, 2024
Merged

Fix effects getting stuck after a deletion #330

merged 1 commit into from
May 22, 2024

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented May 22, 2024

Fix some effects not updating after one or more effects have been deleted. This was due to the indirect pass shader assuming a contiguous ParticleGroup array, but that array contains gaps where effects have been deallocated, so updating a number of rows equal to the number of active effect means updating some unused rows and skipping some used ones in case there's any gap.

Fix some effects not updating after one or more effects have been
deleted. This was due to the indirect pass shader assuming a contiguous
`ParticleGroup` array, but that array contains gaps where effects have
been deallocated, so updating a number of rows equal to the number of
active effect means updating some unused rows and skipping some used
ones in case there's any gap.
@djeedai djeedai added C - bug Something isn't working A - internal Internal change on a core system labels May 22, 2024
@djeedai
Copy link
Owner Author

djeedai commented May 22, 2024

@NiseVoid if you want to try that change, it should fix effects getting stuck after another effect was deleted.

@djeedai djeedai merged commit adcd6af into main May 22, 2024
13 checks passed
@djeedai djeedai deleted the u/rm-add branch May 22, 2024 22:02
djeedai added a commit that referenced this pull request Oct 17, 2024
Invalidate the sim bind group when the particle buffer is re-allocated. Also
always re-create that bind group for now, as we don't invalidate on binding
offset/size changes. With that, revert the fix for #330, which shouldn't be
needed because the buffer is indeed contiguous.
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 - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant