this post was submitted on 05 Apr 2025
12 points (92.9% liked)

Firefox

19343 readers
139 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 5 years ago
MODERATORS
 

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.

top 12 comments
sorted by: hot top controversial new old
[–] MangoPenguin@lemmy.blahaj.zone 2 points 5 hours ago

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.

[–] Comexs@lemmy.zip 5 points 13 hours ago* (last edited 13 hours ago) (1 children)

Firefox Hardware video acceleration

If hardware video acceleration is blocked with error code FEATURE_HARDWARE_VIDEO_DECODING_DISABLE or FEATURE_FAILURE_VIDEO_DECODING_TEST_FAILED in about:support, you can override it with media.hardware-video-decoding.force-enabled=true. See [10] for more information. Alternatively, you can install firefox-vaapiAUR.

Also make sure that in about:support Compositing in the Features table under Graphics is set to WebRender if it is not than set gfx.webrender.all in about:config to true.

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 | Codec Name | Software Decoding | Hardware Decoding | |


|


|


| | H264 | Supported | Supported | | VP9 | Supported | Supported | | VP8 | Supported | Unsupported | | AV1 | Supported | Unsupported | | HEVC | Supported | Supported | | AAC | Supported | Unsupported | | MP3 | Supported | Unsupported | | Opus | Supported | Unsupported | | Vorbis | Supported | Unsupported | | FLAC | Supported | Unsupported | | Wave | Supported | Unsupported |

Librewolf V136.0.4 (HEVC decoding is only add support on Firefox 137.0 on linux) | Codec Name | Software Decoding | Hardware Decoding | |


|


|


| | H264 | Supported | Supported | | VP9 | Supported | Supported | | VP8 | Supported | Unsupported | | AV1 | Supported | Unsupported | | HEVC | Unsupported | Unsupported | | AAC | Supported | Unsupported | | MP3 | Supported | Unsupported | | Opus | Supported | Unsupported | | Vorbis | Supported | Unsupported | | FLAC | Supported | Unsupported | | Wave | Supported | Unsupported |

[–] theselfhoster@sopuli.xyz 2 points 13 hours ago (1 children)

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 points 13 hours ago (1 children)

I sure you have but have you tried checking the out put of vainfo Arch wiki since Firefox only supports Hardware acceleration with VA-API.

[–] theselfhoster@sopuli.xyz 2 points 13 hours ago (1 children)
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/iHD_drv_video.so
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva error: /usr/lib64/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib64/dri-nonfree/i965_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/i965_drv_video.so
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit```

This is what I got, I still dunno what it means. 
[–] notanapple@lemm.ee 1 points 5 hours ago (1 children)

which gen is your igpu? Older intel igpus need libva-intel-driver pkg installed (on Arch, not sure whats the Fedora equivalent) and the env variable LIBVA_DRIVER_NAME set to i965.

See also https://wiki.archlinux.org/title/Hardware_video_acceleration#VA-API_drivers.

[–] theselfhoster@sopuli.xyz 1 points 3 hours ago* (last edited 3 hours ago)

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 points 14 hours ago* (last edited 14 hours ago) (1 children)

What’s your distro?

How is Firefox installed? Distro package or flatpak?

[–] theselfhoster@sopuli.xyz 3 points 14 hours ago (1 children)

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 points 14 hours ago* (last edited 14 hours ago) (2 children)

Is media.ffmpeg.enabled set to true in about:config?

It’s also true that graphics performance of Firefox is just not as good as Chromium, even with hardware acceleration.

[–] theselfhoster@sopuli.xyz 2 points 14 hours ago

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.