Skip to content

Commit 1f876d1

Browse files
committed
Filter out trace calls on compile time
1 parent 9baf7b5 commit 1f876d1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Cargo.lock

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ features = [
2828
]
2929

3030
[dependencies]
31-
# keep the following two in sync with Bevy's dependencies
31+
# keep the following in sync with Bevy's dependencies
3232
## https://github.com/bevyengine/bevy/blob/v0.13.1/crates/bevy_winit/Cargo.toml#L32
3333
winit = { version = "0.29", default-features = false }
3434
## https://github.com/bevyengine/bevy/blob/v0.13.1/crates/bevy_render/Cargo.toml#L61
3535
image = { version = "0.24", default-features = false }
36+
## This greatly improves WGPU's performance due to its heavy use of trace! calls
37+
log = { version = "0.4", features = ["max_level_debug", "release_max_level_warn"] }
3638

3739
# generic dependencies
3840
serde = { version = "1", features = ["derive"] }

0 commit comments

Comments
 (0)