[web] lookup of gl parameters slows down surface creation #117934
Labels
c: performance
Relates to speed or footprint issues (see "perf:" labels)
dependency: skia
Skia team may need to help us
e: web_canvaskit
CanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Web
engine
flutter/engine repository. See also e: labels.
P2
Important issues not at the top of the work list
platform-web
Web applications specifically
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
The text was updated successfully, but these errors were encountered: