Skip to content

Remove dead ParallelIterator code#4491

Closed
GrantMoyer wants to merge 1 commit intobevyengine:mainfrom
GrantMoyer:remove_parallel_iterator
Closed

Remove dead ParallelIterator code#4491
GrantMoyer wants to merge 1 commit intobevyengine:mainfrom
GrantMoyer:remove_parallel_iterator

Conversation

@GrantMoyer
Copy link
Contributor

All uses of ParallelIterator in the Query API were removed in #1525, when it was replaced with Query::par_for_each(). This change removes the practically dead code related to ParallelIterator.

It also updates the comments in the parallel_query example, which became out of date when ParallelIterator was replaced. It also increases the sprite count in the example, since sprite rendering is no longer a bottleneck. Finally, it fixes a bug in the example which caused sprites to get stuck on the edge of the window when the window's size was reduced.

Changelog

  • Removed dead ParallelIterator code

All uses of ParallelIterator in the Query API were removed in bevyengine#1525, when it was replaced with Query::par_for_each(). This change removes the practically dead code related to ParallelIterator.

It also updates the comments in the parallel_query example, which became out of date when ParallelIterator was replaced. It also increases the sprite count in the example, since sprite rendering is no longer a bottleneck. Finally, it fixes a bug in the example which caused sprites to get stuck on the edge of the window when the window's size was reduced.
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Apr 16, 2022
@mockersf
Copy link
Member

Previous attempt in #2093.

@GrantMoyer
Copy link
Contributor Author

Whoops, thanks for the pointer @mockersf. I didn't realize there was a PR in the works which builds off ParallelIterator.

@GrantMoyer GrantMoyer closed this Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-Needs-Triage This issue needs to be labelled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants