Skip to content

Commit

Permalink
Update readme and disable parallel builds (#140)
Browse files Browse the repository at this point in the history
I am unsure if it brings any speedup right now, and on 2d there is a
great increase without threads. So disabling parallel builds for now
until I debug more.
  • Loading branch information
Ughuuu authored Jul 3, 2024
1 parent 9630e6b commit 53ce66f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 31 deletions.
24 changes: 0 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ serde-serialize = ["serde", "hashbrown/serde", "bincode", "serde_json", "typetag
simd-stable = ["rapier2d/simd-stable", "rapier2d-f64/simd-stable", "rapier3d/simd-stable", "rapier3d-f64/simd-stable"]
simd-nightly = ["rapier2d/simd-nightly", "rapier2d-f64/simd-nightly", "rapier3d/simd-nightly", "rapier3d-f64/simd-nightly"]
wasm-bindgen = ["rapier2d/wasm-bindgen", "rapier2d-f64/wasm-bindgen", "rapier3d/wasm-bindgen", "rapier3d-f64/wasm-bindgen"]
parallel = ["rapier2d/parallel", "rapier2d-f64/parallel", "rapier3d/parallel", "rapier3d-f64/parallel"]
#parallel = ["rapier2d/parallel", "rapier2d-f64/parallel", "rapier3d/parallel", "rapier3d-f64/parallel"]
parallel = []
experimental-wasm = ["godot/experimental-wasm", "godot/lazy-function-tables"]
single-dim2 = ["single", "dim2", "rapier2d", "salva2d"]
double-dim2 = ["double", "dim2", "rapier2d-f64", "salva2d"]
single-dim3 = ["single", "dim3", "rapier3d", "salva3d"]
double-dim3 = ["double", "dim3", "rapier3d-f64", "salva3d"]


[dependencies]
bincode = { version = "1", optional = true }
hashbrown = { version = "0.14" }
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ Godot Rapier Physics is a 2D and 3D physics drop-in replacement for the [Godot g

# Performance

Creating objects until FPS drops below 30. Running on a macbook m2 pro. Everything is run inside the godot editor using the [Godot Physics Tests](https://github.com/fabriceci/Godot-Physics-Tests) repository.
Creating objects until FPS drops below 30. Running on a macbook m2 pro with Godot 4.2. Everything is run inside the godot editor using the [Godot Physics Tests](https://github.com/fabriceci/Godot-Physics-Tests) repository.

Each cell shows max shape count. Higher number is better.

Shape|Godot 2D|Godot 3D|Rapier 2D (C++)|Rapier 2D (Rust)|Rapier 3D (Rust)|Jolt 3D
-|-|-|-|-|-|-
Sphere|5000|3300|8800|5000|4200|8000
Box|3500|3200|7700|4500|4000|7200
Capsule|4500|2700|8000|4500|3700|7400
Convex Polygon|3500|3100|6500|4000|4000|8000
Sphere|5000|3300|8800|6200|4200|8000
Box|3500|3200|7700|5800|4000|7200
Capsule|4500|2700|8000|5800|3700|7400
Convex Polygon|3500|3100|6500|4800|4000|8000

TODO run pyramid and joints tests.


# Note

Expand Down

0 comments on commit 53ce66f

Please sign in to comment.