diff options
| author | rezural <rezural@protonmail.com> | 2020-12-24 21:42:46 +1100 |
|---|---|---|
| committer | rezural <rezural@protonmail.com> | 2020-12-24 21:42:59 +1100 |
| commit | 5fce09cb52f7c24662650a998d279433a324e517 (patch) | |
| tree | c062d50398dcc8a77624509aeaa6ac8267268e22 /src_testbed/harness | |
| parent | 31032ab96978a32811319bb911b4e8e905918fe7 (diff) | |
| download | rapier-5fce09cb52f7c24662650a998d279433a324e517.tar.gz rapier-5fce09cb52f7c24662650a998d279433a324e517.tar.bz2 rapier-5fce09cb52f7c24662650a998d279433a324e517.zip | |
rework some threading code with the ui
Diffstat (limited to 'src_testbed/harness')
| -rw-r--r-- | src_testbed/harness/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src_testbed/harness/mod.rs b/src_testbed/harness/mod.rs index 228ffe0..916823e 100644 --- a/src_testbed/harness/mod.rs +++ b/src_testbed/harness/mod.rs @@ -10,6 +10,8 @@ pub mod plugin; pub struct RunState { #[cfg(feature = "parallel")] pub thread_pool: rapier::rayon::ThreadPool, + #[cfg(feature = "parallel")] + pub num_threads: usize, pub timestep_id: usize, pub time: f32, } @@ -28,6 +30,8 @@ impl RunState { Self { #[cfg(feature = "parallel")] thread_pool: thread_pool, + #[cfg(feature = "parallel")] + num_threads, timestep_id: 0, time: 0.0, } |
