| Summary: | For large WebGL contexts, WebGL is spending a lot of time in allocating new Metal textures for default frame buffer backing store | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kimmo Kinnunen <kkinnunen> |
| Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | dino, kbr, kkinnunen, kpiddington, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 227582 | ||
| Bug Blocks: | |||
|
Description
Kimmo Kinnunen
2021-07-01 08:14:59 PDT
Reproducible at least on MacBookPro19,1 Intel/AMD. Metal selects Intel always. Sample Count, Samples %, Normalized CPU %, Symbol 1367, 8.7%, 1.8%, WebCore::Document::prepareCanvasesForDisplayIfNeeded() (in WebCore) 1234, 7.8%, 1.6%, WebCore::GraphicsContextGLOpenGL::prepareForDisplay() (in WebCore) 1100, 7.0%, 1.4%, WebCore::GraphicsContextGLOpenGL::allocateAndBindDisplayBufferBacking() (in WebCore) 1100, 7.0%, 1.4%, EGL_BindTexImage (in libANGLE-shared.dylib) 1100, 7.0%, 1.4%, egl::Surface::bindTexImage(gl::Context*, gl::Texture*, int) (in libANGLE-shared.dylib) 1063, 6.7%, 1.4%, rx::IOSurfaceSurfaceMtl::bindTexImage(gl::Context const*, gl::Texture*, int) (in libANGLE-shared.dylib) 1054, 6.7%, 1.4%, rx::IOSurfaceSurfaceMtl::ensureColorTextureCreated(gl::Context const*) (in libANGLE-shared.dylib) 1004, 6.4%, 1.3%, -[MTL..AccelDevice newTextureWithDescriptor:iosurface:plane:] (in ....) |