Skip to content

Commit a912a48

Browse files
aevyriecart
andauthored
Bevymark 3D (#22298)
# Objective - Add a stress test that exercises the 3d mesh pipeline for dynamic scenes. - Large static scenes like caldera hotel don't expose performance issues when many meshes are moving. - Give us a way to benchmark PRs like - #22297 - #22281 - #22226 ## Solution - Make a 3d version of `bevymark`, sticking to the existing patterns as closely as possible. ## Testing <img width="1072" height="684" alt="image" src="https://github.com/user-attachments/assets/41214ba9-ffad-471d-a320-1f007490dead" /> --------- Co-authored-by: Carter Anderson <mcanders1@gmail.com>
1 parent b4deee2 commit a912a48

3 files changed

Lines changed: 564 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,17 @@ description = "A heavy sprite rendering workload to benchmark your system with B
33153315
category = "Stress Tests"
33163316
wasm = true
33173317

3318+
[[example]]
3319+
name = "bevymark_3d"
3320+
path = "examples/stress_tests/bevymark_3d.rs"
3321+
doc-scrape-examples = true
3322+
3323+
[package.metadata.example.bevymark_3d]
3324+
name = "Bevymark 3D"
3325+
description = "A heavy 3D cube rendering workload to benchmark your system with Bevy"
3326+
category = "Stress Tests"
3327+
wasm = true
3328+
33183329
[[example]]
33193330
name = "many_animated_sprites"
33203331
path = "examples/stress_tests/many_animated_sprites.rs"

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ cargo run --release --example <example name>
518518
Example | Description
519519
--- | ---
520520
[Bevymark](../examples/stress_tests/bevymark.rs) | A heavy sprite rendering workload to benchmark your system with Bevy
521+
[Bevymark 3D](../examples/stress_tests/bevymark_3d.rs) | A heavy 3D cube rendering workload to benchmark your system with Bevy
521522
[Many Animated Materials](../examples/stress_tests/many_materials.rs) | Benchmark to test rendering many animated materials
522523
[Many Animated Sprites](../examples/stress_tests/many_animated_sprites.rs) | Displays many animated sprites in a grid arrangement with slight offsets to their animation timers. Used for performance testing.
523524
[Many Buttons](../examples/stress_tests/many_buttons.rs) | Test rendering of many UI elements

0 commit comments

Comments
 (0)