aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/testbed.rs
diff options
context:
space:
mode:
authorrezural <rezural@protonmail.com>2020-12-24 21:42:46 +1100
committerrezural <rezural@protonmail.com>2020-12-24 21:42:59 +1100
commit5fce09cb52f7c24662650a998d279433a324e517 (patch)
treec062d50398dcc8a77624509aeaa6ac8267268e22 /src_testbed/testbed.rs
parent31032ab96978a32811319bb911b4e8e905918fe7 (diff)
downloadrapier-5fce09cb52f7c24662650a998d279433a324e517.tar.gz
rapier-5fce09cb52f7c24662650a998d279433a324e517.tar.bz2
rapier-5fce09cb52f7c24662650a998d279433a324e517.zip
rework some threading code with the ui
Diffstat (limited to 'src_testbed/testbed.rs')
-rw-r--r--src_testbed/testbed.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src_testbed/testbed.rs b/src_testbed/testbed.rs
index bb663e7..949afe7 100644
--- a/src_testbed/testbed.rs
+++ b/src_testbed/testbed.rs
@@ -115,7 +115,6 @@ pub struct TestbedState {
pub selected_example: usize,
pub selected_backend: usize,
pub physx_use_two_friction_directions: bool,
- pub num_threads: usize,
pub snapshot: Option<PhysicsSnapshot>,
}
@@ -180,7 +179,6 @@ impl Testbed {
selected_example: 0,
selected_backend: RAPIER_BACKEND,
physx_use_two_friction_directions: true,
- num_threads,
};
let harness = Harness::new_empty();
@@ -1027,6 +1025,7 @@ impl State for Testbed {
window,
&mut self.harness.physics.integration_parameters,
&mut self.state,
+ &mut self.harness.state
);
}