Skip to main content

YouTube High CPU/GPU usage

Fix. No tweaks required.

YouTube videos would start OK then start stuttering after about a minute, with CPU in Task Manager spiking to 100%.

What I didn't realise is that how you play videos affects resource intensity.

Normal mode - Med CPU/GPU

Normal Mode - Med CPU/GPU
This is the default YouTube mode.

Using Firefox's 'about:processes' we see CPU/GPU on my PC running at 30%/35%.

Picture-in-Picture - High CPU/Low GPU

P-in-P - High CPU/Low GPU

Picture-in-Picture CPU/GPU: 61%/26%

Fullscreen - Low CPU/GPU


Fullscreen CPU/GPU: 22%/16%

Thoughts

Streaming video in Normal or Picture-in-Picture, my preferred modes, made it easier for my system to become overloaded and for playback to start stuttering.

Why does this happen?

Windows 10 uses the GPU for windowing. And while this spreads the load across CPU/GPU, windowed video remains challenging for an old PC like mine, especially when running multi-monitors. Fullscreen removes the need to window on one display.

Fullscreen also seems to reduce video stuttering in other scenarios, e.g. other browsers, other streaming sites, VLC, etc.

As promised, my fix requires no tweaks, but potentially more difficult behaviour change.

My system: Windows 10 64bit, Intel Celeron 3855U 1.6GHz, Firefox 124.

Comments

Popular posts from this blog

Transcode to PSP using Handbrake

Source: Handbrake 0.9.9.5530 64-bit edition Target: (Phat) Playstation Portable PSP-1000 , System Software: 6.60 Many internet articles on how to transcode video to PSP using Handbrake have not worked for me. Even the most helpful are incomplete. I hope this post will help fill in the blanks. There is no longer any PSP preset for Handbrake, but from what I can gather, the preset had only limited success as the x264 encoder would change syntax and settings between versions. Other presets that may have worked before, like 'iPod' and 'Apple-Universal' now do not. Here is what worked for me, step by step:

Firefox History Statistics - Extracting from Places.sqlite

If you want to take a look at Firefox surfing activity, the about:me add-on is a good start. However, it presents only one view of data and is thus limited in its ability to present more detailed statistics. We will view that data in a different program. So let's first extract it from the browsing history stored in the Places.sqlite file into a CSV file using a Firefox add-on. Step 1 - Locate and copy Places.sqlite to a working location On Windows machines, Places.sqlite is found in a directory similar to: C:\Users\User1\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\places.sqlite Copy the file to another location. The database will be locked while using Firefox, and the SQLite plugin we will use to open it.

Bloomberg JSON data into Libreoffice Calc

LibreOffice Calc has no inbuilt stock market functions, and a popular plugin which offered those has stopped working along with changes to Yahoo Finance. Luckily, we can get the latest quotes from Bloomberg. [2018-12-15] Bloomberg Finance is, understandably, blocking multiple simultaneous requests. A more flexible solution is using a Python Stock Scraper .