mirror of
https://github.com/bevyengine/bevy
synced 2025-01-05 01:38:56 +00:00
675f8ad403
# Objective The UI text rendering is really slow because it extracts each glyph as a separate ui node even though all the glyphs in a text section have the same texture, color and clipping rects. ## Solution Store the glyphs in a seperate contiguous array, queue one transparent ui item per text section which has indices into the glyph array. ## Testing ```cargo run --example many_glyphs --release``` Runs at about 22fps on main and 95fps with this PR on my computer. I'll do some proper comparisons once I work out why tracy 11 is refusing to run. --------- Co-authored-by: Kristoffer Søholm <k.soeholm@gmail.com> |
||
---|---|---|
.. | ||
box_shadow.rs | ||
box_shadow.wgsl | ||
mod.rs | ||
pipeline.rs | ||
render_pass.rs | ||
ui.wgsl | ||
ui_material.wgsl | ||
ui_material_pipeline.rs | ||
ui_texture_slice.wgsl | ||
ui_texture_slice_pipeline.rs | ||
ui_vertex_output.wgsl |