aboutsummaryrefslogtreecommitdiff
path: root/crates
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
parentff79f4c67478f8c8045464cac22f9e57388cd4a0 (diff)
downloadrapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.gz
rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.tar.bz2
rapier-510237cc29ebc667a8c158ef0340b7d1aa669a72.zip
Profiling support (#743)
Diffstat (limited to 'crates')
-rw-r--r--crates/rapier2d-f64/Cargo.toml1
-rw-r--r--crates/rapier2d/Cargo.toml1
-rw-r--r--crates/rapier3d-f64/Cargo.toml1
-rw-r--r--crates/rapier3d-meshloader/Cargo.toml1
-rw-r--r--crates/rapier3d/Cargo.toml1
-rw-r--r--crates/rapier_testbed2d-f64/Cargo.toml10
-rw-r--r--crates/rapier_testbed2d/Cargo.toml8
-rw-r--r--crates/rapier_testbed3d-f64/Cargo.toml10
-rw-r--r--crates/rapier_testbed3d/Cargo.toml8
9 files changed, 31 insertions, 10 deletions
diff --git a/crates/rapier2d-f64/Cargo.toml b/crates/rapier2d-f64/Cargo.toml
index 6517e0f..4a149e0 100644
--- a/crates/rapier2d-f64/Cargo.toml
+++ b/crates/rapier2d-f64/Cargo.toml
@@ -84,6 +84,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
+profiling = "1.0"
[dev-dependencies]
bincode = "1"
diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml
index e2afba1..f854cb4 100644
--- a/crates/rapier2d/Cargo.toml
+++ b/crates/rapier2d/Cargo.toml
@@ -84,6 +84,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
+profiling = "1.0"
[dev-dependencies]
bincode = "1"
diff --git a/crates/rapier3d-f64/Cargo.toml b/crates/rapier3d-f64/Cargo.toml
index de8a741..a7ea583 100644
--- a/crates/rapier3d-f64/Cargo.toml
+++ b/crates/rapier3d-f64/Cargo.toml
@@ -87,6 +87,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
+profiling = "1.0"
[dev-dependencies]
bincode = "1"
diff --git a/crates/rapier3d-meshloader/Cargo.toml b/crates/rapier3d-meshloader/Cargo.toml
index a470afc..211cea0 100644
--- a/crates/rapier3d-meshloader/Cargo.toml
+++ b/crates/rapier3d-meshloader/Cargo.toml
@@ -26,6 +26,7 @@ wavefront = ["mesh-loader/obj"]
[dependencies]
thiserror = "1.0.61"
+profiling = "1.0"
mesh-loader = { version = "0.1.12", optional = true }
rapier3d = { version = "0.22", path = "../rapier3d" }
diff --git a/crates/rapier3d/Cargo.toml b/crates/rapier3d/Cargo.toml
index bd9f77c..bc048c1 100644
--- a/crates/rapier3d/Cargo.toml
+++ b/crates/rapier3d/Cargo.toml
@@ -87,6 +87,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
+profiling = "1.0"
[dev-dependencies]
bincode = "1"
diff --git a/crates/rapier_testbed2d-f64/Cargo.toml b/crates/rapier_testbed2d-f64/Cargo.toml
index 9770080..fab8958 100644
--- a/crates/rapier_testbed2d-f64/Cargo.toml
+++ b/crates/rapier_testbed2d-f64/Cargo.toml
@@ -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]
diff --git a/crates/rapier_testbed2d/Cargo.toml b/crates/rapier_testbed2d/Cargo.toml
index 77373bd..b95966f 100644
--- a/crates/rapier_testbed2d/Cargo.toml
+++ b/crates/rapier_testbed2d/Cargo.toml
@@ -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", "other-backends", "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]
diff --git a/crates/rapier_testbed3d-f64/Cargo.toml b/crates/rapier_testbed3d-f64/Cargo.toml
index 3fa2511..97d1a54 100644
--- a/crates/rapier_testbed3d-f64/Cargo.toml
+++ b/crates/rapier_testbed3d-f64/Cargo.toml
@@ -20,7 +20,7 @@ edition = "2021"
maintenance = { status = "actively-developed" }
[lib]
-name = "rapier_testbed3d"
+name = "rapier_testbed3d_f64"
path = "../../src_testbed/lib.rs"
required-features = ["dim3"]
@@ -36,9 +36,12 @@ rust.unexpected_cfgs = { level = "warn", check-cfg = [
default = ["dim3"]
dim3 = []
parallel = ["rapier/parallel", "num_cpus"]
+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"]
+features = ["parallel", "profiling"]
[dependencies]
nalgebra = { version = "0.33", features = ["rand", "glam027"] }
@@ -57,7 +60,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, git = "https://github.com/Vrixyz/puffin.git", branch = "expose_ui_options" }
# Dependencies for native only.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
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]