ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.1k stars 1.28k forks source link

Massive lag spike every 8 seconds - reproducible #374

Open craigspree opened 7 years ago

craigspree commented 7 years ago

Issue: Every 8 seconds when using Vive Home, Revive, or Advanced Settings, I experience a massive lag spike (200ms). Adding any extensions to the SteamVR dashboard when using the Vive causes network issues when SteamVR is running.

Impact: Makes all VR multiplayer virtually unusable due to intermittent lag spikes (Smashbox, Raw Data, QuiVR, etc)

Reproduction steps: (using Revive, but work with Vive Home, and Advanced Settings as well - essentially anything that adds an item to the SteamVR Dashboard)

  1. Install PingTracer for monitoring, set host to iad.valve.net (Steam's east coast game server), and click Start. You can get PingTracer here: https://pingtracer.codeplex.com/ (To rule out an issue with iad.valve.net, you can also ping Google.com if you prefer).
  2. (Ensure Revive - 1.0.4 is installed) Start SteamVR.
  3. Note that every 8 seconds you will receive a latency spike near 200ms (see the yellow bars in the graph here: http://imgur.com/J8VMiTR). This should start within 8 seconds of the Lighthouses detecting the HMD. The controllers do not need to be turned on for the lag spikes to happen.
  4. Quit SteamVR - notice the graph in PingTracer returns to normal.
  5. Uninstall Revive 1.0.4.
  6. Launch SteamVR - notice there are no more lag spikes. As you can see here, at 3:44PM I uninstalled Revive, then opened SteamVR. No more latency spikes.
  7. To make the lag spikes appear again, quit SteamVR, reinstall Revive 1.0.4, and restart SteamVR. Within 8 seconds the same lag spikes appear.

This issue has been testing my sanity for a week. I originally had a USB WiFi adapter, and thought that the network latency spike from the Vive was due to the USB WiFi adapter. Today I replaced the USB WiFi adapter, removing it completely, and installing a PCI WiFi adapter (TP-Link N900) and the same issue was happening. I stumbled onto this thread on Reddit which lead me to this solution. https://www.reddit.com/r/Vive/comments/5ctrtw/steamvr_ping_issue/

Recently reported this to the Revive devs, but they believe it is in the SteamVR software itself: https://github.com/LibreVR/Revive/issues/466

JChief commented 7 years ago

Any updates?

kendoka15 commented 7 years ago

I also get this. It seems like it should be a priority to fix but it's been a while since it popped up

dMsLT commented 7 years ago

Hello,

Any updates or timeline for this? I'm pushing back my games release as it makes it unplayable when Revive, Viveport or Advanced Settings are installed.

wickles commented 7 years ago

I have this problem on an Oculus Rift, no Vive or Revive involved. Starts when I run SteamVR, stops when I quit it. SO frustrating. My ping spikes are more like around 2000ms though.. really bad.

I have a BrosTrend Wifi adapter, ping is generally fine otherwise until I start SteamVR. I remember having this kind of issue sometimes in the past in Rec Room through the Oculus app, not through SteamVR, but I don't think I've had that issue with Oculus recently.

wickles commented 7 years ago

I read around and found that for some people the issue was related to the Vive/HTC software. After starting SteamVR I noticed some odd activity by ViveDashboard.exe in Task Manager, killed it and the problem went away immediately. Disabled 'Vive Dashboard' in the SteamVR dashboard settings, and the problem no longer appears.