alvr-org/ALVR

SteamVR consistent stutter every n seconds on Linux

Closed this issue · 12 comments

Description

On Linux using AMD RADEON RX 7900 XTX GPU the ALVR statistics show a Game Render spike every ~3-4 seconds. Using the VR View in SteamVR I can also see the "lag" happening consistently, which makes any VR unplayable. The SteamVR charts however do not show any spikes at all, even though I can visibly see the VR view lag as I said.

Screenshot_20241213_211021
Screenshot_20241213_211033
Screenshot_20241213_211103

Please help me understand how this is happening and what can I do to fix this. I managed to get rid of this issue somehow once already, but it was after 6 hours of trial&error and I don't know how. Suddenly it just came back and I could not fix it by myself. I tried for too long already.

General Troubleshooting

  • I carefully followed the instructions in the README and successfully completed the setup wizard
  • I read the ALVR GitHub Wiki

Environment

Hardware

https://linux-hardware.org/?probe=329e4898cd

Installation

ALVR Version: 20.8.1 (for PhoneVR compatibility)

ALVR Settings File: What is the location or how do I export it?

SteamVR Version: 2.8.8

Install Type:

  • Packaged (exe, deb, rpm, etc)
  • Portable (zip)
  • Source

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): Mageia 9

Vixea commented

make sure to read the wiki, set the corectrl power profile to vr, if you use slimevr please use the correct startup process

I usually have my GPU on "Do not control" in CoreCtrl. I actually tried setting it to "Advanced" > "Power profile: Virtual Reality" but it didn't make any difference. The consistent stutter kept on happening.

Vixea commented

can I see your settings.json file

Sure, just please tell me where it is located or how can I export it.

Vixea commented

.config/alvr

session.json is the only file in that folder

Vixea commented

Could you show me a picture of the WiFi spectrum in your house using something like Wifiman or WiFi analyzer

Sure, here you go:
photo_3_2024-12-15_12-41-27
photo_1_2024-12-15_12-41-27
photo_2_2024-12-15_12-41-27

I have TP-LINK OneMesh, so you see the same AP twice.

Vixea commented

Ahh yea alvr doesn't like mesh networks or it might be the other way around either way not good

Vixea commented

Either way the underlying issue is probably channel contention when another device requires the use of that spectrum

Well, I don't understand how a network can affect the GPU in the VR screen literally lagging but either way, I tried turning off OneMesh and the problem disappeared...

I don't think the OneMesh caused the issue since after that, I re-enabled it again, and the problem has not appeared again so far. So it probably was something else, and completely restarting the 5Ghz interface (which enabling/disabling OneMesh does) resolved it.

Screenshot_20241216_221119

I also tried enabling Airtime Fairness on my router, which I think helped out a little bit. (?)

Anyway, I'm closing this, since it seems more like a hardware issue than a software one. I still don't know how a network contention can freeze frames in a 3D application on the Streamer PC but I guess I'll never know 😄

Cheers for the fast replies @Vixea

Vixea commented

Yea np