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

Disable broken effect batching #74

Merged
merged 2 commits into from
Oct 29, 2022
Merged

Disable broken effect batching #74

merged 2 commits into from
Oct 29, 2022

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Oct 29, 2022

Batching of compatible effects (and in particular, multiple instances of the same effect) is currently broken due to the inability for a particle to tell which effect it's associated with, and therefore which GpuSpawnerParams struct it should index.

To prevent batching to trigger, set the minimum buffer capacity to 1 particle, which effectively means each effect will get a dedicated GPU buffer that just fits it, preventing another effect from using the same buffer, and effectively disabling batching.o

Bug: #73

Batching of compatible effects (and in particular, multiple instances of
the same effect) is currently broken due to the inability for a particle
to tell which effect it's associated with, and therefore which
`GpuSpawnerParams` struct it should index.

To prevent batching to trigger, set the minimum buffer capacity to 1
particle, which effectively means each effect will get a dedicated GPU
buffer that just fits it, preventing another effect from using the same
buffer, and effectively disabling batching.o

Bug: #73
@djeedai djeedai added the C - bug Something isn't working label Oct 29, 2022
@djeedai djeedai merged commit 0fa016d into main Oct 29, 2022
@djeedai djeedai deleted the u/disable_batching branch October 29, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant