Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render text into textures #1159

Open
TheRawMeatball opened this issue Dec 28, 2020 · 4 comments
Open

Render text into textures #1159

TheRawMeatball opened this issue Dec 28, 2020 · 4 comments
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible

Comments

@TheRawMeatball
Copy link
Member

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

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).

@Moxinilian Moxinilian added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Dec 28, 2020
@PabloMansanet
Copy link

I'm very interested in this and I've done some work on text as part of #1122, so I'm happy to give this a shot, or to help out if you've already started work on it. I'd appreciate some mentoring around the rendering side, which I'm less familiar with.

@TheRawMeatball
Copy link
Member Author

I tried and failed to implement this myself. I'm not very familiar with the rendering system either, but as far as I know, there isn't a way to render to a texture yet. I would love to be proven wrong on this feature being blocked on another, but I think the best course of action would be to first implement a generic way to render stuff into textures, which could probably use its own issue.

@PabloMansanet
Copy link

Right, I see. Going to give that a shot. If nothing else, it will be a great excuse to learn about the rendering pipeline :)

@tigregalis
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible
Projects
None yet
Development

No branches or pull requests

4 participants