bevy/crates/bevy_text
François 4e2600b788 text rendering: convert colours only once per section (#5474)
# Objective

- Improve performance when rendering text

## Solution

- While playing with example `many_buttons`, I noticed a lot of time was spent converting colours
- Investigating, the biggest culprit seems to be text colour. Each glyph in a text is an individual UI node for rendering, with a copy of the colour. Making the conversion to RGBA linear only once per text section reduces the number of conversion done once rendering.
- This improves FPS for example `many_buttons` from ~33 to ~42
- I did the same change for text 2d
2022-07-28 13:34:56 +00:00
..
src text rendering: convert colours only once per section (#5474) 2022-07-28 13:34:56 +00:00
Cargo.toml Move float_ord from bevy_core to bevy_utils (#4189) 2022-04-27 18:02:05 +00:00