alvr-org / ALVR

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

Windows: Rotaded playerspace causes massive latency spikes once app goes out of VR mode (follow-up of #2013) #2031

Open XenoPL opened 5 months ago

XenoPL commented 5 months ago

This is a follow-up report on bug #2013 Issue was observerd while running Falcon BMS on Windows 10. Once player exits game 3D world back to UI, latency meter in ALVR-streamer statistics page shows frequent game renderer latency spikes, picture in HMD is not refreshed timely, causing visual glitches on background and whole playerspace does jumps/shifts after every smallest head movement. ALVR_space_move_bug_new

Falcon BMS is a flightsim that last year got VR capability, but it still has non-VR user interface. Game starts as 2D window, once player begin actual gameplay it initiates VR mode. According to one of the devs, upon the VR init vr_compositor_->SetTrackingSpace(vr::ETrackingUniverseOrigin::TrackingUniverseSeated) is called. Once player exits game world back to ui, VR mode is closed, game is back to 2D window and then issue can be seen.

Prerequisites to reprouduce bug:

Steps to reproduce

Expected result: Picture in HMD shows app window and SteamVR background, refreshed properly, head movement tracking is smooth, playerspace stays still. ALVR-streamer statistics show fairly consistent latency with no spikes.

Actual result Picture in HMD is glitchy, and often freezes, playerspace is shifting after head movement. Streaming statistics showw massive latency spikes.

All the symptoms go away once game is closed.

Extra notes: It's possible other apps that have 2D UI and alter playerspace to recenter view are affected. Upcoming BMS 4.37.4 may change behavior as it's migrating to OpenXR from OpenVR API.

Environment

Hardware

CPU: AMD Ryzen 5 5600X GPU: Saphire Radeon 6800 (reference model) GPU Driver Version: AMD Adrenaline 24.2.1

Installation

ALVR Version: 20.6.1 and nightly 20240312 Install Type: Packaged exe and Portable (zip)

SteamVR Version: 2.3.5 and 2.4.3

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

XenoPL commented 3 months ago

Any chance somebody will look into this?