Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?

114 points by NooneAtAll3 ↗ HN
Pretty much becomes unusable

36 comments

[ 2.6 ms ] story [ 53.6 ms ] thread
I have noticed Google sites showing what looks like some form of memory leak. Typically it's only Microsoft websites doing this.
This started happening on one of my older computers recently and I had to actually disable hardware acceleration to get the audio to stop being out of sync. The tradeoff for that has been noticeable frame dropping. I even added an extension to force h264 but there's no difference.

It can play video no problem on other sites or in VLC. It's just YouTube and just on that PC...That PC can run Doom Eternal. Video content shouldn't be a problem.

If you have an adblocker it might be intentional.
When I open the "My Videos" tab, then I get this problem, otherwise it works.
Sorry to hijack, but...

I have weird issues with YouTube on my home PC. If I have a Chrome window with a YouTube video running to the side of my monitor, it always inevitably ends up freezing up the whole display. Ctrl+Alt+Delete and cancelling back in makes it go away briefly, however sometimes it can just keep freezing the monitor up constantly.

The weird thing is, the PC (running Windows 11) has a powerful graphics card which can handle AAA games (as of earlier this year at least), graphics drivers are all up to date, and YouTube works fine in fullscreen across the whole ultra-wide monitor.

I just can't work out what's causing it. It makes running YouTube side-by-side with other programs a real pain in the ass. It's been like this for months now. Checked browser HWA settings, and they're all as they should be.

Thought it was just me! This started happening just today.
I have not and don’t run an adblocker fwiw.
On the few occasions I visit I noticed excessive CPU usage with their crappy "ambient" mode.
(comment deleted)
If the video is encoded using a codec your hardware doesn't handle, it would be left up to the CPU to decode. Av1 can slow everything down to a crawl over CPU. You'd think the browser would be smart about the stream selection though.
If you have an adblocker and it happens at the start of a video then this is intentional
I keep getting the video restarting after a few seconds randomly, very annoying even more so when it's the ad that restarts from the beginning, which almost seems intentional. Like a bug that nobody is in a hurry to fix.
I've had something similar happen starting maybe a year ago, and varying in intensity from "no problem" up to "pegged CPU in the youtube tab and UI actions can lag up to several seconds". It doesn't affect video playback though.

This behavior comes and goes over time, for example it's been fine for several weeks in a row now. I assume it's punishment for running an ad-blocker.

Disabling “Ambient Mode” in the settings helps cpu usage a lot on my intel MBA.
YouTube is pretty shocking in Firefox, even worse with an ad blocker.
Have only noticed this on my Windows machine, not any of my Macs. The windows machine has enough horsepower to use most of it's 2000w power supply, so I don't think it's a hardware issue. Using firefox engine & an adblocker fwiw.
Also happens with Github and anything that uses ads lately. A 2 core PC dies while trying to render those pages.
Disable ambient mode.

It can use a ridiculous amount of CPU.

It seems hardware accelerated only on windows chrome.

I pretty much only watch YouTube via the app on my phone, rarely in a browser. I also pay for Premium. Have not noticed any recent/new issues.
I have like 4 simple tabs and my Chrome is hogging 1.8GBs of RAM.
Somewhat relevant: can somebody share good mpv defaults (or some other interesting technique) for playing YT videos? I have managed to get it to work, but it still pauses a lot for bufferring. I wonder if there's maybe some yt-dlp, ffmpeg, etc. trick to pre-cache some segments or something like that. The reason to play it in mpv is not to avoid commercials (I have a paid account), but because I can then play it from my editor while fully controlling the playback - it works great for watching lectures and taking notes.
It's probably the special Google hardware obsoleting sauce called AV1. Without hardware acceleration your computer will struggle to decode their videos.
Also: Recently my videos "goes full black" for few milliseconds (not matter which way to see them, but yt is where I noted it more). I'm on M3, and can't pin point a reason.