replaceitem / symbol-chat

Add many symbols supported by minecraft into the chat.
https://modrinth.com/mod/symbol-chat
MIT License
22 stars 13 forks source link

Unicode Table significantly increases GPU load #45

Closed Aflaris closed 5 days ago

Aflaris commented 2 weeks ago

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 commented 2 weeks ago

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:

replaceitem commented 5 days ago

Fixed by the following performance improvements f778e5c39ec847279376963c02c61965f5919877 09dc216e66535c8d68f22311a9f0249656b0b222 8e2d5f04ba9ceb7e29d7a978f557d7de40d236b4 54d24d67c5a40f6b443cc46a8480aa3422e03008