We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Getting data out of parallel iterators over Queries using par_for_each is very complex, due to limitations on ownership.
par_for_each
Create a par_map method on Query, which returns an iterator.
par_map
Query
Pre-allocate the data, then use par_for_each_mut to mutate the pre-allocated data.
par_for_each_mut
The text was updated successfully, but these errors were encountered:
If it's returning an iterator, then it'd be more accurate to call it par_iter. Also, this is already pretty much there in my unkempt PR #2088
Sorry, something went wrong.
It's currently waiting on some sort of resolution to the problems outlined here: #2093 (comment)
Can this be closed?
https://docs.rs/bevy/latest/bevy/ecs/system/struct.Query.html#method.par_iter
Yep!
No branches or pull requests
What problem does this solve or what need does it fill?
Getting data out of parallel iterators over Queries using
par_for_each
is very complex, due to limitations on ownership.What solution would you like?
Create a
par_map
method onQuery
, which returns an iterator.What alternative(s) have you considered?
Pre-allocate the data, then use
par_for_each_mut
to mutate the pre-allocated data.The text was updated successfully, but these errors were encountered: