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

Optimize UI rendering #705

Open
mrDIMAS opened this issue Dec 5, 2024 · 0 comments
Open

Optimize UI rendering #705

mrDIMAS opened this issue Dec 5, 2024 · 0 comments
Labels
graphics anything graphics- and rendering-related user-interface
Milestone

Comments

@mrDIMAS
Copy link
Member

mrDIMAS commented Dec 5, 2024

UI rendering is currently very unoptimal - pretty much every drawing command generated by the UI is executed "as-is" by the renderer, which causing insane amount of draw calls. For example the editor itself can easily generate 2k of draw calls.

Optimization should merge drawing commands (when possible) into a bigger one, essentially it should merge vertex/index buffers together into bigger chunks. However, it is only possible when drawing commands does not use unique textures and when bounds of drawing command is less or equal to clipping bounds (otherwise the renderer must use scissor test, which breaks rendering batch).

@mrDIMAS mrDIMAS added user-interface graphics anything graphics- and rendering-related labels Dec 5, 2024
@mrDIMAS mrDIMAS added this to the Fyrox 1.0 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphics anything graphics- and rendering-related user-interface
Projects
None yet
Development

No branches or pull requests

1 participant