[gpu-canvas] Performance regression on a Codepen demo (https://codepen.io/KilledByAPixel/pen/WNQoMYg ) with gpu-canvas
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox122 | --- | unaffected |
firefox123 | --- | wontfix |
firefox124 | --- | verified |
People
(Reporter: mayankleoboy1, Assigned: lsalzman)
References
(Regression, )
Details
(Keywords: regression)
Attachments
(2 files)
Use latest nightly on Windows.
Set the following prefs
gfx.direct2d.disabled = true
gfx.canvas.accelerated = true
gfx.canvas.remote.worker-threads = 0
Go to https://codepen.io/KilledByAPixel/pen/WNQoMYg
AR: The browser freezes and the demo is very slow to run.
Regression range:
Bug 1829026 - Handle KERN_ABORTED from semaphore_wait. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D195952
Note that the performance regressed for both GPU-canvas and d2d-canvas, but gpu-canvas has a much worse regression. With skia-canvas, it runs absolutely fine. I have not filed any bug for d2d-canvas. Let me know if needed.
Reporter | ||
Comment 1•1 year ago
|
||
GPu-canvas: https://share.firefox.dev/49cxanz (very bad)
skia-canvas: https://share.firefox.dev/49pAbkg (very good)
d2d-canvas: https://share.firefox.dev/4bBO2Wd (bad)
Reporter | ||
Comment 2•1 year ago
|
||
Reporter | ||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1829026
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
ExtractSubrect calls were not getting forwarded on SourceSurfaceRecording, causing us to do unnecessary readbacks
when hitting the CopySurface fallback path. SourceSurfaceWebgl actually implements ExtractSubrect already, but it
was never being used since the switch over to the DrawTargetRecording infrastructure.
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 6•1 year ago
|
||
bugherder |
Reporter | ||
Comment 7•1 year ago
|
||
Profile from latest Nightly: https://share.firefox.dev/3uxavDo
Subjectively it doesnt feel much better.
Updated•1 year ago
|
Comment 8•1 year ago
•
|
||
Reproduced the issue with Firefox 124.0a1 (2024-02-13) on Windows 10x64. The animation is laggy and the browser freezes.
I can no longer reproduce the freeze with Firefox 124.0b2 on Windows 10x64, macOS 13 and Ubuntu 23.1 However, the animation is not as smooth as before bug 1829026 with the same steps.
Also, it looks like the browser shows a slight delay when playing the animation on Ubuntu 23.1 and macOS 13 ARM. Should we open another issue for the remaining problem?
Assignee | ||
Comment 9•11 months ago
|
||
For now I worked on the actionable things in this bug, and there are probably enough existing perf bugs to cover the remaining.
Comment 10•11 months ago
|
||
Reporter | ||
Comment 11•7 months ago
|
||
This has improved : https://share.firefox.dev/462PSgB
blaming bug 1907755
Description
•