diff options
| author | Sébastien Crozet <sebcrozet@dimforge.com> | 2024-01-22 21:06:33 +0100 |
|---|---|---|
| committer | Sébastien Crozet <sebcrozet@dimforge.com> | 2024-01-22 21:06:33 +0100 |
| commit | bef72df32c6f5c9275b82b38b387e9295430814a (patch) | |
| tree | d813501a153938d0d25f7792bfd4b05a780da761 /src | |
| parent | 9b87f06a856c4d673642e210f8b0986cfdbac3af (diff) | |
| download | rapier-bef72df32c6f5c9275b82b38b387e9295430814a.tar.gz rapier-bef72df32c6f5c9275b82b38b387e9295430814a.tar.bz2 rapier-bef72df32c6f5c9275b82b38b387e9295430814a.zip | |
chore: CI fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynamics/island_manager.rs | 1 | ||||
| -rw-r--r-- | src/dynamics/joint/impulse_joint/impulse_joint_set.rs | 1 | ||||
| -rw-r--r-- | src/dynamics/joint/multibody_joint/multibody.rs | 1 | ||||
| -rw-r--r-- | src/dynamics/solver/interaction_groups.rs | 2 | ||||
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 6 |
5 files changed, 8 insertions, 3 deletions
diff --git a/src/dynamics/island_manager.rs b/src/dynamics/island_manager.rs index 4d14147..43ac4ec 100644 --- a/src/dynamics/island_manager.rs +++ b/src/dynamics/island_manager.rs @@ -142,6 +142,7 @@ impl IslandManager { } #[cfg(feature = "parallel")] + #[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism. pub(crate) fn active_island_range(&self, island_id: usize) -> std::ops::Range<usize> { self.active_islands[island_id]..self.active_islands[island_id + 1] } diff --git a/src/dynamics/joint/impulse_joint/impulse_joint_set.rs b/src/dynamics/joint/impulse_joint/impulse_joint_set.rs index faae1f6..67f8949 100644 --- a/src/dynamics/joint/impulse_joint/impulse_joint_set.rs +++ b/src/dynamics/joint/impulse_joint/impulse_joint_set.rs @@ -215,6 +215,7 @@ impl ImpulseJointSet { // } // #[cfg(not(feature = "parallel"))] + #[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism. pub(crate) fn joints_mut(&mut self) -> &mut [JointGraphEdge] { &mut self.joint_graph.graph.edges[..] } diff --git a/src/dynamics/joint/multibody_joint/multibody.rs b/src/dynamics/joint/multibody_joint/multibody.rs index c3092ae..c65a6ff 100644 --- a/src/dynamics/joint/multibody_joint/multibody.rs +++ b/src/dynamics/joint/multibody_joint/multibody.rs @@ -943,6 +943,7 @@ impl Multibody { #[cfg(feature = "parallel")] #[inline] + #[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism. pub(crate) fn num_active_internal_constraints_and_jacobian_lines(&self) -> (usize, usize) { let num_constraints: usize = self .links diff --git a/src/dynamics/solver/interaction_groups.rs b/src/dynamics/solver/interaction_groups.rs index 40fbe92..d654a59 100644 --- a/src/dynamics/solver/interaction_groups.rs +++ b/src/dynamics/solver/interaction_groups.rs @@ -32,6 +32,7 @@ impl<'a> PairInteraction for JointGraphEdge { } #[cfg(feature = "parallel")] +#[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism. pub(crate) struct ParallelInteractionGroups { bodies_color: Vec<u128>, // Workspace. interaction_indices: Vec<usize>, // Workspace. @@ -41,6 +42,7 @@ pub(crate) struct ParallelInteractionGroups { } #[cfg(feature = "parallel")] +#[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism. impl ParallelInteractionGroups { pub fn new() -> Self { Self { diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index aa5ed23..5ff78fd 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -262,7 +262,7 @@ impl PhysicsPipeline { // Intra-island parallelism (that hasn’t been ported to the new // solver yet) will be supported in the future. self.counters.solver.velocity_resolution_time.resume(); - rayon::scope(|scope| { + rayon::scope(|_scope| { enable_flush_to_zero!(); solvers @@ -287,9 +287,9 @@ impl PhysicsPipeline { islands, bodies, &mut manifolds[..], - &self.manifold_indices[island_id], + &manifold_indices[island_id], impulse_joints, - &self.joint_constraint_indices[island_id], + &joint_constraint_indices[island_id], multibody_joints, ) }); |
