mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 02:53:07 +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 |
||
---|---|---|
.. | ||
error.rs | ||
font.rs | ||
font_atlas.rs | ||
font_atlas_set.rs | ||
font_loader.rs | ||
glyph_brush.rs | ||
lib.rs | ||
pipeline.rs | ||
text.rs | ||
text2d.rs |