games-on-whales / wolf

Stream virtual desktops and games running in Docker
https://games-on-whales.github.io/wolf/stable/
MIT License
292 stars 20 forks source link

Changing WOLF_RENDER_NODE does not seem to work #49

Closed whazor closed 6 months ago

whazor commented 9 months ago

I tried setting WOLF_RENDER_NODE to /dev/dri/renderD129 to use the GPU instead of Intel QuickSync. But it keeps using Intel and D128.

I verified that the environment variable is correctly set by running -ti ... bash on the docker run command:

root@game-srv:/wolf# env | grep WOLF_RENDER_NODE
WOLF_RENDER_NODE=/dev/dri/renderD129

The way I found out it is using Intel is because of the HEVC encoder selection: 19:11:16.370946074 INFO | Selected HEVC encoder: qsv

ABeltramo commented 9 months ago

Have you seen the docs on this?

TL;DR:

Which vendor is the GPU that you are trying to use?
If it's Intel or AMD based on this issue you should be able to replace vah265enc with varenderD129h265enc in encoder_pipeline under [gstreamer.video.hevc_encoders]] (and move that above the qsv entry or delete it). I don't have such a setup, so I haven't tested this personally.

I hope this helps!