bevy/examples/stress_tests
Kanabenki e3cf5f8fb2
Use the Continuous update mode in stress tests when unfocused (#11652)
# Objective

- When running any of the stress tests, the refresh rate is currently
capped to 60hz because of the `ReactiveLowPower` default used when the
window is not in focus. Since stress tests should run as fast as
possible (and as such vsync is disabled for all of them), it makes sense
to always run them in `Continuous` mode. This is especially useful to
avoid capturing non-representative frame times when recording a Tracy
frame.

## Solution

- Always use the `Continuous` update mode in stress tests.
2024-02-01 19:22:47 +00:00
..
bevymark.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_animated_sprites.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_buttons.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_cubes.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_foxes.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_gizmos.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_glyphs.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_lights.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
many_sprites.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
text_pipeline.rs Use the Continuous update mode in stress tests when unfocused (#11652) 2024-02-01 19:22:47 +00:00
transform_hierarchy.rs Remove some old references to CoreSet (#9833) 2023-09-18 01:07:11 +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>