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

Retain mesh and property into separate components #410

Merged
merged 2 commits into from
Dec 21, 2024
Merged

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Dec 21, 2024

Retain the mesh and the properties of an effect instance into separate components (namely, CachedMesh and CachedProperties).

Directly process effect instances from extracted data, instead of inserting a modified representation (batch input) and processing that. This simplify the code and removes some unnecessary copies.

Split the batching operation (which currently doesn't batch anything) into a separate batch_effects() system, which reads all the cached effects directly from the ECS world, after prepare_effects() updated them from the extracted ones.

Retain the mesh and the properties of an effect instance into separate
components (namely, `CachedMesh` and `CachedProperties`).

Directly process effect instances from extracted data, instead of
inserting a modified representation (batch input) and processing that.
This simplify the code and removes some unnecessary copies.

Split the batching operation (which currently doesn't batch anything)
into a separate `batch_effects()` system, which reads all the cached
effects directly from the ECS world, after `prepare_effects()` updated
them from the extracted ones.
@djeedai djeedai added C - enhancement New feature or request A - internal Internal change on a core system labels Dec 21, 2024
@djeedai djeedai merged commit 47db9f5 into main Dec 21, 2024
14 of 15 checks passed
@djeedai djeedai deleted the u/retain-mesh branch December 21, 2024 21:11
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