Skip to content

[web] lookup of gl parameters slows down surface creation #117934

Closed
flutter/engine
#38829
@jonahwilliams

Description

@jonahwilliams

For a given Gl/Gr context these parameters should be the same, yet we're spending ~10ms a frame when resizing the window looking these up. Either have Skia cache them or cache them ourselves.

Code is: https://github.com/google/skia/blob/b7d7e7c71b6b4935f32846587a50bc4069f562a6/modules/canvaskit/canvaskit_bindings.cpp#L204-L207

image (9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)dependency: skiaSkia team may need to help use: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine repository. See also e: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions