ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
917 stars 45 forks source link

[PERF] Extreme reprojection and frame dropping. #613

Open NewtSoup opened 11 months ago

NewtSoup commented 11 months ago

Describe the bug Since the introduction of Steam VR 1.27 Major Update I have been experiencing massive latency and reprojection in the headseat to the point where most VR games are now unplayable. The Steam VR performance graph reads 28.9 of 11.2 ( I am running my headset at 90hz )

To Reproduce Steps to reproduce the behavior:

  1. Go to the steam icon in the taskbar
  2. Click on the icon and select steam vr
  3. Start any VR game
  4. See image ghosting in game and the feeling of it runnint at very low fps when it's not and experience lagging view update when you turn your head. Moving hands or visible weapons is smooth. I have tested in both Fedora and Ubuntu and experience the same issue.

Expected behavior Was hoping the Major Update would improve issues ( though one issue HAS been cured - I no longer get a system lock up in Subnautica at the North Island.

System Information (please complete the following information):

Performance Data (optional, but very helpful):

Screenshots Screenshot of VR Performance graph showing 29 of 11.1 ms for Fallout 4. The effect cannot be captured on video because while the headset display has poor performance the on screen display is smooth. https://i.imgur.com/qyGVdGQ.png

Additional context I was getting very acceptable performance in 1.26 apart from random lockups that would require a system reset to recover from. The system lock up was reliably reproduced by visiting the north island in subnautica while playing in VR. The latest 1.27 version of Steam VR seems to have fixed the issue as I can visit the north island now but the game is not playable for more than 5 minutes due to the performance issues introduced by 1.27. I have tested the performance in both Fedora ( Nobara ) and Ubuntu and the issues are present in both OS.

As an interim measure for those users experiencing these problems ( the Steam Discussion is full of complaints ) could we perhaps have the option to roll back to 1.26 under the "Beta's" tab for Steam VR? Indeed could the option to roll back a version or two be "a thing" moving forward?

Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" and "Perf Data" sections in their replies.

NewtSoup commented 11 months ago

Poor performance is also present in Steam VR Beta 2.0

VRcontrib commented 11 months ago

I'm having the same issue.

NewtSoup commented 11 months ago

The following command has improved things a little for me:

echo "high" | sudo tee /sys/class/drm/card1/device/power_dpm_force_performance_level

Depending on your system card1 may be card0 or perhaps even card2. For me it's card1 because I have an Intel system and card0 is the onboard GPU ( I think that's why ).

This forces the GPU into high power mode and makes UltraWings 2 smooth again 8.9/11ms

It brings FO4VR down to 14.9/11ms which is smoother but still has a lot of reprojection and is not really playable.

This command needs issuing after every boot unless you use a udev rule to make it permanent.

VRcontrib commented 11 months ago

Thank you for your response!

I'm getting Permission Denied even when using sudo with the command, so I assume my card doesn't support that, unfortunately. Do you have any other ideas on how that would be done with other cards? How did you figure out that you should do that in the first place?

NewtSoup commented 11 months ago

Thank you for your response!

I'm getting Permission Denied even when using sudo with the command, so I assume my card doesn't support that, unfortunately. Do you have any other ideas on how that would be done with other cards? How did you figure out that you should do that in the first place?

try doing sudo -i on it's own first then run the command. It's likely a permission issue with the shell.

I had help in finding out what to do.

Taiko2k commented 10 months ago

Also having the issue. Since SteamVR 1.27 there's a double vision effect any time re-projection kicks in.

NewtSoup commented 10 months ago

Having switched to the steam client beta and steam vr beta I can confirm that poor performance is still present in Beta 2.02.

razgrim commented 10 months ago

Only just got my headset so can't confirm this is NEW issue, but It's playable, but it isn't enjoyable. Default, headset powered on, dark mountain range no problems. Soon as any VR app is loaded (the ones that do), Turning head becomes jumpy slideshow like the image is shimmying or something. Very rough start with a big purchase.

Re-installed everything fresh OS up, to clear up possible issues. Valve Index, updated Manjaro latest fresh install, kernel 6.5.5-1 Everything updated to latest AMD Radeon RX 6700 XT AMD Ryzen 7 2700X 32GB RAM

It ain't hardware brudda

Tried doing a manual downgrade to SteamVR 1.26.7 but doesn't appear to be trivial, missed something because that vers wasn't recognizing headset. Would love a proper "beta" menu option for 1.26.

NewtSoup commented 10 months ago

Only just got my headset so can't confirm this is NEW issue, but It's playable, but it isn't enjoyable. Default, headset powered on, dark mountain range no problems. Soon as any VR app is loaded (the ones that do), Turning head becomes jumpy slideshow like the image is shimmying or something. Very rough start with a big purchase.

Re-installed everything fresh OS up, to clear up possible issues. Valve Index, updated Manjaro latest fresh install, kernel 6.5.5-1 Everything updated to latest AMD Radeon RX 6700 XT AMD Ryzen 7 2700X 32GB RAM

It ain't hardware brudda

Tried doing a manual downgrade to SteamVR 1.26.7 but doesn't appear to be trivial, missed something because that vers wasn't recognizing headset. Would love a proper "beta" menu option for 1.26.

No, it's not hardware. Mine behaves fine in Windows. It's the janky linux drivers that are being released untested. It would be great if Steam VR for Linux were made open source so that the community could contribute. Or at least the Valve Index telemetry data so that an open source Open XR driver for the headset. could be implemented.

NewtSoup commented 9 months ago

Update: 2.0.10

With this update I am seeing some improvement! It's still not back to the performance it was in 1.26 but I now see the new interface and the frame timings are mostly within the 11.1ms @ 90hz.

All of the above games worked "As Expected" with only Fallout 4 VR in the "Playable" category at 1.26 - But even that looked nice, sometimes I would get double vision but then restarting Steam VR would usually fix it.

Can anyone explain what the magenta bars mean? Someone told me they are CPU late starts but I still don't know if that's correct or what it actually means in terms of performance.

dagelf commented 4 months ago

I changed my window manager to icewm and closed my browser and all the dropping went away. Went from unusable to perfect.