Profiling support (#743)

This commit is contained in:
Thierry Berger
2024-11-19 16:33:26 +01:00
committed by GitHub
parent ff79f4c674
commit 510237cc29
56 changed files with 185 additions and 635 deletions

View File

@@ -20,7 +20,7 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lib]
name = "rapier_testbed2d"
name = "rapier_testbed2d_f64"
path = "../../src_testbed/lib.rs"
required-features = ["dim2"]
@@ -34,9 +34,12 @@ default = ["dim2"]
dim2 = []
parallel = ["rapier/parallel", "num_cpus"]
other-backends = ["wrapped2d"]
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", "profiling"]
[dependencies]
nalgebra = { version = "0.33", features = ["rand", "glam027"] }
@@ -55,7 +58,8 @@ bevy_ecs = "0.14"
bevy_core_pipeline = "0.14"
bevy_pbr = "0.14"
bevy_sprite = "0.14"
#bevy_prototype_debug_lines = "0.7"
profiling = "1.0"
puffin_egui = { version = "0.29", optional = true }
# Dependencies for native only.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]