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

SDF text rendering buffer refactor #466

Open
wouterlucas opened this issue Dec 9, 2024 · 0 comments
Open

SDF text rendering buffer refactor #466

wouterlucas opened this issue Dec 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wouterlucas
Copy link
Contributor

Currently the SDF text render uses a double buffer along side the main color buffer, this results into double buffer swapping and excessive draw calls.

This results into high performance issues on low-end devices, where SDF is expected to be much faster the performance drops off quickly as the current approach generates a lot of overhead. Creating "lag" when the text is being rendered.

Possible changes:

  • Concat the SDF buffer to the main color buffer
  • Render SDF text to a texture and copy it in
  • Leverage instance drawing for text to reduce text overhead

cc @erikhaandrikman

@wouterlucas wouterlucas added the enhancement New feature or request label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant