Skip to content

Cookie clicker spends a lot of time loading fonts #30656

Closed

Description

@jrmuizel

https://share.firefox.dev/3QE5voM

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.

@EnnuiL

Activity

  1. EnnuiL commented on Oct 30, 2023

    @EnnuiL
    Contributor

    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!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions