Skip to content

Remove kinematic bodies from graph coloring #917

@Jondolf

Description

@Jondolf

Similar to static bodies, the constraint solver does not need to write to kinematic body state. This means that we could ignore them from graph coloring, since we can have read-only access to the body state from multiple threads without race conditions. This would improve parallelism and multi-threaded scaling for large kinematic bodies touching many dynamic bodies.

See erincatto/box2d#970 for an equivalent change and "kinematic washer" sample in Box2D.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DynamicsRelates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so onC-PerformanceImprovements or questions related to performanceD-ModestA moderate level of difficulty: suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions