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

Rendering pipeline rework #12

Open
Apostolique opened this issue May 7, 2024 · 0 comments
Open

Rendering pipeline rework #12

Apostolique opened this issue May 7, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Apostolique
Copy link
Owner

The current way of rendering components isn't all that efficient. The scissor rect handling requires flushing the batch between each components. We're using the SpriteBatch which doesn't support drawing shapes natively without hacks. Font rendering is done with FontStashSharp, it would be nicer to use MSDF for example MonoGame.MSDF-Font-Library.

In the long term, it would be nice to support fancy effects for example check the UI in Frostpunk. It's possible to do something like that already but it would be really painful.

Some features to think about:

  • CPU cropping directly on the vertices. (Avoids needing scissor rects.)
  • MSDF font
  • Shapes, maybe with a simplified version of Apos.Shapes.
  • Masking

Ideally you can have cleaner batches.

@Apostolique Apostolique added enhancement New feature or request help wanted Extra attention is needed labels Jun 23, 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 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant