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

@@ -84,6 +84,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
profiling = "1.0"
[dev-dependencies]
bincode = "1"

View File

@@ -84,6 +84,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
profiling = "1.0"
[dev-dependencies]
bincode = "1"

View File

@@ -87,6 +87,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
profiling = "1.0"
[dev-dependencies]
bincode = "1"

View File

@@ -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" }

View File

@@ -87,6 +87,7 @@ bitflags = "2"
log = "0.4"
ordered-float = "4"
thiserror = "1"
profiling = "1.0"
[dev-dependencies]
bincode = "1"

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]

View File

@@ -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]

View File

@@ -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]

View File

@@ -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]