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

Unicode Table significantly increases GPU load #45

Open
Aflaris opened this issue Jul 9, 2024 · 1 comment
Open

Unicode Table significantly increases GPU load #45

Aflaris opened this issue Jul 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Aflaris
Copy link

Aflaris commented Jul 9, 2024

Opened up the Unicode Table on Minecraft version 1.21 for a minute and my GPU load skyrocketed (my gpu went from 30% to 60%). Probably due to loading all those complex characters all at once. Notably my CPU usage and memory were unaffected. Perhaps try limiting framerate, not rendering off-screen characters, or adding tabs to the table so not all characters are rendered at the same time. No big deal since I only use it for finding characters every once and a while but I'd call it a performance issue nonetheless.

@replaceitem
Copy link
Owner

Yea most of the render time is spent rendering the characters, but also some rendering the background squares.
The screen is already a bit optimized. There are no off screen characters being rendered, since when scrolling, all buttons are discarded and only for visible characters, new buttons are created.
However i can think of some way to improve performance further which i can implement:

  • Instead of drawing background squares for each button, only draw a grid with lines which should be faster
  • Toggle to render characters without shadow (should double performance)
  • Render unicode block colors as larger rectangles

@replaceitem replaceitem added the enhancement New feature or request label Jul 9, 2024
@replaceitem replaceitem self-assigned this Jul 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

2 participants