BrandonDyer64 / bevy_wasm

Mod Bevy games with WASM
Apache License 2.0
94 stars 4 forks source link

Parallel mod ticking #12

Open BrandonDyer64 opened 1 year ago

BrandonDyer64 commented 1 year ago

Currently, mods are ticked in series. It should be relatively trivial to tick them in parallel. See Query::par_for_each

BrandonDyer64 commented 1 year ago

This is blocked until Bevy releases 0.10 par_for_each isn't an iterator, so collecting the results of the ticks is more annoying than it's worth

BrandonDyer64 commented 1 year ago

The parallel iterator isn't an iterator. I will need to make a PR on Bevy to enable this feature.