Poor performance on 360 video which uses WebGL
Categories
(Core :: Graphics: CanvasWebGL, defect, P1)
Tracking
()
People
(Reporter: aymedeyacoan, Assigned: jgilbert)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
We're seeing poor performance on Vimeo while viewing very high quality 360 video.
It looks like Vimeo do 360 by decoding a large video, and using webgl to transform it to a 2D viewport.
I'm getting this error on my MacBook Pro 2020
STR:
- Load 360 video on Vimeo, i.e.: https://vimeo.com/channels/360vr/355120249
- Select 4K from the cog menu
- You can see the lower framerate of the video in comparison with chrome.
Actual results:
Video has low framerate in comparison to chrome
Expected results:
The video should have a good framerate
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Canvas: WebGL' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:jgilbert, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 3•2 years ago
|
||
I will check.
Comment 4•2 years ago
|
||
The severity field is not set for this bug.
:jgilbert, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 5•2 years ago
|
||
I can reproduce this in a fresh install of Firefox 103.0b3 on X11 (Arch Linux). Issue is reproducible with with both media.ffmpeg.vaapi.enabled set and unset. Anecdotally, I've noticed this being the case on my personal install for a few years.
I can't find any hardware bottleneck, either. Most used CPU core is sitting at 10% and 3d/codec usage is below 15%..
I'm not sure if YouTube's underlying 360 video playback mechanism is similar to Vimeo's, but this URL appears to offer an exacerbated case of the above issue when the quality is set to 4320s (8K). 1-2FPS on my machine, <30% CPU/GPU/highest-core usage, regardless of VAAPI usage.
Assignee | ||
Comment 6•2 years ago
•
|
||
With webgl.perf.max-warnings: -1: (on mac)
WebGL perf warning: WebGL warning: tex(Sub)Image[23]D: Missed GPU-copy fast-path:
format
is not RGBA
WebGL perf warning: WebGL warning: texImage: Conversion requires pixel reformatting. (26->15)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Windows:
WebGL perf warning: WebGL warning: tex(Sub)Image[23]D: Missed GPU-copy fast-path:
format
is not RGBA
WebGL perf warning: WebGL warning: texImage: Conversion requires pixel reformatting. (27->15)
Assignee | ||
Comment 8•2 years ago
|
||
Windows, but more helpful:
WebGL perf warning: WebGL warning: tex(Sub)Image[23]D: Missed GPU-copy fast-path:
format
is not RGBA
WebGL perf warning: WebGL warning: texImage: Conversion requires pixel reformatting. (BGRA8->RGB8)
WebGL perf warning: WebGL warning: <Present>: [webgl.perf.spew-frame-allocs] 1 data allocations this frame.
Assignee | ||
Comment 9•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 10•2 years ago
|
||
I'm having second thoughts about opening up formats this widely. Maybe I should merely add RGB8 for now? That would be safer. I'm worried about requests for e.g. LUMINANCE or RG. I could add tests, but drivers gonna be drivers, and these other formats seem pretty unlikely to be needed.
I should also definitely check to see if I can simply render to RGB8, because that's what people expect.
It would be good to have telemetry on RGB8 renderability.
Comment 11•2 years ago
|
||
Comment 12•2 years ago
|
||
Backed out for causing gl failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/7a732fe218b0211adb611ad9617f54dadb5baf78
Failure log: https://treeherder.mozilla.org/logviewer?job_id=392250536&repo=autoland&lineNumber=3154
Comment 13•2 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jgilbert, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Comment 14•2 years ago
|
||
I visite a website and the translation was just ok from the browser
PS. It was a home care services niche website
peaceinhomehealthcare.com
Comment 15•2 years ago
|
||
I visite a website and the translation was just ok from the browser
PS. It was a home care services niche website
www.peaceinhomehealthcare.com
Comment 17•1 year ago
|
||
May https://phabricator.services.mozilla.com/D167159 be used as minimal patch here?
Assignee | ||
Comment 18•7 months ago
|
||
I believe this was fixed by bug 1655101.
Description
•