thorium icon indicating copy to clipboard operation
thorium copied to clipboard

poor youtube 4k60fps performance compared to FF Nightly

Open PcChip opened this issue 2 years ago • 17 comments

Love the project!

Just wanted to report my test against FireFox Nightly:
using the following video: https://www.youtube.com/watch?v=LXb3EKWsInQ
Thorium shows Render/3D at 100% and Video at 0% in intel_gpu_top, and the video drops frames
FF Nightly shows Render/3D at 25% and Video at 25% in intel_gpu_top, and the video is smooth

12th gen Intel CPU on Kubuntu 22.04

PcChip avatar Jul 05 '22 17:07 PcChip

@PcChip What Thorium version and what platform/OS version.

Alex313031 avatar Jul 06 '22 19:07 Alex313031

should be the latest version of Thorium and the latest version of Kubuntu 22.04

does this help? - https://i.imgur.com/VgSqijU.png

PcChip avatar Jul 06 '22 20:07 PcChip

@PcChip Yes thanks. What is your CPU?

Alex313031 avatar Jul 08 '22 00:07 Alex313031

12th gen core i5

PcChip avatar Jul 15 '22 02:07 PcChip

Try latest release and see if it persists. https://github.com/Alex313031/Thorium/releases/tag/M105.0.5183.0

Alex313031 avatar Jul 17 '22 23:07 Alex313031

@PcChip Hows it coming.

Alex313031 avatar Aug 03 '22 12:08 Alex313031

it seems that both Thorium and regular FireFox render youtube videos as "Render/3D", whereas Firefox Nightly renders it as "Video" according to intel_gpu_top. When rendered as "Render/3D", it is not as smooth and stutters and drops frames.

I assume that's related to FireFox Nightly recently enabling VAAPI by default?

PcChip avatar Aug 15 '22 13:08 PcChip

@PcChip Thorium has patches to enable VAAPI and VDPAU by default as well as it can. This is strange that it is not working on a new chip on ubuntu.

Alex313031 avatar Aug 16 '22 19:08 Alex313031

Same issue. Graphics Platform: Wayland Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz Graphics Processor: Mesa Intel® UHD Graphics 620

It uses CPU +50% when decoding video and 0% intel-gpu-top video.

goosesima avatar Aug 27 '22 13:08 goosesima

Solved look at comment below ~~Same issue No video hardware acceleration with Thorium on GNU/Linux Video HW Acel works on on Firefox Stable and on Thorium running on Windows 10~~

Click on dropdown for details

System Information Plasma KDE w Wayland Manjaro Intel i5-7200U (4) @ 3.100GHz
Intel HD Graphics 620
AMD ATI Radeon R7 M360
If any other information is needed, feel free to ask
GNU/Linux Firefox Stable Latest Click on image to zoom
GNU/Linux Thorium Latest Click on image to zoom
Windows 10 Thorium Latest Click on image to zoom

JadenJSJ avatar Nov 11 '23 12:11 JadenJSJ

I fixed hardware decoding on my instance by clearing the flags on ~/.config/thorium-flags.conf (copied from chrome) and also resetting all thorium flags on chrome://flags

JadenJSJ avatar Nov 11 '23 13:11 JadenJSJ

so on a fresh thorium install on linux, you had to change flags or a config file to make Thorium use hardware video decoding?

PcChip avatar Nov 11 '23 13:11 PcChip

I used the latest Intel graphics driver on the Kubutnu 22.04 system to test the browser's hardware acceleration and found that it was normal.

I'm using X11 instead of wayland.

gz83 avatar Nov 12 '23 01:11 gz83

so on a fresh thorium install on linux, you had to change flags or a config file to make Thorium use hardware video decoding?

No, it works out of the box. I made some changes to the flags at some point or copied it over from my chrome install.

JadenJSJ avatar Nov 12 '23 03:11 JadenJSJ

I can confirm HW Accel doesn't work if --ozone-platform=wayland

2023-11-12_09-42.png

2023-11-12_09-41.png

try to use X11 @JadenJSJ

gz83 avatar Nov 12 '23 04:11 gz83

try to use X11 @JadenJSJ

I accidentally deleted my previous comment.

HW video Accel works fine out of the box in X11. But 2 finger pinch zoom still doesn't work @gz83

2023-11-12_11-18

JadenJSJ avatar Nov 12 '23 04:11 JadenJSJ

try to use X11 @JadenJSJ

I accidentally deleted my previous comment.

HW video Accel works fine out of the box in X11. But 2 finger pinch zoom still doesn't work @gz83

2023-11-12_11-18

Hardware acceleration on the Linux platform is currently not available out of the box, and turning on hardware acceleration inevitably requires sacrificing something.

@JadenJSJ

gz83 avatar Nov 12 '23 04:11 gz83