-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Default to using ExecutorKind::SingleThreaded on wasm32 #7717
Conversation
Would this change anything? I don't think the default impl for this enum is ever used inside Bevy I think it should be used here to use the correct executor depending on the default bevy/crates/bevy_ecs/src/schedule/schedule.rs Lines 134 to 141 in 6a63940
|
Nice catch. Should be used there now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
# Objective Web builds do not support running on multiple threads right now. Defaulting to the multi-threaded executor has significant overhead without any benefit. ## Solution Default to the single threaded executor on wasm32 builds.
Pull request successfully merged into main. Build succeeded:
|
Objective
Web builds do not support running on multiple threads right now. Defaulting to the multi-threaded executor has significant overhead without any benefit.
Solution
Default to the single threaded executor on wasm32 builds.