bevyengine / bevyengine/bevy

Render text into textures

Open
#1,159 4 comments 1 reaction 0 assignees View on GitHub
A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

Currently, text is rendered using the sprite sheet pipeline. This has various issues:

- Breaks code encapsulation: They are similar, but linking them makes it harder to develop features for text rendering and vice versa.
- Is really slow: (see #1122)
- Blocks #1158

I propose text rendering is done using a specialized pipeline, rendering the text into a texture that can stay on the GPU improving performance, and enabling text to use the same render pipeline the rest of the UI systems use.

As an alternative, optimization could be done elsewhere, and spritesheets and text could stay linked, but neither would allow the approach in #1158 (or a possible reimplementation).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.