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

Don't examine every entity when extracting SpriteSources. #12957

Merged
merged 1 commit into from Apr 13, 2024

Conversation

pcwalton
Copy link
Contributor

ExtractComponentPlugin doesn't check to make sure the component is actually present unless it's in the QueryFilter. This meant we placed it everywhere. This regressed performance on many examples, such as many_cubes.

Fixes #12956.

`ExtractComponentPlugin` doesn't check to make sure the component is
actually present unless it's in the `QueryFilter`. This meant we placed
it everywhere. This regressed performance on many examples, such as
`many_cubes`.

Fixes bevyengine#12956.
@pcwalton pcwalton requested a review from james7132 April 13, 2024 22:04
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen C-Performance A change motivated by improving speed, memory usage or compile times labels Apr 13, 2024
@alice-i-cecile alice-i-cecile added this to the 0.14 milestone Apr 13, 2024
@james7132 james7132 added this pull request to the merge queue Apr 13, 2024
@mockersf mockersf 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 Apr 13, 2024
Merged via the queue into bevyengine:main with commit 363210f Apr 13, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extract_component commands are consuming a signficant amount of time in many_cubes
4 participants