You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cookie clicker spends a lot of time loading fonts #30656
A bunch of time is being spent in canvas::canvas_data::load_default_system_fallback_font
which is spending time in FcInitLoadConfigAndFonts. That doesn't seem like a function we want to be calling ever fillText call.
Oh dear, this confirms a suspicion of mine about the 2D canvas text rendering system as implemented on Servo being particularly inefficient; Looking deeper here though, I'm surprised that the only bottleneck here is the lack of caching on one method rather than the result of combined inefficiency, meaning that laggy text writing could be relatively easy to fix (and doesn't require any rewrites!).
Activity
EnnuiL commentedon Oct 30, 2023
Oh dear, this confirms a suspicion of mine about the 2D canvas text rendering system as implemented on Servo being particularly inefficient; Looking deeper here though, I'm surprised that the only bottleneck here is the lack of caching on one method rather than the result of combined inefficiency, meaning that laggy text writing could be relatively easy to fix (and doesn't require any rewrites!).