bevy/errors
ickshonpe 6f7d0e5725
split up TextStyle (#15857)
# Objective

Currently text is recomputed unnecessarily on any changes to its color,
which is extremely expensive.

## Solution
Split up `TextStyle` into two separate components `TextFont` and
`TextColor`.

## Testing

I added this system to `many_buttons`:
```rust
fn set_text_colors_changed(mut colors: Query<&mut TextColor>) {
    for mut text_color in colors.iter_mut() {
        text_color.set_changed();
    }
}
```

reports ~4fps on main, ~50fps with this PR.

## Migration Guide
`TextStyle` has been renamed to `TextFont` and its `color` field has
been moved to a separate component named `TextColor` which newtypes
`Color`.
2024-10-13 17:06:22 +00:00
..
src Add a [lints] entry for workspace members missing it (#11900) 2024-02-19 17:09:47 +00:00
B0001.md
B0002.md
B0003.md
B0004.md Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
B0005.md split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
B0006.md Print warning when using llvmpipe (#13780) 2024-06-26 12:44:48 +00:00
Cargo.toml Generate links to definition in source code pages on docs.rs and dev-docs.bevyengine.org (#12965) 2024-07-29 23:10:16 +00:00
README.md

Bevy Error Codes

This crate lists and tests explanations and examples of Bevy's error codes.

For the latest Bevy release, you can find a rendered version of the error code descriptions at bevyengine.org/learn/errors.