Skip to content

Commit 8b35530

Browse files
authored
Reworked parallel executor to not block (#437)
Reworked parallel executor to not block
1 parent 8677e36 commit 8b35530

File tree

6 files changed

+437
-210
lines changed

6 files changed

+437
-210
lines changed

crates/bevy_app/src/task_pool_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Default for DefaultTaskPoolOptions {
5252
fn default() -> Self {
5353
DefaultTaskPoolOptions {
5454
// By default, use however many cores are available on the system
55-
min_total_threads: 4, // TODO(#408): set `min_total_threads` back to `1`
55+
min_total_threads: 1,
5656
max_total_threads: std::usize::MAX,
5757

5858
// Use 25% of cores for IO, at least 1, no more than 4

crates/bevy_ecs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bevy_hecs = { path = "hecs", features = ["macros", "serialize"], version = "0.1"
1818
bevy_tasks = { path = "../bevy_tasks", version = "0.1" }
1919
bevy_utils = { path = "../bevy_utils", version = "0.1" }
2020
rand = "0.7.2"
21-
crossbeam-channel = "0.4.2"
2221
fixedbitset = "0.3.0"
2322
downcast-rs = "1.1.1"
2423
parking_lot = "0.10"
24+
log = { version = "0.4", features = ["release_max_level_info"] }

0 commit comments

Comments
 (0)