Very high CPU usage and jank, after moving mouse cursor over YouTube video player or thumbnails
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(platform-rel +, firefox84 affected, firefox102 affected)
People
(Reporter: timbugzilla, Assigned: denschub)
References
()
Details
(5 keywords, Whiteboard: [platform-rel-Youtube] [workaround is in comment #17][webcompat:sightline])
Attachments
(8 files)
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Updated•8 years ago
|
Comment 4•8 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 11•8 years ago
|
||
Updated•8 years ago
|
Comment 12•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Comment 17•8 years ago
|
||
workaround |
Comment 18•8 years ago
|
||
Reporter | ||
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 22•8 years ago
|
||
Reporter | ||
Comment 23•8 years ago
|
||
Reporter | ||
Comment 24•8 years ago
|
||
Reporter | ||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 27•8 years ago
|
||
Comment 28•8 years ago
|
||
Reporter | ||
Comment 29•8 years ago
|
||
Comment 30•8 years ago
|
||
Reporter | ||
Comment 31•8 years ago
|
||
Comment 32•8 years ago
|
||
Updated•8 years ago
|
Comment 33•8 years ago
|
||
Reporter | ||
Comment 34•8 years ago
|
||
Comment 35•8 years ago
|
||
Comment 36•8 years ago
|
||
Comment 37•8 years ago
|
||
Reporter | ||
Comment 38•8 years ago
|
||
Comment 39•8 years ago
|
||
Comment 40•8 years ago
|
||
Updated•8 years ago
|
Comment 42•8 years ago
|
||
Comment 43•8 years ago
|
||
Comment 44•8 years ago
|
||
Comment 45•8 years ago
|
||
Comment 46•8 years ago
|
||
Comment 47•8 years ago
|
||
Comment 48•8 years ago
|
||
Comment 49•8 years ago
|
||
Comment 50•8 years ago
|
||
Comment 51•8 years ago
|
||
Comment 52•8 years ago
|
||
Updated•8 years ago
|
Comment 55•7 years ago
|
||
Comment 57•7 years ago
|
||
Comment 58•7 years ago
|
||
Comment 59•7 years ago
|
||
Comment 60•7 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 61•5 years ago
|
||
This still seems to happen with Firefox beta (76.0b8 64-bit). I've attached my about:support output.
Reporter | ||
Comment 62•5 years ago
|
||
Comment 63•5 years ago
|
||
A new performance profile might be useful. Could you perhaps try to create such?
Comment 64•4 years ago
|
||
I was still able to reproduce the issue.
https://prnt.sc/v5d9ri
I've also recorded a performance profile.
Tested with:
Browser / Version: Firefox Nightly 84.0a1 (2020-10-21)
Operating System: Windows 10 Pro
Updated•4 years ago
|
Comment 65•4 years ago
|
||
The profile continues to be dominated by JavaScript code on YouTube that monitors mouse events.
Updated•4 years ago
|
Comment 66•3 years ago
|
||
Moving open bugs with topperf keyword to triage queue so they can be reassessed for performance priority.
Updated•3 years ago
|
Comment 67•3 years ago
|
||
This issue still occurs.
Tested with:
Browser / Version: Firefox Nightly 102.0a1 (2022-05-16)
Operating System: Windows 10 Pro
Comment 68•3 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:denschub, since the bug has high severity and recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•3 years ago
|
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Reporter | ||
Comment 71•2 years ago
|
||
It still does this. Quickly rotating the cursor (by using mouse) on this video spikes CPU use up to 40% from about 20%.
https://www.youtube.com/watch?v=Wof_FWYcDWA
This with an AMD 5400U laptop.
Comment 72•2 years ago
|
||
Would you have a new performance profile for this?
Reporter | ||
Comment 73•2 years ago
|
||
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #72)
Would you have a new performance profile for this?
Using current beta, have AV1 codec turned off on youtube (prefer AV1 for SD, under youtube playback settings), new blank profile with no extensions.
Not moving mouse:
https://share.firefox.dev/3SAku1T
Rapidly moving mouse over video:
https://share.firefox.dev/3vKXd3h
Big difference seems to be in nsThread::ProcessNextEvent
Comment 74•2 years ago
|
||
When not moving mouse browser can just play the video, so not too much needs to happen in the child process.
With mouse moving there are some rAF callbacks and what not and looks like intersection observers are used too etc.
But when comparing to Chrome for example on linux, AMD 5850u, I see higher cpu usage with Chrome than what I see with Nightly when moving mouse.
Comment 75•2 years ago
|
||
On a Windows 11 laptop (AMD 5800u) I see very similar behavior when comparing Edge to Nightly.
Edge uses more cpu time when moving mouse over the video.
Are you seeing very different behavior?
Reporter | ||
Comment 76•2 years ago
|
||
(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #75)
On a Windows 11 laptop (AMD 5800u) I see very similar behavior when comparing Edge to Nightly.
Edge uses more cpu time when moving mouse over the video.
Are you seeing very different behavior?
Just checked, and it seems that Edge has about the same or slightly higher CPU time compared to FF beta. Chrome maybe slightly less than FF beta.
Thanks for looking into it. Is there anything that can be learned from this about reducing browser power consumption on pages with embedded video?
Comment 77•2 years ago
|
||
What can be learnt is that many web sites use lots of JS to do something. They could be optimized.
It might be worth to file a bug on Youtube. (But I don't know how to do that).
If you file such issue, could you link that here?
I guess we can close this bug. Resolved...not FIXED, not WFM, perhaps MOVED, since this is a youtube issue.
Updated•2 months ago
|
Description
•