bevy/examples/stress_tests
Liam Gallagher 5a66d035e2 Use Commands::spawn_batch in bevymark example (#7738)
# Objective

Fixes #7735

## Solution

Use `spawn_batch` instead of `spawn` repeatedly in a for loop

I have decided to switch from using rands `thread_rng()` to its `StdRng`,  this allows us to avoid calling `collect()` on the bundle iterator, if collecting is fine then I can revert it back to using `thread_rng()`.
2023-02-19 03:26:11 +00:00
..
bevymark.rs Use Commands::spawn_batch in bevymark example (#7738) 2023-02-19 03:26:11 +00:00
many_animated_sprites.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
many_buttons.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
many_cubes.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
many_foxes.rs added subdivisions to shape::Plane (#7546) 2023-02-13 18:20:20 +00:00
many_lights.rs Base Sets (#7466) 2023-02-06 03:10:08 +00:00
many_sprites.rs Cleanup many sprites stress tests (#7436) 2023-02-01 21:07:11 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
transform_hierarchy.rs Base Sets (#7466) 2023-02-06 03:10:08 +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>