alvr-org / ALVR

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

Low FPS on GNU/Linux and 3090Ti #1260

Closed svsdval closed 1 year ago

svsdval commented 1 year ago

Description

I checked for Windows there are no problems, everything works fast. FPS=72 holds on refresh rate on client side. But under Debian GNU/Linux FPS drops a lot.... Server side fps jump to 72 and drop to 30-40 (on steam where empty room with the horizon background image and on half life alyx place ), at the same time, both the video card and the processor are "resting" ... And other games on with 'vulkan' render engine same problem. For example OpenGL and Vulkan games i tested with ultra settings fps close in windows and linux, so this isn't a GPU or CPU promblem i think... So what could be the problem? and why Encoder Lanetncy always jump from 30ms to 70ms ?

Statistics

image

Video settings

image

Environment

env.txt

Hardware

hw-probe

GPU Driver version

510.85.02

Installation

ALVR Versions: ALVR v20.0.0-dev01+nightly.2022.10.19

SteamVR Version: Build Nov 12 2022, 02:45:32 API v020 Version 1668654564

Install Type: appimage & tar.gz

OS Name and Version Debian GNU/Linux bookworm/sid

svsdval commented 1 year ago

Here is testing on my Pico 4 (settings for pico 4) , and Oculus quest 2,

Encoder latency 7-10ms Transport latency 8-10ms Decoder latency: 9-12ms So, does anyone know why the encoder latency is so BIG?

ALVR settings Windows 10

alvr_settings

ALVR stats Windows 10

alvr_stats

ghost commented 1 year ago

@svsdval i feel like it's likely that you are encoding on the cpu (Ryzen 7 PRO 4750G), and the gpu isn't doing any work. (apart from game rendering) Check if ALVR is actually doing any intense GPU work, and if not, its likely an NVENC bug.

ghost commented 1 year ago

I had the exact same bug with both a GTX 1660 TI and an RTX 3060 TI. The culprit was NVENC dying on boot for me.

svsdval commented 1 year ago

cpu is not used, (only loaded steam home with city 17 location ) image .... screenshot with nvidia-settings: image .... checked with ffmpeg, h264_nvenc, works fine (encoded native resolution 1920x804 with 27x speed): image

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

svsdval commented 1 year ago

Still actual

svsdval commented 1 year ago

alvr update to 2023.01.30 and nvidia drivers to 520 solved this problem, still less than in windows but better than before ;)