-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 of Chinese characters is very slow #962
Comments
Did you try release mode? How's the CPU or GPU usage looking when you are running the app? |
Do you insert the TTF once or every frame? (I've seen people do the latter before) |
|
I tried it locally and had no problems with performance. Make sure you compile with |
Is this really an issue? If you take https://github.com/emilk/egui/blob/master/examples/custom_font/src/main.rs and modify it with your own font, does it lag? On native, web, or both? Are you using |
mine works fine. maybe he didn't context.request_repaint? |
Can this be closed? |
Describe the bug
To be able to display Chinese in the UI, I added a Chinese TTF file to the fonts.rs file using the font_data.insert() method. This file contains thousands of Chinese characters and some nerd characters. I then recompiled egui_demo_app in debug mode, ran it again, and found that it was very slow to open. After opening it, I tried to enter Chinese characters in an input box and the Chinese characters displayed normally, but they also appear to be slow and sluggish.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: