bevy/examples/stress_tests
MiniaczQ f602edad09
Text Rework cleanup (#15887)
# Objective

Cleanup naming and docs, add missing migration guide after #15591 

All text root nodes now use `Text` (UI) / `Text2d`.
All text readers/writers use `Text<Type>Reader`/`Text<Type>Writer`
convention.

---

## Migration Guide

Doubles as #15591 migration guide.

Text bundles (`TextBundle` and `Text2dBundle`) were removed in favor of
`Text` and `Text2d`.
Shared configuration fields were replaced with `TextLayout`, `TextFont`
and `TextColor` components.
Just `TextBundle`'s additional field turned into `TextNodeFlags`
component,
while `Text2dBundle`'s additional fields turned into `TextBounds` and
`Anchor` components.

Text sections were removed in favor of hierarchy-based approach.
For root text entities with `Text` or `Text2d` components, child
entities with `TextSpan` will act as additional text sections.
To still access text spans by index, use the new `TextUiReader`,
`Text2dReader` and `TextUiWriter`, `Text2dWriter` system parameters.
2024-10-15 02:32:34 +00:00
..
bevymark.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
many_animated_sprites.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
many_buttons.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
many_cubes.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
many_foxes.rs Deprecate SpatialBundle (#15830) 2024-10-13 17:28:22 +00:00
many_gizmos.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
many_glyphs.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
many_lights.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
many_sprites.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
README.md Add a stress test profile (#6901) 2022-12-20 15:59:41 +00:00
text_pipeline.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
transform_hierarchy.rs Deprecate get_or_spawn (#15652) 2024-10-07 16:08:22 +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>