aboutsummaryrefslogtreecommitdiff
path: root/crates/rapier_testbed3d
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-11-19 16:33:26 +0100
committerGitHub <noreply@github.com>2024-11-19 16:33:26 +0100
commit510237cc29ebc667a8c158ef0340b7d1aa669a72 (patch)
tree772daf3fac2e463eba254900001fce5a659f2f92 /crates/rapier_testbed3d
parentff79f4c67478f8c8045464cac22f9e57388cd4a0 (diff)
downloadrapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.gz
rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.bz2
rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.zip
Profiling support (#743)
Diffstat (limited to 'crates/rapier_testbed3d')
-rw-r--r--crates/rapier_testbed3d/Cargo.toml8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/rapier_testbed3d/Cargo.toml b/crates/rapier_testbed3d/Cargo.toml
index a7a3fe8..2b536ab 100644
--- a/crates/rapier_testbed3d/Cargo.toml
+++ b/crates/rapier_testbed3d/Cargo.toml
@@ -34,9 +34,12 @@ default = ["dim3"]
dim3 = []
parallel = ["rapier/parallel", "num_cpus"]
other-backends = ["physx", "physx-sys", "glam"]
+profiling = ["dep:puffin_egui", "profiling/profile-with-puffin"]
+# See https://github.com/dimforge/rapier/issues/760.
+unstable-puffin-pr-235 = []
[package.metadata.docs.rs]
-features = ["parallel", "other-backends"]
+features = ["parallel", "other-backends", "profiling"]
[dependencies]
nalgebra = { version = "0.33", features = ["rand", "glam027"] }
@@ -58,7 +61,8 @@ bevy_ecs = "0.14"
bevy_core_pipeline = "0.14"
bevy_pbr = "0.14"
bevy_sprite = "0.14"
-#bevy_prototype_debug_lines = { version = "0.7", features = [ "3d" ] }
+profiling = "1.0"
+puffin_egui = { version = "0.29", optional = true }
# Dependencies for native only.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]