alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.3k stars 474 forks source link

Slow performance when hardware encoder enabled #1535

Closed Kieaer closed 1 year ago

Kieaer commented 1 year ago

Description

Using the software encoder, instead of increasing the cpu temperature, the fps is relatively stable at 30 to 50 fps. Using the hardware encoder, the cpu clock drops below 800MHz, and the GPU usage also drops to fps 4 ~ 9 without exceeding 30%.

Using 5900HX, Embedded GPU and has 1.3GHz ~ 4.3GHz clock. When I run the game without ALVR, the fps works between 30 ~ 60 fps.

Hardware encoding keeps the cpu fan speed down as it doesn't generate heat. No heat is nice, but the CPU clock drops below 1GHz and performance is greatly reduced.

Hardware encoder image

Software encoder image

General Troubleshooting

Environment

Hardware

https://linux-hardware.org/?probe=d1da7498da

Installation

ALVR Version: v20.0.0-dev07+nightly.2023.3.15

SteamVR Version: 1.25.7

Install Type:

OS Name and Version : Ubuntu 22.04.1 LTS

Vixea commented 1 year ago

are you changing the power profile to vr this is going to be needed until kernel version 6.4 it seems at this point?

Kieaer commented 1 year ago

I'm not change power profile. Linux 5.15 LTS is applied to this ubuntu version. Do I need a kernel upgrade?

Vixea commented 1 year ago

no you need to change the power profile

Vixea commented 1 year ago

oh about the previous issue that I closed before use this one https://github.com/alvr-org/ALVR-nightly/releases/tag/v20.0.0-dev07%2Bnightly.2023.03.25 as the latest has a regression that effects linux

Kieaer commented 1 year ago

no you need to change the power profile

AMD CPU has no way to change the power profile.

Vixea commented 1 year ago

https://github.com/ValveSoftware/SteamVR-for-Linux/issues/469 read this

Kieaer commented 1 year ago

I tried but hardware encoders are still very unstable fps than software encoders. I'll try again with the nightly version.

Edit: same problem

Vixea commented 1 year ago

well at this case its your gpu not being powerful enough