Skip to content

Update to rapier 0.35.0 - #699

Merged
sebcrozet merged 2 commits into
masterfrom
rapier-0.35
Aug 8, 2026
Merged

Update to rapier 0.35.0#699
sebcrozet merged 2 commits into
masterfrom
rapier-0.35

Conversation

@sebcrozet

@sebcrozet sebcrozet commented Aug 8, 2026

Copy link
Copy Markdown
Member

This updates the rapier dependency to 0.35.0, bring massive performance improvements.

This actually uses a special version of rapier: 0.35.0-glamx0.2 which is essentially the same as 0.35.0 but with its glamx dependency pinned to 0.2 instead of the latest 0.3. That way, bevy_rapier can be compatible with bevy 0.19 which still depends on an outdated version of glam. We will switch to the "normal" rapier version 0.35.0 when bevy 0.20 gets released with the latest glam.

You can see more there: dimforge/rapier#973

I’m attaching the summary on performance improvements below (copied from the Rapier PR) for visibility.


The graphs show performance comparisons of various 2D and 3D physics engines in single-thread and multi-thread mode. The benchmarks are run on a Macbook Pro M4 Max. The general trends are that the new rapier is:

  • about 50% (single-thread) or 300% (multi-thread) faster than the previous version.
  • about on-par-to-slightly-faster than Box3D (especially on single-threaded simulations).
  • about on-par-to-slightly-slower than Box2D (especially on multi-threaded simulations).
  • about 150% (single-thread) or 280% (multi-thread) faster than Avian.
  • about 50% (single-thread) or 100% (multi-thread) faster than Jolt. It is also significantly more stable on stacks than Jolt.
3d_balls 3d_boxes 3d_capsules 3d_convex_hulls 3d_joint_grid 3d_large_pyramid 3d_many_pyramids 3d_ragdolls 2d_balls 2d_boxes 2d_capsules 2d_convex_polygons 2d_joint_grid 2d_large_pyramid 2d_many_pyramids 2d_ragdolls

@sebcrozet
sebcrozet merged commit ec61253 into master Aug 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant