Closed Bug 1958641 Opened 1 year ago Closed 11 months ago

When I'm signed in to YouTube my CPU usage doubles, when signed out of YouTube the CPU usage is normalised.

Categories

(Core :: Graphics: WebRender, defect)

Firefox 137
Unspecified
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: treysantana, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0

Steps to reproduce:

Watched a YouTube video signed in, CPU spikes around 80-110%.

Watched a YouTube video signed out, CPU levels halved or at least much lower than when being signed in.

Actual results:

There's an initial spike when being signed out, but then they shortly level out.

Expected results:

Same CPU usage as being signed out.

Here's my profiler recording: https://share.firefox.dev/3R4DZA3

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

In the second part of the profile, memory usage is a few times larger and about 70% of CPU is spent on Renderer thread graphics operations.

Can you check youtube's "stats for nerds" please to see whether Codecs and Current Res are the same or differ according to whether signed in or out?

Component: Audio/Video: Playback → Graphics: WebRender
Attached image YouTube Signed-In.png

This is YouTube Signed-In

Attached image YouTube Signed-Out.png

This is YouTube Signed-Out.

(In reply to Karl Tomlinson (:karlt) from comment #3)

In the second part of the profile, memory usage is a few times larger and about 70% of CPU is spent on Renderer thread graphics operations.

Can you check youtube's "stats for nerds" please to see whether Codecs and Current Res are the same or differ according to whether signed in or out?

I've uploaded two attachments, specified.

Is the difference because youtube ambient mode is enabled when you are signed in maybe? You can toggle it under the settings gear icon for the video.

Flags: needinfo?(treysantana)

(In reply to Timothy Nikkel (:tnikkel) from comment #7)

Is the difference because youtube ambient mode is enabled when you are signed in maybe? You can toggle it under the settings gear icon for the video.

Ambient mode is off in both instances. It's so strange... before starting to dig into all this, I was watching videos at 720p w/ the "h264ify" extension to combat temps. During my tests, I tried troubleshooting mode - signed-in and out, same results. Private browsing - signed-in and out, same results. All extensions on and off, in normal browsing mode, same results. In all instances, the CPU usage and temps dropped significantly when sign-out of YouTube.

Flags: needinfo?(treysantana)

The severity field is not set for this bug.
:gw, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(gwatson)
OS: Unspecified → macOS

Marking as S2 for now, until we understand better if this is widespread.

Blocks: gfx-triage
Severity: -- → S2
Flags: needinfo?(gwatson)

Flagging as stalled until we have the available cycles to work the issue more thoroughly. Please remove the keyword when the report is being actively addressed.

Keywords: stalled
See Also: → 1960242

The profile shows that you are running with software webrender (GPU acceleration is disabled), which will probably explain the high CPU usage. Could you supply the output of your about:support page? If we can solve why acceleration is disabled that may solve the problem.

(In reply to Glenn Watson [:gw] from comment #12)

The profile shows that you are running with software webrender (GPU acceleration is disabled), which will probably explain the high CPU usage. Could you supply the output of your about:support page? If we can solve why acceleration is disabled that may solve the problem.

So I tried "Use hardware acceleration when available" first... still reading high CPU usage. However, when I also set "gfx.webrender.all" to true in the about:config section in conjunction with the basic hardware acceleration option mention before, the CPU usage dropped to around 20%. Still higher temps, but this is far more manageable IMO.

It's just so strange that I can have all those things set on their previous parameters, sign-out, and the CPU usage drops all the same as this recent fix.

I had kind of given up using YouTube with Firefox in the meantime, and just defaulted to Safari because it would help my temps around where I prefer them.

Either way, this works enough for me, thank you so much.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Resolution: --- → WORKSFORME

Since the bug is closed, the stalled keyword is now meaningless.
For more information, please visit BugBot documentation.

Keywords: stalled
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: