On the few occasions I visit I noticed excessive CPU usage with their crappy "ambient" mode.
Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
101–110 of 133 posts
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#102Earlier quoted context omitted.
Run the profiler in the browser’s developer tools and you get a flame graph.
I think the issue is/was that the profiler in chrome never ends. I'll just leave it like this (480s of samples..?): https://imgur.com/a/IgaHOdX and come back in a few hours.
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#103Earlier quoted context omitted.
Hanlon's Razor: https://en.m.wikipedia.org/wiki/Hanlon%27s_razor
>Hanlon's Razor Sorry, but drive-by philosophy is not applicable here. YouTube developers single out adblocker users and taunt them with an "Experiencing interruptions" toast prompt that locks the video stream for ~5 seconds. Curiously, it contains a link to the YouTube Help Center, to the section fragment "#check_ad_blockers". In other words: "yeah, we know you've got uBlock Origin enabled, enjoy the speedbump". Pla…
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#104Youtube has been turning on AV1 for 1080p content for me. My phone is the only device with an AV1 hardware decoder. The impact on battery life and CPU usage has been extreme. You can tell Youtube to prefer AV1 only for low-quality videos ( https://www.youtube.com/account_playback ) or you can install an extension that will force h264 playback where supported. Other playback features such as ambient mode and volume eq…
> You can tell Youtube to prefer AV1 only for low-quality videos ( https://www.youtube.com/account_playback ) What option are you referring to here? I don’t see anything that seems related to that.
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#105Youtube has been turning on AV1 for 1080p content for me. My phone is the only device with an AV1 hardware decoder. The impact on battery life and CPU usage has been extreme. You can tell Youtube to prefer AV1 only for low-quality videos ( https://www.youtube.com/account_playback ) or you can install an extension that will force h264 playback where supported. Other playback features such as ambient mode and volume eq…
> You can tell Youtube to prefer AV1 only for low-quality videos ( https://www.youtube.com/account_playback ) What option are you referring to here? I don’t see anything that seems related to that.
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#106Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#107Youtube has been turning on AV1 for 1080p content for me. My phone is the only device with an AV1 hardware decoder. The impact on battery life and CPU usage has been extreme. You can tell Youtube to prefer AV1 only for low-quality videos ( https://www.youtube.com/account_playback ) or you can install an extension that will force h264 playback where supported. Other playback features such as ambient mode and volume eq…
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#108If 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.
That's intentional on YouTubes end, they aim to serve more bitrate-efficient codecs wherever possible, even if it's a high burden on the client due to a lack of hardware acceleration. They'll only fall back to older codecs if the client is completely incapable of handling the modern ones. It's annoying but at their scale it no doubt saves them a shitload of bandwidth.
Not saying that is the cause of this slow down, but since the mpeg4 patents don't expire till 2027(?) (and one of those patents prevents hardware decode on Linux) we as a society have given Google every incentive to do this and I welcome them to make mpeg4 irrelevant.
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#109Edge has been freezing on me for months with over 100% CPU usage. I finally figured out it was a youtube downloader extension. I disabled it and the problem went away.
Might be YT, all along.
Re: Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering?
#110Have 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.