alvr-org / ALVR

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

Ubuntu heavy lags #935

Closed Barmallini closed 1 year ago

Barmallini commented 2 years ago

Description

Lags in transcoding Server was build with: cargo xtask build-server --no-nvidia --bundle-ffmpeg --release Client was build with alvr_build_linux.sh With h264 it'l lags heavily - check attached screen alvr_lags

With h265 no lags in statistic window, but picture in Oculus consist of random square artifacts (like old broken MPEG movie)

Also, ffmpeg give: ALVR$ ffmpeg ffmpeg: symbol lookup error: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0: undefined symbol: wl_proxy_get_tag

General Troubleshooting

Environement

Hardware

Note: for Linux, an upload to the hw-probe database is preferred: hw-probe -all -upload

CPU: Ryzen 5 3600X 6-Core Processor GPU: Ellesmere [Radeon RX 580/580X/590] Audio:

Installation

ALVR Version: ALVR server v17.0.0-dev.2 SteamVR Version: 1.20.4 Install Type:

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): "Ubuntu 20.04.3 LTS"

mittorn commented 2 years ago

RX580 has VERY SLOW h.264 encoder and before 5.17 kernel it configured to work much slower (maybe even slower than software) Try encode with 265 or install git kernel version. I not tried use rx580 after polaris performance fix, so i do not know if it really would be faster in this case. For me 0.7 resolution and 80fps worked good in non-heavy games on 265 after disabling rate control (remove rc_mode option from EncodePipelineVAAPI)

mittorn commented 2 years ago

Kernel fix for h.264: https://www.phoronix.com/scan.php?page=news_item&px=AMD-VCE-Better-Speed It os not ALVR issue

Barmallini commented 2 years ago

This shots with HEVC One from Oculus (garbage), second from statistic alvr_hevc_oculus alvr_hevc

mittorn commented 2 years ago

It looks like it failed to create vaapi encode pipeline (software hevc encode seems to produce garbage on quest)

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.