-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - bevy_transform: Use Changed in the query for much faster transform_propagate_system #4180
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
superdump
added
C-Performance
A change motivated by improving speed, memory usage or compile times
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Mar 11, 2022
james7132
approved these changes
Mar 11, 2022
james7132
added
A-Transform
Translations, rotations and scales
A-Animation
Make things move and change over time
labels
Mar 11, 2022
This was referenced Mar 14, 2022
I've tested this with |
superdump
force-pushed
the
transform-propagate-changed
branch
from
March 24, 2022 11:46
59ef108
to
5901315
Compare
jakobhellermann
approved these changes
Mar 25, 2022
jakobhellermann
added
the
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
label
Mar 25, 2022
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Mar 29, 2022
…opagate_system (#4180) # Objective - Improve transform propagation performance ## Solution - Use `Changed<Transform>` as part of the `root_query` and `transform_query` to avoid the indirection of having to look up the `Entity` in the `changed_transform_query` - Get rid of the `changed_transform_query` entirely - `transform_propagate_system` execution time for `many_cubes -- sphere` dropped from 1.07ms to 0.159ms, an 85% reduction for this system. Frame rate increased from ~42fps to ~44fps
bors
bot
changed the title
bevy_transform: Use Changed in the query for much faster transform_propagate_system
[Merged by Bors] - bevy_transform: Use Changed in the query for much faster transform_propagate_system
Mar 29, 2022
bors bot
pushed a commit
that referenced
this pull request
May 9, 2022
# Objective - Fix #4688 ## Solution - Fixes #4688 - This raises an interesting question about our change detection system - is filtered queries actually a good UX for this? They're ergonomic in the easy case, but what do we recommend when it's not so. - In this case, the system should have been migrated similary to #4180 anyway, so I've done that.
bors bot
pushed a commit
that referenced
this pull request
May 9, 2022
# Objective - Fix #4688 ## Solution - Fixes #4688 - This raises an interesting question about our change detection system - is filtered queries actually a good UX for this? They're ergonomic in the easy case, but what do we recommend when it's not so. - In this case, the system should have been migrated similary to #4180 anyway, so I've done that.
robtfm
pushed a commit
to robtfm/bevy
that referenced
this pull request
May 10, 2022
# Objective - Fix bevyengine#4688 ## Solution - Fixes bevyengine#4688 - This raises an interesting question about our change detection system - is filtered queries actually a good UX for this? They're ergonomic in the easy case, but what do we recommend when it's not so. - In this case, the system should have been migrated similary to bevyengine#4180 anyway, so I've done that.
exjam
pushed a commit
to exjam/bevy
that referenced
this pull request
May 22, 2022
# Objective - Fix bevyengine#4688 ## Solution - Fixes bevyengine#4688 - This raises an interesting question about our change detection system - is filtered queries actually a good UX for this? They're ergonomic in the easy case, but what do we recommend when it's not so. - In this case, the system should have been migrated similary to bevyengine#4180 anyway, so I've done that.
aevyrie
pushed a commit
to aevyrie/bevy
that referenced
this pull request
Jun 7, 2022
…opagate_system (bevyengine#4180) # Objective - Improve transform propagation performance ## Solution - Use `Changed<Transform>` as part of the `root_query` and `transform_query` to avoid the indirection of having to look up the `Entity` in the `changed_transform_query` - Get rid of the `changed_transform_query` entirely - `transform_propagate_system` execution time for `many_cubes -- sphere` dropped from 1.07ms to 0.159ms, an 85% reduction for this system. Frame rate increased from ~42fps to ~44fps
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this pull request
Feb 1, 2023
…opagate_system (bevyengine#4180) # Objective - Improve transform propagation performance ## Solution - Use `Changed<Transform>` as part of the `root_query` and `transform_query` to avoid the indirection of having to look up the `Entity` in the `changed_transform_query` - Get rid of the `changed_transform_query` entirely - `transform_propagate_system` execution time for `many_cubes -- sphere` dropped from 1.07ms to 0.159ms, an 85% reduction for this system. Frame rate increased from ~42fps to ~44fps
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this pull request
Feb 1, 2023
# Objective - Fix bevyengine#4688 ## Solution - Fixes bevyengine#4688 - This raises an interesting question about our change detection system - is filtered queries actually a good UX for this? They're ergonomic in the easy case, but what do we recommend when it's not so. - In this case, the system should have been migrated similary to bevyengine#4180 anyway, so I've done that.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Animation
Make things move and change over time
A-Rendering
Drawing game state to the screen
A-Transform
Translations, rotations and scales
C-Performance
A change motivated by improving speed, memory usage or compile times
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Solution
Changed<Transform>
as part of theroot_query
andtransform_query
to avoid the indirection of having to look up theEntity
in thechanged_transform_query
changed_transform_query
entirelytransform_propagate_system
execution time formany_cubes -- sphere
dropped from 1.07ms to 0.159ms, an 85% reduction for this system. Frame rate increased from ~42fps to ~44fps