-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Close performance gap between bevy_tasks
and rayon
#10064
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
Comments
bevy_tasks
and rayon
is there a way to measure this performance gap before trying to optimise for it? |
It seems rayon already has a suite of bench tests in |
There's also @Elabajaba's executor bench here which shows |
As discussed on #6941, I'm more and more leaning towards reintroducing rayon as a base for all of our multi threaded processing. This may change with smol-rs/async-executor#93, but there is also a number of optimizations that rayon has made that is non-trivial to port to async-executor. Since the introduction of ECS v2, Rayon has added support for wasm, and even has a version that supports web worker based multithreading. There remains the question of how we'd handle async tasks, which remains to be seen, but there are definitely a few options out there that merge tokio and rayon together, so it definitely seems doable. |
Sorry to wake up an old thread, but another issue that switching to Rayon would make it compatible with other code and library that uses Rayon, being able to do a |
@NthTensor has been working on forte, an alternative specifically designed for our workloads. I plan to mostly defer to them on this topic. |
From @hymm on Discord.
The text was updated successfully, but these errors were encountered: