Any plans for hardware acceleration?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Walter Dnes
Astronaut
Astronaut
Posts: 650
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Any plans for hardware acceleration?

Unread post by Walter Dnes » 2018-08-20, 15:28

On the Puppy Linux forum there has been some disappointment about performance (or lack thereof) on Youtube. It's in the Pale Moon thread starting at http://murga-linux.com/puppy/viewtopic. ... &start=646 During the beta I mentioned that my Youtube performance suffered due to lack of hardware acceleration. This regression is most noticable on older machines, e.g. I've had to switch from my 10-year-old Core2 Duo to a newer Ivybridge desktop machine to get back to 1080p fullscreen on Youtube.

I go 1080p because my monitor is 1920x1080. 4k monitors and videos are slowly becoming a thing now. Even newer machines are going to need hardware acceleration to play back 4K.
There's a right way
There's a wrong way
And then there's my way

User avatar
Lunokhod
Lunatic
Lunatic
Posts: 469
Joined: 2017-04-20, 21:25
Contact:

Re: Any plans for hardware acceleration?

Unread post by Lunokhod » 2018-08-20, 19:52

I think there are some problems with Linux in general, I have read:
https://www.phoronix.com/scan.php?page=news_item&px=Nouveau-XDC2017
I read somewhere else Nvidia are not releasing the 3D elements as Linux lacks GPU thermal management, it only monitors CPU temperatures. So if the GPU was heavily loaded the relevant fan would not turn on unless the BIOS intervened.
Wait, it's all Ohio? Always has been...

User avatar
stevenpusser
Project Contributor
Project Contributor
Posts: 903
Joined: 2015-08-01, 18:33

Re: Any plans for hardware acceleration?

Unread post by stevenpusser » 2018-08-20, 20:11

Since PM is now using libavcodec for playback, maybe there would be some sort of flag to pass to it to enable whatever sort of acceleration it supports, such as va-api for my Intel integrated GPU.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1736
Joined: 2013-05-20, 18:19
Location: Somewhere in Sector 001

Re: Any plans for hardware acceleration?

Unread post by trava90 » 2018-08-22, 02:17

To those disappointed with video playback performance when using the 32-bit version of Pale Moon 28, can you please test and see if performance is any better with the media.ffvpx.enabled pref set to false?

Potkeny
Fanatic
Fanatic
Posts: 129
Joined: 2018-08-03, 17:00

Re: Any plans for hardware acceleration?

Unread post by Potkeny » 2018-08-22, 07:31

trava90 wrote:when using the 32-bit version of Pale Moon 28, can you please test and see if performance is any better with the media.ffvpx.enabled pref set to false?
Edit: Just noticed this was the Linux-subforum.. well, maybe it's somewhat relevant anyway.. maybe..

Disclaimer: NoScript-user.

For me, (probably) yes.

Win7 SP1 x64, AMD APU (HD6320), v27.* (32bit) had some problems for me, couldn't play videos/gifs, v28 (32bit) fixed that, media.ffvpx.enabled -> false improves that somewhat. My old'n'weak laptop still can't play 720p60 (tested on YT), but I noticed less frequent/smaller "stops/jumps", which should mean improved performance (unless confirmation bias..). 720p30 was and is fine, so can't really test performance with a quick test on that.

Will see today if the "overall YT experience" is better for me, but at the very least it shouldn't be worse.
Last edited by Potkeny on 2018-08-22, 08:09, edited 1 time in total.

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1736
Joined: 2013-05-20, 18:19
Location: Somewhere in Sector 001

Re: Any plans for hardware acceleration?

Unread post by trava90 » 2018-08-22, 12:30

Thanks, but media.ffvpx.enabled being false is not likely to make much of a difference (if any) on Windows.

Walter Dnes
Astronaut
Astronaut
Posts: 650
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Any plans for hardware acceleration?

Unread post by Walter Dnes » 2018-08-22, 18:36

trava90 wrote:To those disappointed with video playback performance when using the 32-bit version of Pale Moon 28, can you please test and see if performance is any better with the media.ffvpx.enabled pref set to false?
Definite improvement. My "benchmark" is the Youtube roller-coaster video https://www.youtube.com/watch?v=9dC6uJDNf64 On my 10-year old Core2 with 32-bit Gentoo and a 1920x1080 monitor
  • PM 27.9.4 standard build handles 720p fullscreen
  • PM 27.9.4 "Gentoo Ricer" build handles 1080p fullscreen
  • PM 28.0.0 standard mode handles 480p fullscreen
  • PM 28.0.0 ( media.ffvpx.enabled ==> false ) handles 720p fullscreen
There's a right way
There's a wrong way
And then there's my way

terranigma

Re: Any plans for hardware acceleration?

Unread post by terranigma » 2018-08-23, 02:24

Chromium community managed to enable video hardware acceleration almost for a year. It seems Linux web browsing scene is getting more appealing for notebook users and older PC hardware owners.

https://aur.archlinux.org/packages/chromium-vaapi
https://aur.archlinux.org/packages/chromium-vaapi-bin/

User avatar
stevenpusser
Project Contributor
Project Contributor
Posts: 903
Joined: 2015-08-01, 18:33

Re: Any plans for hardware acceleration?

Unread post by stevenpusser » 2018-08-23, 18:43

What exactly does that setting do? Does it have libavcodec use some faster built-in vp8 and vp9 decoder instead of libvpx?

Walter Dnes
Astronaut
Astronaut
Posts: 650
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Any plans for hardware acceleration?

Unread post by Walter Dnes » 2018-08-23, 19:42

I was originally going to suggest allowing Steve and other official builds to set media.ffvpx.enabled ==> false in 32-bit linux builds. Maybe a better idea would be to simply make it the default for all 32-bit-linux builds. At least until such time as internal hardware acceleration is enabled in UXP.
There's a right way
There's a wrong way
And then there's my way

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1736
Joined: 2013-05-20, 18:19
Location: Somewhere in Sector 001

Re: Any plans for hardware acceleration?

Unread post by trava90 » 2018-08-23, 20:26

stevepusser wrote:What exactly does that setting do? Does it have libavcodec use some faster built-in vp8 and vp9 decoder instead of libvpx?
It disables the version of ffvpx that ships in our tree (currently 3.4) and falls back to the system installed FFmpeg packages instead (very similar to what v27 did) and then falls back to libvpx as a last resort if the required FFmpeg packages can't be found.

Walter Dnes
Astronaut
Astronaut
Posts: 650
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: Any plans for hardware acceleration?

Unread post by Walter Dnes » 2018-08-24, 00:24

One question: why would this only apply to 32-bit Pale Moon?
There's a right way
There's a wrong way
And then there's my way

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1736
Joined: 2013-05-20, 18:19
Location: Somewhere in Sector 001

Re: Any plans for hardware acceleration?

Unread post by trava90 » 2018-08-24, 00:33

Our bundled FFmpeg code is not as optimized when building 32-bit Linux as it is when building 64-bit. I'm investigating why this is and if it can be optimized more akin to 64-bit builds (or if we should just disable it for 32-bit Linux builds).

Locked