alvr-org / ALVR

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

Linux bitrate jumps from 10 to 900 and kills performance #2188

Open endemiq2 opened 2 weeks ago

endemiq2 commented 2 weeks ago

The bug is affecting all games. The bug does not affect Steam void for some reason.

Description

Encoder bitrate is set to constant, but with both "adopt to framerate" On and Off bitrate is not constant. Encoder bitrate jumps form 10 to 600 on 5G wifi. from 10 to 300 on 2.4G wifi and from 10 to 900 on usb-thunderbolt. Bitrate jumps multiple times a second and encoder practically kills gpu performance down to 23-25 fps. Using slower wifi limits encoder jumps and actually improves framerate to 30-35 fps. With the lowest in-game graphics settings framerate is expected to be locked at 90fps. Lowering HDM resolution and encoding resolution to sub 800x800 pixels with the lowest in-game settings improves fps from 30-35 only up to 35-45 fps in every game.

Same total resolution with the same lowest in-game settings without alvr streaming results in 144fps locked. Same total resolution with the the high-epic in-game settings without alvr streaming results in 144fps locked. Higher total resolution with the the high-epic in-game settings without alvr streaming results in 144fps locked. The systems are properly configured and perform as expected outside of ALVR.

General Troubleshooting

Environment

CPU: Intel 11600, 12900 GPU: 3060, 3070ti GPU Driver Version: 535, 545, 555

ALVR Version: latest and nightly

ALVR Settings File: multiple settings tested, same results

SteamVR Version: every one from legacy 1.27 up to beta 2.6.2

Install Type:

OS Name and Version Ubuntu, Mint, latest kernels, Plasma X11 and Plasma Wayland (on both distros)

Feature Requests: Feature to hard cap encoder bitrate needed.