-
Notifications
You must be signed in to change notification settings - Fork 317
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 text rendering #5669
Comments
Of the |
|
Keziah Wesley reports a new STANDUP for yesterday (2023-02-16): Progress: Profiled text rendering; unfortunately, not much room for improvement. Investigated dropdown creation, and identified a possible optimization. It should be finished by 2023-02-16. Next Day: Next day I will be working on the #5671 task. Optimize dropdown creation. |
Thanks for such a clear breakdown of what happens there!
This is surprising. We are using MSDF only to generate new glyphs, so if a glyph was already created, we should not even call these functions. Taking into consideration we are not using many glyphs, this should not be called often. Regarding |
@kazcw I'm reopening it as I don't think we solved it - or did you close it on purpose? |
MSDF CallsCost: 0.5s loading Orders, scales sublinearly with number of glyphs The cache is working. We're loading 73 glyphs to draw Orders, never the same TTF FRP Setup in
|
@kazcw we can easily eliminate FRP from Glyphs. There are several things to be done here:
This way you can remove FRP completely from Glyphs. Let's do it. Also, if you could try fixing the |
Closing this because I've finished the investigation, and each optimization has its own issue. |
The IDE is spending more than a quarter of its CPU time in the
redraw_line
function. Any efficiency improvement in this function could have a large impact on frontend performance.The text was updated successfully, but these errors were encountered: