bevy/examples/stress_tests
ickshonpe 387f1c593b
many-cameras option for many_buttons (#17935)
# Objective

Add an option to `many_buttons` that spawns a grid of buttons where each
button is rendered through its own camera.

## Testing

Run with:

```
cargo run --example many_buttons --release -- --many-cameras --buttons 20
```

The default buttons count of `110` is too much for my computer.
2025-03-10 21:23:31 +00:00
..
bevymark.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
many_animated_sprites.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_buttons.rs many-cameras option for many_buttons (#17935) 2025-03-10 21:23:31 +00:00
many_cameras_lights.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
many_components.rs many_components stress test improvements (#16913) 2025-02-10 21:13:57 +00:00
many_cubes.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_foxes.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
many_gizmos.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
many_glyphs.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
many_lights.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
many_materials.rs Add many_materials stress test (#17346) 2025-01-24 05:46:23 +00:00
many_sprites.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
many_text2d.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
text_pipeline.rs Allow users to customize history length in FrameTimeDiagnosticsPlugin (#17259) 2025-01-12 18:18:14 +00:00
transform_hierarchy.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
warning_string.txt Added performance warning when running stress test examples in debug mode (#5029) 2022-07-13 19:13:46 +00:00

Stress tests

These examples are used to stress test Bevy's performance in various ways. These should be run with the "stress-test" profile to accurately represent performance in production, otherwise they will run in cargo's default "dev" profile which is very slow.

Example Command

cargo run --profile stress-test --example <EXAMPLE>