| Summary: | Slow performance of GPUP WebGL for rendering-heavy applications (like machine learning inference) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | tmullen.webkit |
| Component: | WebGL | Assignee: | Kimmo Kinnunen <kkinnunen> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | dino, kbr, kkinnunen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=250899 https://bugs.webkit.org/show_bug.cgi?id=257644 https://bugs.webkit.org/show_bug.cgi?id=235002 https://bugs.webkit.org/show_bug.cgi?id=257958 |
||
| Bug Depends on: | 257259, 257314, 257319, 257452, 257595, 257602 | ||
| Bug Blocks: | |||
|
Description
tmullen.webkit
2023-02-23 17:31:13 PST
Tested on the public iOS Beta 16.4, and the issue does not appear to be fixed there. Furthermore, it seems that the experimental toggle to disable the WebGL GPUP feature may be no longer available as well, which would prevent even user action from working around the problem. Thank you for the report. Yes, readPixels is slower on GPU process. I'll see about some approaches improve it. The read pixels performance is improved in the depending bugs. These should be available in iOS 17 betas, macOS 14 betas. Based on quick testing, the test case FPS number seem to improve ~50%, IIRC. Bug 235002 tracks the slowness of the read pixels of the ANGLE/Metal backend. This is directly related to this task, but likely not addressed in near future. Bug 257958 tracks the slowness of texture uploads, which might be relevant for some apps that touch the rendering with CPU. However, this is not directly relevant to this task. Closing this bug to make progress. Please re-open or open new bug report if there's new observations on the lack of performance. |