Skip to content

Commit

Permalink
Reworked parallel executor to not block (#437)
Browse files Browse the repository at this point in the history
Reworked parallel executor to not block
  • Loading branch information
aclysma authored Sep 6, 2020
1 parent 8677e36 commit 8b35530
Show file tree
Hide file tree
Showing 6 changed files with 437 additions and 210 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_app/src/task_pool_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Default for DefaultTaskPoolOptions {
fn default() -> Self {
DefaultTaskPoolOptions {
// By default, use however many cores are available on the system
min_total_threads: 4, // TODO(#408): set `min_total_threads` back to `1`
min_total_threads: 1,
max_total_threads: std::usize::MAX,

// Use 25% of cores for IO, at least 1, no more than 4
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bevy_hecs = { path = "hecs", features = ["macros", "serialize"], version = "0.1"
bevy_tasks = { path = "../bevy_tasks", version = "0.1" }
bevy_utils = { path = "../bevy_utils", version = "0.1" }
rand = "0.7.2"
crossbeam-channel = "0.4.2"
fixedbitset = "0.3.0"
downcast-rs = "1.1.1"
parking_lot = "0.10"
log = { version = "0.4", features = ["release_max_level_info"] }
Loading

0 comments on commit 8b35530

Please sign in to comment.