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

Window run_loop bottlenecked on GlyphCache::get_renderer2d_actions #93

Open
superlou opened this issue Aug 7, 2023 · 0 comments
Open

Comments

@superlou
Copy link

superlou commented Aug 7, 2023

In my application, I'm drawing a lot of text. I cache the FormattedTextBlock (https://github.com/superlou/signrs/blob/b453aae0f8cfc38e800f59db5f5be09248ebe836/src/js_env/graphics.rs#L116-L140) so that they aren't recreated every frame. However, when profiling the application, I'm spending the bulk of the speedy2d time in GlyphCache::get_renderer2d_actions.

flamegraph
Flamegraph SVG file

Is there possibly somewhere I can start looking in there to improve the performance of GlpyhCache, or is that already heavily optimized?

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