remove thread code completely from testbed
This commit is contained in:
@@ -162,17 +162,6 @@ impl Testbed {
|
|||||||
#[cfg(all(feature = "dim3", feature = "other-backends"))]
|
#[cfg(all(feature = "dim3", feature = "other-backends"))]
|
||||||
backend_names.push("physx (two friction dir)");
|
backend_names.push("physx (two friction dir)");
|
||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
|
||||||
let num_threads = num_cpus::get_physical();
|
|
||||||
#[cfg(not(feature = "parallel"))]
|
|
||||||
let num_threads = 1;
|
|
||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
|
||||||
let thread_pool = rapier::rayon::ThreadPoolBuilder::new()
|
|
||||||
.num_threads(num_threads)
|
|
||||||
.build()
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let state = TestbedState {
|
let state = TestbedState {
|
||||||
running: RunMode::Running,
|
running: RunMode::Running,
|
||||||
draw_colls: false,
|
draw_colls: false,
|
||||||
@@ -192,8 +181,6 @@ impl Testbed {
|
|||||||
selected_backend: RAPIER_BACKEND,
|
selected_backend: RAPIER_BACKEND,
|
||||||
physx_use_two_friction_directions: true,
|
physx_use_two_friction_directions: true,
|
||||||
num_threads,
|
num_threads,
|
||||||
#[cfg(feature = "parallel")]
|
|
||||||
thread_pool,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let harness = Harness::new_empty();
|
let harness = Harness::new_empty();
|
||||||
|
|||||||
Reference in New Issue
Block a user