hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
538 stars 63 forks source link

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

Open miromarszal opened 1 year ago

miromarszal commented 1 year ago

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.

seedneus commented 1 year ago

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

miromarszal commented 1 year ago

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

hmlendea commented 1 year ago

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

Which permission are you refering to?

hmlendea commented 7 months ago

Is this still an issue in the latest release?

erik-mueller commented 4 months ago

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?

chrispouliot commented 1 month ago

@hmlendea Was the argument passing added in the open PR able to fix this issue? I am wondering if I can use AV1 decode with this but I am hesitant to pay for the higher subscription that offers it if hardware decode is not working. Thanks!