How to update many independent materials in parallel? #12891
Unanswered
DaAwesomeP
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have many, many entities drawn onscreen and need to update the color of many of them at once. I cannot figure out how to use
ResMut<Assets<StandardMaterial>>
withpar_iter()
:Each entity has its own material (set initial with
PbrBundle
) not used by any other entity. Is there a way to store the material component directly in the entity instead of with a handle?Doing this not in parallel is not feasible (framerate drops to 1/4 what it was).
Beta Was this translation helpful? Give feedback.
All reactions