![]() # Objective I'm working on some PRs involving our font atlases and it would be nice to be able to test these scenarios separately to better understand the performance tradeoffs in different situations. ## Solution Add a `many-font-sizes` option. The old behavior is still available by running with `--many-glyphs --many-font-sizes`. ## Testing `cargo run --example many_text2d --release` `cargo run --example many_text2d --release -- --many-glyphs` `cargo run --example many_text2d --release -- --many-font-sizes` `cargo run --example many_text2d --release -- --many-glyphs --many-font-sizes` |
||
---|---|---|
.. | ||
bevymark.rs | ||
many_animated_sprites.rs | ||
many_buttons.rs | ||
many_cameras_lights.rs | ||
many_components.rs | ||
many_cubes.rs | ||
many_foxes.rs | ||
many_gizmos.rs | ||
many_glyphs.rs | ||
many_lights.rs | ||
many_materials.rs | ||
many_sprites.rs | ||
many_text2d.rs | ||
README.md | ||
text_pipeline.rs | ||
transform_hierarchy.rs | ||
warning_string.txt |
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>