hmlendea/gfn-electron

[BUG] Hardware decoding not working, works fine in Chrome

miromarszal opened this issue · 5 comments

Describe the bug

I see no signs of hardware decoding when streaming a game. There is a noticeable input lag too.

To Reproduce

  1. Start gfn-electron and launch your favourite game.
  2. Wait until the stream begins.
  3. Observe your GPU usage with an appropriate tool (intel_gpu_top in my case).

Screenshots

GPU usage with gfn-electron
GPU usage with the app

GPU usage with Chrome
GPU usage with Chrome

Operating System

Ubuntu 23.04

Desktop Environment

GNOME 44.3

Display Server

Wayland

Installation method

Source

Version

1.13.0

Is this a fresh install of the app or an update from a past version?

Fresh

Did this issue appear right away upon installation/updating, or spontaneously?

Right after installation

Additional context

The graphics card is Intel® UHD Graphics (CML GT2). Hardware decoding works for me in Chrome with only one additional flag added: -enable-features=VaapiVideoDecodeLinuxGL. I leave out --use-gl, however, I verified that egl does not work and angle does. These are not the same as used by gfn-electron, so I tried the default setting and flags set as above by tweaking the source, in both cases without success. You can see from the screenshot above that hardware decoding does not work.

didn't it need a permissions set in flatseal? Default is disabled as I can see...

Good point about flatpak installations, there could be issues there. In my case it's a source installation though.

didn't it need a permissions set in flatseal? Default is disabled as I can see...

Which permission are you refering to?

Is this still an issue in the latest release?

Yes, I can confirm that this issue still exists. Starting chromium with --enable-accelerated-video-decode works, however this option is not accepted by the geforcenow-electron binary. Is it somehow possible to provide custom arguments to geforcenow-electron?