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

Improve performance of battle menus #3

Open
fatcerberus opened this issue Apr 1, 2017 · 1 comment
Open

Improve performance of battle menus #3

fatcerberus opened this issue Apr 1, 2017 · 1 comment

Comments

@fatcerberus
Copy link
Owner

The frame rate tends to chug while battle menus are open due to rendering text every frame. This could be sped up significantly by pre-rendering menu items before the menu is displayed.

@fatcerberus
Copy link
Owner Author

It turns out the text is only part of the problem: all the battle UI is slow in general due to two factors: 1. heavy use of “immediate mode” rendering, e.g. Prim and Sphere v1 primitives, which sends vertices to the GPU endlessly; and 2. tons of temporary Color objects being created and discarded every frame, causing heavy GC pressure.

All of the UI code should be rewritten to use modern rendering techiques, which is not a trivial task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant