chore: CI fixes
This commit is contained in:
@@ -142,6 +142,7 @@ impl IslandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
#[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> {
|
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]
|
self.active_islands[island_id]..self.active_islands[island_id + 1]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ impl ImpulseJointSet {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// #[cfg(not(feature = "parallel"))]
|
// #[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] {
|
pub(crate) fn joints_mut(&mut self) -> &mut [JointGraphEdge] {
|
||||||
&mut self.joint_graph.graph.edges[..]
|
&mut self.joint_graph.graph.edges[..]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -943,6 +943,7 @@ impl Multibody {
|
|||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
#[cfg(feature = "parallel")]
|
||||||
#[inline]
|
#[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) {
|
pub(crate) fn num_active_internal_constraints_and_jacobian_lines(&self) -> (usize, usize) {
|
||||||
let num_constraints: usize = self
|
let num_constraints: usize = self
|
||||||
.links
|
.links
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ impl<'a> PairInteraction for JointGraphEdge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
#[cfg(feature = "parallel")]
|
||||||
|
#[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism.
|
||||||
pub(crate) struct ParallelInteractionGroups {
|
pub(crate) struct ParallelInteractionGroups {
|
||||||
bodies_color: Vec<u128>, // Workspace.
|
bodies_color: Vec<u128>, // Workspace.
|
||||||
interaction_indices: Vec<usize>, // Workspace.
|
interaction_indices: Vec<usize>, // Workspace.
|
||||||
@@ -41,6 +42,7 @@ pub(crate) struct ParallelInteractionGroups {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "parallel")]
|
#[cfg(feature = "parallel")]
|
||||||
|
#[allow(dead_code)] // That will likely be useful when we re-introduce intra-island parallelism.
|
||||||
impl ParallelInteractionGroups {
|
impl ParallelInteractionGroups {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ impl PhysicsPipeline {
|
|||||||
// Intra-island parallelism (that hasn’t been ported to the new
|
// Intra-island parallelism (that hasn’t been ported to the new
|
||||||
// solver yet) will be supported in the future.
|
// solver yet) will be supported in the future.
|
||||||
self.counters.solver.velocity_resolution_time.resume();
|
self.counters.solver.velocity_resolution_time.resume();
|
||||||
rayon::scope(|scope| {
|
rayon::scope(|_scope| {
|
||||||
enable_flush_to_zero!();
|
enable_flush_to_zero!();
|
||||||
|
|
||||||
solvers
|
solvers
|
||||||
@@ -287,9 +287,9 @@ impl PhysicsPipeline {
|
|||||||
islands,
|
islands,
|
||||||
bodies,
|
bodies,
|
||||||
&mut manifolds[..],
|
&mut manifolds[..],
|
||||||
&self.manifold_indices[island_id],
|
&manifold_indices[island_id],
|
||||||
impulse_joints,
|
impulse_joints,
|
||||||
&self.joint_constraint_indices[island_id],
|
&joint_constraint_indices[island_id],
|
||||||
multibody_joints,
|
multibody_joints,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user