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

Split properties into new PropertyCache #413

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Split properties into new PropertyCache #413

merged 4 commits into from
Jan 8, 2025

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Jan 4, 2025

Split the properties from the EffectCache and move their resource management into a new PropertyCache, which allocates GPU buffers to store them. This clarifies ownership, and allows better batching (in theory) as not all effects use properties.

In this change, unfortunately for simplicity we directly store the offset into the property buffer for each instance into the effect batch, meaning we again block batching multiple effects. This is hopefully temporary (and not the only blocker, so doesn't introduce any regression), but makes the change incremental and easier to handle for now, while other clean-ups are still pending.

Split the properties from the `EffectCache` and move their resource
management into a new `PropertyCache`, which allocates GPU buffers to
store them. This clarifies ownership, and allows better batching (in
theory) as not all effects use properties.

In this change, unfortunately for simplicity we directly store the
offset into the property buffer for each instance into the effect batch,
meaning we again block batching multiple effects. This is hopefully
temporary (and not the only blocker, so doesn't introduce any
regression), but makes the change incremental and easier to handle for
now, while other clean-ups are still pending.
@djeedai djeedai added C - enhancement New feature or request A - internal Internal change on a core system labels Jan 4, 2025
@djeedai djeedai merged commit f1aad2b into main Jan 8, 2025
18 of 19 checks passed
@djeedai djeedai deleted the u/properties branch January 8, 2025 19:21
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

Successfully merging this pull request may close these issues.

1 participant