I don't know what to do. I've tried searching through google and all the answers don't seem to work. When I use Firefox (this is librewolf but it's the same on Firefox), games like Tetr.io or Friday Night Funkin lag real bad but they're buttery smooth on Chrome or Chromium. I have an iGPU and a "Cedar" AMD GPU according to lspci. Someone please help me, I don't wanna use Chromium just to get good performance. Please tell me if I need to provide more information.

11 Comments
Comexs@lemmy.zip · 5 pts · 1y
Firefox Hardware video acceleration
Also make sure that in
about:supportCompositingin the Features table under Graphics is set toWebRenderif it is not than setgfx.webrender.allinabout:configtotrue.I had the same issue but I have a NVIDIA gpu. but I just had to install libva-nvidia-driver and edit Kernel parameters and Environment Variables . I got this to work with both Firefox and Librewolf but only some video codecs.
note i have 1080ti so i don't have hardware acceleration for av1. also the only time a problem when I turn off hardware decdoing on firefox is when I watch a HEVC stream on twitch for some reason i get drop frames every second.
Firefox V137.0 Linux
Librewolf V136.0.4 (HEVC decoding is only add support on Firefox 137.0 on linux)
theselfhoster@sopuli.xyz · 2 pts · 1y
Did all that but it's still the same. I really don't know what's the root cause of this.
Comexs@lemmy.zip · 2 pts · 1y
I sure you have but have you tried checking the out put of
vainfoArch wiki since Firefox only supports Hardware acceleration with VA-API.theselfhoster@sopuli.xyz · 2 pts · 1y
notanapple@lemm.ee · 1 pts · 1y
which gen is your igpu? Older intel igpus need
libva-intel-driverpkg installed (on Arch, not sure whats the Fedora equivalent) and the env variableLIBVA_DRIVER_NAMEset toi965.See also https://wiki.archlinux.org/title/Hardware_video_acceleration#VA-API_drivers.
theselfhoster@sopuli.xyz · 1 pts · 1y
According to fastfetch it's a "Intel Xeon E3-1200 v2/3rd gen core processor"
When I tried to run "LIBVA_DRIVER_NAME=i965 firefox" it spat out "restorecon: SELinux: Could not get canonical path for /home/[myusername]/.mozilla/firefox//gmp-widevinecdm/ restorecon: No such file or directory."
that_leaflet@lemmy.world · 4 pts · 1y
theselfhoster@sopuli.xyz · 3 pts · 1y
Fedora, but I had the same problem on Arch.
Currently I have it installed through Flatpak but I have the same problem with distro package.
that_leaflet@lemmy.world · 2 pts · 1y
theselfhoster@sopuli.xyz · 2 pts · 1y
Yes.
theselfhoster@sopuli.xyz · 2 pts · 1y
I have the same exact set up on my Thinkpad x240 and it's running smooth on Firefox so I dunno... I'm ripping my hair out over this tbh.
MangoPenguin@lemmy.blahaj.zone · 2 pts · 1y
I don't understand why this stuff isn't enabled by default on Linux, it's such a detriment to new users when super basic features don't work out of the box.
Matth78@lemm.ee · 1 pts · 1y
It's for fedora but maybe this link could help : https://fostips.com/hardware-acceleration-video-fedora/?amp=1
It did for me. I replaced mesa drivers for my amd card.