mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
4e2600b788
# 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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |