frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Dev Culture Is Dying the Curious Developer Is Gone

https://dayvster.com/blog/dev-culture-is-dying-the-curious-developer-is-gone/
84•ibobev•34m ago•41 comments

I regret building this $3000 Pi AI cluster

https://www.jeffgeerling.com/blog/2025/i-regret-building-3000-pi-ai-cluster
185•speckx•2h ago•163 comments

Ants Seem to Defy Biology: They Lay Eggs That Hatch into Another Species

https://www.smithsonianmag.com/smart-news/these-ant-queens-seem-to-defy-biology-they-lay-eggs-tha...
75•sampo•4h ago•17 comments

Internet Archive's big battle with music publishers ends in settlement

https://arstechnica.com/tech-policy/2025/09/internet-archives-big-battle-with-music-publishers-en...
104•coloneltcb•3d ago•48 comments

Ruby Central's Attack on RubyGems [pdf]

https://pup-e.com/goodbye-rubygems.pdf
364•jolux•8h ago•99 comments

Want to piss off your IT department? Are the links not malicious looking enough?

https://phishyurl.com/
915•jordigh•17h ago•269 comments

Show the Physics

https://interactivetextbooks.tudelft.nl/showthephysics/Introduction/About.html
47•pillars•2d ago•3 comments

Statistical Physics with R: Ising Model with Monte Carlo

https://github.com/msuzen/isingLenzMC
80•northlondoner•7h ago•49 comments

Help Us Raise $200k to Free JavaScript from Oracle

https://deno.com/blog/javascript-tm-gofundme
392•kaladin-jasnah•14h ago•179 comments

Shipping 100 hardware units in under eight weeks

https://farhanhossain.substack.com/p/how-we-shipped-100-hardware-units
27•M_farhan_h•20h ago•19 comments

Rules for creating good-looking user interfaces, from a developer

https://weberdominik.com/blog/rules-user-interfaces/
280•domysee•3d ago•149 comments

Intel Arc Celestial dGPU seems to be first casualty of Nvidia partnership

https://www.notebookcheck.net/Intel-Arc-Celestial-dGPU-seems-to-be-first-casualty-of-Nvidia-partn...
73•LorenDB•2h ago•56 comments

Trevor Milton's Nikola Case Dropped by SEC Following Trump Pardon

https://eletric-vehicles.com/nikola/trevor-miltons-nikola-case-dropped-by-sec-following-trump-par...
74•xnx•1h ago•36 comments

Leatherman (vagabond)

https://en.wikipedia.org/wiki/Leatherman_(vagabond)
213•redbell•4d ago•99 comments

Dynamo AI (YC W22) Is Hiring a Senior Kubernetes Engineer

https://www.ycombinator.com/companies/dynamo-ai/jobs/fU1oC9q-senior-kubernetes-engineer
1•DynamoFL•4h ago

The Ruliology of Lambdas

https://writings.stephenwolfram.com/2025/09/the-ruliology-of-lambdas/
82•marvinborner•3d ago•24 comments

The Sagrada Família takes its final shape

https://www.newyorker.com/magazine/2025/09/22/is-the-sagrada-familia-a-masterpiece-or-kitsch
334•pseudolus•3d ago•177 comments

U.S. already has the critical minerals it needs, according to new analysis

https://www.minesnewsroom.com/news/us-already-has-critical-minerals-it-needs-theyre-being-thrown-...
228•giuliomagnifico•20h ago•298 comments

Linux for Nintendo 64 (1997)

https://web.archive.org/web/19990220141243/http://www.heise.de/ix/artikel/E/1997/04/036/
27•flykespice•3d ago•10 comments

Apple: SSH and FileVault

https://keith.github.io/xcode-man-pages/apple_ssh_and_filevault.7.html
465•ingve•20h ago•158 comments

David Lynch LA House

https://www.wallpaper.com/design-interiors/david-lynch-house-los-angeles-for-sale
226•ewf•16h ago•99 comments

Gemini in Chrome

https://gemini.google/overview/gemini-in-chrome/
251•angst•14h ago•207 comments

This map is not upside down

https://www.maps.com/this-map-is-not-upside-down/
327•aagha•22h ago•464 comments

The sordid reality of retirement villages: Residents are being milked for profit

https://unherd.com/2025/09/the-sordid-truth-about-retriement-villages/
86•johngabbar•3h ago•82 comments

Court lets NSF keep swinging axe at $1B in research grants

https://www.theregister.com/2025/09/19/court_lets_nsf_keep_swinging/
39•rntn•2h ago•25 comments

Grief gets an expiration date, just like us

https://bessstillman.substack.com/p/oh-fuck-youre-still-sad
427•LaurenSerino•1d ago•199 comments

AI tools are making the world look weird

https://strat7.com/blogs/weird-in-weird-out/
185•gaaz•18h ago•165 comments

Tracking trust with Rust in the kernel

https://lwn.net/Articles/1034603/
141•pykello•4d ago•43 comments

JIT-ing a stack machine (with SLJIT)

https://bullno1.com/blog/jiting-a-stack-machine
28•bullno1•3d ago•5 comments

Slack has raised our charges by $195k per year

https://skyfall.dev/posts/slack
3151•JustSkyfall•1d ago•1367 comments
Open in hackernews

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

88•NooneAtAll3•3h ago
Pretty much becomes unusable

Comments

bArray•2h ago
I have noticed Google sites showing what looks like some form of memory leak. Typically it's only Microsoft websites doing this.
burgerrito•2h ago
This memory leak happens very often to me in GitHub, not sure why, and not sure if it's Microsoft's fault, or Firefox's. I actually have no idea at all on how to debug this...
snickerdoodle14•2h ago
Firefox Console > Memory > Enable record call stacks, reload the page, take a snapshot, wait until you notice memory grows, take another snapshot. Then compare the two: https://firefox-source-docs.mozilla.org/devtools-user/memory.... You can also try a performance recording.

But you probably won't be able to make much sense of the results without a lot of effort because of all the minimization/obfuscation.

busterarm•2h ago
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.

BolexNOLA•2h ago
Given their actions the last two years or so unfortunately the default assumption is (reasonably) “probably something intentional to get people to stop doing something they don’t want, like using ad blockers.”
imcritic•2h ago
Sometimes it's just browser<>GPU driver issues.
busterarm•2h ago
Except it's still a problem with hardware acceleration disabled.
BolexNOLA•1h ago
Very well could be. But with companies like Google I immediately start from a place of light-cynicism until I see evidence to the contrary at this point. I haven't given them the benefit of the doubt in probably a decade, and generally it's a fair way to go about things.
jeroenhd•56m ago
Many youtube videos consist of silent video streams combined with separate audio streams. Youtube-dl can list them. Often, the lower-quality and some medium-quality video stream will also contain audio, but the higher-quality videos are often silent with a second audio stream mixed in.

I can imagine that your older computer might have native support for decoding the high-res h264 video, but not for the high-quality OPUS audio stream, causing them to decode at different speeds.

I don't think there's a solution to that problem that doesn't involve running a dedicated video player such as VLC.

That said, I've also heard a lot of complaints from people still using Adblock Plus. I don't know what rules ABP has implemented, but they seem to affect Youtube performance much worse than uBlock whenever Youtube changes something.

RisingFusion•2h ago
If you have an adblocker it might be intentional.
mwkaufma•2h ago
Hanlon's Razor: https://en.m.wikipedia.org/wiki/Hanlon%27s_razor
ses1984•2h ago
I’m sorry but big tech doesn’t get the benefit of the doubt.
mwkaufma•2h ago
The benefit of the doubt... that corps _don't_ write clunky, slow software?
jamesnorden•1h ago
When the supposed to bug happens to conveniently cause issues for adblocker users, yeah.
mwkaufma•1h ago
Possible, but still just an assumption.
jitix•2h ago
Google does - Google search and maps have gotten objectively worse over the past 2 years. At least in Canada.

I have 38 locations in my (huge) city saved in Google maps and it breaks when I ask it to find a way from point A to point B. Works fine when logged out.

Maps also put traffic signals where there are none, and while finding shortest path it stopped putting weights to traffic signals. So you could have it route you via a city's main street instead of the freeway because it's 2km shorter but it ignores the 9 traffic signals that wastes 15 mins. Apple maps works fine.

Google search on web has adopted bad UX, and clicking a map or a shopping item has a noticeable delay between. Also right click "Open in new tab" options are gone.

Are you saying all these "enshittification" changes are deliberate?

izzydata•2h ago
Programmers are usually pretty smart though.
mwkaufma•2h ago
Their middle mgmt though?
lioeters•45m ago
Malicious and incompetent.
slacktivism123•2h ago
>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".

Player base.js:

    api.XL("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers
User reports: https://old.reddit.com/r/youtube/comments/1la6tkm/anybody_no...
josefritzishere•1h ago
I have noticed this but have been unable to explain it until now.
y-c-o-m-b•10m ago
So that's what it is! I've never seen the toast message, but I had a suspicion it was intentional on YouTube's side considering it doesn't occur in Chrome. Sadly I don't see a work-around in that reddit thread. I wonder if someone has a violentmonkey script for it.
crazygringo•2h ago
That's not plausible.

If someone sees, oh YouTube is making my computer hot, the last thing that's going to occur to them is, "wait let me try turning off my adblocker."

When corporations try to change people's incentives, they are obvious about it, so people know what to change.

In contrast, changing CPU usage on video playback for people who use adblockers and then not telling anyone is... just not a strategy that makes any sense at all.

j45•2h ago
It might be worth finding out what codec might be coming down the pipe in any case.
hedora•2h ago
Sure it is. They’ve done crap like make firefox or safari run hot on other Google properties in the past.

Is it incompetence or sabotage? Who knows. The first rule of sabotage is to be indistinguishable from incompetence.

https://www.gutenberg.org/ebooks/26184

crazygringo•1h ago
Incompetence is by definition not intentional, and sabotage is the action of a rogue employee, not corporate strategy. A corporation can't intentionally sabotage itself, by definition.
kevin_thibedeau•1h ago
They're sabotaging non-Chrome browsers to drive people toward their platform with the strategically weakened extension API.
crazygringo•1h ago
I don't think that has any connection to the subject under discussion, which is about whether YouTube CPU performance would lead people to turn off adblockers. Not about getting people to switch to Chrome.
Shared404•49m ago
I believe their point is that people switching to Chrome _is_ turning off their adblocker.
glenstein•1h ago
I find it fascinating that people think 12 seconds armchair psychology is enough to definitively rule out phenomena that hinge on complex tech and complex human deliberations about policy. That works on campy monster of the week TV shows but it catastrophically underestimates real world complexity.

We've got documented cases in the wild of youtube adding 5 second timer, as well as experimenting with 3 video limits for adblock users, not to mention the cat and mouse game of breaking scraper-oriented tools like Newpipe. So it's happened before, and on-the-ground evidence of historical precedent and a straight look at incentives tell us more than assumed psychological states.

crazygringo•1h ago
Did you mean to reply to a different comment? Mine didn't say anything about psychology.

But you do seem to be strengthening my comment -- when YouTube was implementing a 3 video limit for users blocking ads, they were doing so with a big huge message: "It looks like you may be using an ad blocker. Video playback will be blocked unless YouTube is allowlisted or the ad blocker is disabled."

That makes sense as a strategy, telling the user what to change. Silently using up more CPU doesn't.

glenstein•58m ago
Musing on how a message will be subjectively experienced by users to the point of ruling out explanations based on an assumed subjective reaction, and assuming complex software development outcomes are tied to that specific strategy, is in fact about psychology on multiple levels, despite your protestation to the contrary. Specifically it's armchair psychology that underestimates complexity.

Most of my examples cut against your interpretation rather than in favor of. The 5 second delay was discovered rather than announced, and same with Newpipe breaking, and I don't even agree that the video message had anything to do with a broad principle of always tying communications to user experience. If anything the history is the opposite, rotating through various forms of obstruction all of which nudge user behavior in various ways, perfectly agnostic to any principle of how it gets communicated.

itissid•1h ago
Possibly You are conflating CPU usage with halting of video for length of the ad? ad blocker halts the video i.e.spinner widget appears for length of the ad.
vdnkh•1h ago
I work for another large streaming site where people like to use adblockers. These adblockers also cause similar performance issues that are entirely caused by awful code in these blockers. I've studied the code for all of these blockers and they do stuff like:

- Constantly hammering the playlist endpoint to try and get something without an ad stitched in

- Constantly tearing down and remaking the player

- During an ad, requesting the playlist for every other quality to see if those do not have any stitched ads

- Proxying all traffic to servers the adblocker people own in countries where ads are not typically served (eg Russia)

- Intercepting playlist requests and simply deleting segments that they believe are ads (oh no why is my stream broken!!! stupid streaming website!!)

Youtube _could_ be doing something here, but there is also a very real chance your adblocker code is simply bad.

jamesnorden•1h ago
None of what you're mentioning applies to uBlock interacting with YouTube, I suspect you're talking about Twitch, which bakes the ad breaks into the stream so you still get the stream interrupted even you manage to block the ads, making people resort to hacky things like using the homepage player when an ad would be played.
Aldipower•2h ago
When I open the "My Videos" tab, then I get this problem, otherwise it works.
sjw987•2h ago
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.

okwhateverdude•2h ago
Do you have an iGPU+dGPU combo like in a gaming laptop? For my 2019 gaming laptop with a i915+RTX2060, if I leave the switchable option on in the hardware settings (meaning the OS can choose which GPU to use ie. iGPU for low power), I end up with similar behavior in Linux/Win10. The external port actually uses the dGPU so rendering must go through it but it will struggle with the switchable option and I end up with freezing or stutters. In Linux, I explicitly configure Xorg to only use the iGPU and reserve the dGPU for model inference which fixes the stuttering issue. When booting into Win10, I explicitly disable the iGPU and turn off the external monitor so my VR playing doesn't stutter or youtube doesn't freeze or stutter.
zarzavat•2h ago
Thought it was just me! This started happening just today.
jjallen•2h ago
I have not and don’t run an adblocker fwiw.
PlotCitizen•2h ago
And do you notice high CPU usage or stuttering?
bak3y•2h ago
Just out here raw-dogging the internet...
Am4TIfIsER0ppos•2h ago
On the few occasions I visit I noticed excessive CPU usage with their crappy "ambient" mode.
magackame•33m ago
Also had some funky stuff with ambient mode. The whole page renders, video and audio plays, but nothing is interactive. Can't push buttons, can't select text etc etc. Like it renders the page to a png and shows it.
camhart•2h ago
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.
nine_k•2h ago
I run an extension that allows to automatically request h.264 streams from YouTube even when av1 is also available. Saves a lot of CPU, at the cost of some bandwidth.
yonatan8070•2h ago
What's the name of the addon?

I recall h264ify but not sure about it

wing-_-nuts•1h ago
Yep, that's what I use. It took youtube from using 100% cpu, to the point where my little xps13 was thermal throttling, to 50% cpu running 1080p at 2-3x speed.
yonatan8070•1h ago
Out of curiousity, what CPU do you have in that XPS 13?
nine_k•45m ago
What I run is https://github.com/alextrv/enhanced-h264ify

I looked now and noticed that I actually reject VP8 and VP9 and accept AV1. I run Linux on a Ryzen 4750U, for the record. It did not have trouble chewing through VP8 / VP9 without skipping frames, but it ran unpleasantly hot.

cosmic_cheese•2h ago
It’s funny that this kind of browser extension has recurred over the years. Originally it was to replace the awful CPU hog flash player with an HTML5 h.264 player[1], then it was to sidestep YouTube’s insistence on VP* codecs, and now it’s to sidestep AV1.

[1]: https://web.archive.org/web/20110302145602/http://www.vertic...

ryandrake•1h ago
In a beautiful world, there would be a link to each codec to let the user decide, or the browser itself would override the web site's preference and provide such links. It's sad that we keep having to resort to browser extensions to circumvent terrible web site and browser software.
alex_duf•1h ago
I guess in a beautiful world we'd have hardware accelerated, patent free codecs.

Which is almost what AV1 is, native hardware decoding is slowly slowly progressing

lxgr•1h ago
Assuming you have hardware support for VP9 as well, setting media.webrtc.codec.video.av1.enabled to false on about:config achieves the same outcome without an extension.
jsheard•2h ago
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.
cwillu•1h ago
Classic externality: at their scale, the power costs offloaded to their clients will also be enormous.
lxgr•1h ago
I believe Youtube's player is driving codec selection, not the browser (i.e. the player requests a list of supported codecs and then picks the one most beneficial for Google, not the other way around).

That said, I've solved this problem for myself on macOS and Firefox by setting media.webrtc.codec.video.av1.enabled to false on about:config, as all other codecs used by Youtube are hardware accelerated on my Mac.

zamadatix•58m ago
> I believe Youtube's player is driving codec selection, not the browser (i.e. the player requests a list of supported codecs and then picks the one most beneficial for Google, not the other way around).

The way the browser can still participate in choosing is by e.g. not listing AV1 as supported when there is no hardware decoder on the local system. Both Safari and Edge took (approximately) that style of approach, but it comes with the downside that if the server only has AV1 video then the client gets nothing.

Practically, that downside isn't a big deal until codec support is high enough sites start assuming the codec is just supported and they don't need to host alternative options.

lxgr•44m ago
Yes, I think Safari even did so dynamically based on the mac being plugged into external power or not for a while, which I think is a nice compromise.

Apparently, there's even an API attribute that indicates whether a given codec is power efficient (https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabi...), which Google must also be ignoring – not their problem, after all. (I wonder if anybody did the math of the opportunity cost of losing a few ad impressions due to the user's battery dying early vs. the incremental bandwidth cost?)

snickerdoodle14•2h ago
If you have an adblocker and it happens at the start of a video then this is intentional
SigmundA•2h ago
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.
paol•2h ago
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.

liquidise•2h ago
Disabling “Ambient Mode” in the settings helps cpu usage a lot on my intel MBA.
WASDx•1h ago
Same. I recall the "stable volume" setting also eating cpu.
jjbinx007•2h ago
YouTube is pretty shocking in Firefox, even worse with an ad blocker.
WD-42•2h ago
I like imagine the stuttering and jagged reflows are the result of uBlock origin violently battling the page and destroying all the ads.
shakna•2h ago
The experience suddenly gets mysteriously better if you switch your user agent to Chrome's, though.
cosmic_cheese•1h ago
Sounds like an unnecessary polyfill.
jeroenhd•1h ago
That's not my experience at all. Switching off AV1 encoded videos has made a huge difference, though.
orsev•2h ago
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.
jeroenhd•1h ago
Does your PC have hardware-accelerated AV1 video decoding enabled in Firefox? And does your Mac? (you can check in about:support)

My PC plays videos just fine, but it started sucking down 50W more than it used to, and AV1 was the culprit. Now that I've switched YT back to hardware-accelerated h264 playback, everything is back to normal.

gatane•2h ago
Also happens with Github and anything that uses ads lately. A 2 core PC dies while trying to render those pages.
gatane•2h ago
Hell, I have to use my phone instead if I want to go to any of those pages nowadays. And even my phone now gets a random crash from chrome or the page itself.
hedora•1h ago
I wonder if it’s proof of work bullshit. For those to be effective, they have to slow down whatever machine is running in an LLM farm.

That generally means they have to peg a desktop GPU for long enough to make a dent larger than LLM inference time.

Browsing with a 2 core box is like using a musket to blow a hole in a wall that’s optimized for armor piercing rounds.

Is this dumb? Of course. Your best recourse is probably to work around the anti-LLM blocks by having an agent read and summarize the page for you.

Are there any decent cloud based web renderers yet? Something like vnc or rdp backed by a shared 4090 could solve the problem. For static content, it’d only have to run proof of work once, then serve the result from cache.

ndriscoll•1h ago
That makes no sense. You require PoW before providing the information, not when the page is already sent. For a large code repository like GitHub for LLM training, it's also trivial to just git fetch to scrape. The simpler explanation is that modern web devs are frequently incompetent and can't get static text to appear on an idle page without pegging cores, can't get subsecond server page generation for simple CRUD, etc. This was the trend before LLMs were ever a thing.
asimovDev•54m ago
I absolutely despise what they did to GitHub's website. It used to be smooth and slick. But now a lot of things like reviewing PRs or just searching through a repo are painfully slow.
DrNosferatu•2h ago
A great (free and O.S.) Android client with ad blocker is

https://github.com/polymorphicshade/Tubular

it also integrates SponsorBlock!

eXpl0it3r•1h ago
Will Google ban your account if you login?
kyriakos•37m ago
Just load your channel list from YouTube. No need to login.
buckle8017•2h ago
Disable ambient mode.

It can use a ridiculous amount of CPU.

It seems hardware accelerated only on windows chrome.

acheong08•1h ago
Tried [Invidious](https://github.com/iv-org/invidious)? It's really lightweight. I host my own instance: https://iv.duti.dev and it works wonders (Librewolf with strictest fingerprint resist)
SoftTalker•1h ago
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.
barrenko•1h ago
I have like 4 simple tabs and my Chrome is hogging 1.8GBs of RAM.
iLemming•1h ago
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.
namibj•1h ago
Either download ahead, or turn down the bitrate via ytdl format expressions; see the latter's docs for how to express your desires.
2OEH8eoCRo0•1h ago
It's probably the special Google hardware obsoleting sauce called AV1. Without hardware acceleration your computer will struggle to decode their videos.
mamcx•1h ago
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.
malakai521•1h ago
It happens when you use adblocker
jeroenhd•1h ago
Youtube 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 equalisation can also impact performance, though that kind of depends on how fast your web browser is at executing Javascript, and to a much smaller extent.

The substantial bandwidth savings are here to stay, though, so in time I think Youtube will move to AV1 more often.

tantalor•1h ago
> impact on battery life and CPU

Well, is it higher or lower?

zamadatix•1h ago
For devices with the hardware decoder it'll be in the same ballpark as before. For devices without the hardware decoder the CPU will use significantly more power to decode the video than a hardware decoder.
jccc•44m ago
> 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.

binaryturtle•57m ago
Worth checking the browser console. If you use a content blocker (e.g. uBlock Origin) it may block things the site really, really "wants". It then goes into an extreme busy loop and throws exceptions to the console like a berserker on a nightly rampage.

Once you carefully whitelist the resource it wants the CPU usage goes down again. At least that fixed it for me (I was mistakenly checking various codec related settings in Firefox first too to find a solution.)

dijit•48m ago
Tangially related; imgur uses (and used) 100% CPU for me; I was never quite sure how or why.

The reason I bring it up is because I tried to actually profile it a handful of times, but my C++/Rust/Python knowledge was completely useless in the face of a browser development toolchain.

Did I miss something, or is it not possible to easily see what functions take the meat of javascript execution time?

(it feels really absurd if it's not easy, given that people can essentially serve whatever arbitrary script they want and my computer pretty much has to deal with it if I want to use whatever site)

cluckindan•47m ago
Run the profiler in the browser’s developer tools and you get a flame graph.
dijit•37m ago
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.

cluckindan•17m ago
You have to manually stop it before it collects too much data.
cpncrunch•34m ago
As others have noted, if you don't have hardware decoding for the codec being used, it will suck up a huge amount of cpu. Last year I got a new Macbook Pro with M3 Pro cpu, and it's amazing how little cpu it uses for video playback. After watching an hour of Youtube, the battery is down only about 5 or 10%.