Radeon-ReLive-VR icon indicating copy to clipboard operation
Radeon-ReLive-VR copied to clipboard

High latency issue

Open Koreldro opened this issue 1 year ago • 14 comments

I tried Relive VR and it works, well sort of... My issue is high latency. My internet is very great, in the past i was using Virtual Desktop Software, which allowed me to play PCVR games and it worked great. Later i wanted to try this ReLive VR and first issue i was facing, was very high latency, when i move the controllers they react after few seconds. And performance is terrible. I really need help on this issue, i am using RX580 and i have never received such issues on other PCVR softwares. (Oculus Quest 2)

Koreldro avatar May 10 '23 16:05 Koreldro

Please send the updated AMDWirelessVR.log captured while streaming for a 30-40 sec or so. Also attach your settings.json file from %LOCALAPPDATA%\AMD\OpenVR\settings (%LOCALAPPDATA% would translate to c:\Users<your user name>\AppData\Local).

RX580 is a fairly old card, the encoder performance was quite limited on them compared to what you'd get on the 4-digit series (RX5x00-RX7x00), so I'd suggest HEVC for the codec, 1440x1440 encoder resolution (per eye), enable non-linear scaling.

Also very important - make sure you connect to the 5GHz WiFi. Some people set the same SSID for 2.4GHz and 5GHz and I've seen routers that did that by default, then you don't really know which one you're actually connected to, so make sure to make them different and explicitly connect to the 5GHz one. Your internet connection doesn't matter because you're streaming over the local network, not the Internet.

GennadiyAMD avatar May 10 '23 17:05 GennadiyAMD

AMDWirelessVR.log I noticed that controllers are little bit moved to the front, rather than being in place like normal oculus controllers. Also whenever i turn i see black bars on the right eye, and framerate is very low. I used to play PCVR but i have never had such performance like this.

Koreldro avatar May 11 '23 13:05 Koreldro

any solutions? also settings.json settings.txt.txt

Koreldro avatar May 11 '23 16:05 Koreldro

@Koreldro - you're streaming over TCP according to settings.json you attached. Have you tried UDP, which is the default, btw?

GennadiyAMD avatar May 11 '23 17:05 GennadiyAMD

@GennadiyAMD, I heard that VD uses TCP so i decided to try it, UDP was kind of laggy, but i haven't tried it with new settings i attached recently.

Koreldro avatar May 11 '23 18:05 Koreldro

TCP is a curse and a blessing at the same time because it waits for the acknowledgement of each packet before sending the next one, so it can add to the latency. We default to UDP because it performs better most of the time.

GennadiyAMD avatar May 11 '23 21:05 GennadiyAMD

@Koreldro - which version of the driver are you using?

GennadiyAMD avatar May 11 '23 21:05 GennadiyAMD

I'm sure that I am using a latest AMD driver, and Relive VR 2.0

Koreldro avatar May 12 '23 04:05 Koreldro

@GennadiyAMD, I tried UDP and TCP, both of them are terrible. When i turn, i have huge latency issues, when i move my controllers, they are around 1 second late, when i turn slightly, i see black bars....

Koreldro avatar May 12 '23 13:05 Koreldro

@Koreldro - as an experiment, could you try the old client (1.0.26) . I honestly don't think it would, but just to rule out any issues on the client side.

GennadiyAMD avatar May 12 '23 14:05 GennadiyAMD

I tried it and the results are better than before, but i still keep seeing black bars, this time below me, and corners as well. Later today I played via AirLink and had no issues so far, i believe it is something with the app itself.

Koreldro avatar May 12 '23 16:05 Koreldro

@Koreldro - are you seeing this with some specific content or anywhere including SteamVR Home? I've just tried the latest public driver (23.4.3) on an RX470, which is pretty much the same as your RX580 and not seeing any issues. But I am seeing some strange numbers in the log you provided, so would like to investigate further.

Since we can't reproduce this on our side, I'll have to ask you for a small favor. I need to collect another log from your system to get more insight, if you don't mind spending 10 minutes collecting it, it would be great. Here's what I would like to ask you to do:

  1. Download Windows SDK installer from Microsoft. This would download the installer called winsdksetup.exe.
  2. Run the downloaded file, keep clicking Next until you get to the screen where you select different components to install. Uncheck them all except for the very first one (Windows Performance Toolkit). Install this component. After the installation is completed, you will find the following new folder: c:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview
  3. Open a terminal window as administrator: type 'cmd' in the Search box on the Windows toolbar as click on "run as administrator" in the window that appears. This will open a terminal window.
  4. In that terminal window type "cd c:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview" and press Enter.
  5. Start SteamVR, connect the headset to Relive VR so that you see the image in the headset. Then lift the headset up so that you could see the monitor, but the headset still thinks that it's on your head (you can cover the small window between the lenses of the headset with your finger)
  6. In the terminal window type "log" and press Enter. Let the log command start until it ends with the prompt again. Count to 5, then press the arrow UP key to repeat the last command (or type "log" again) and press Enter.
  7. Once you see the prompt again, a file called Merged.etl will be created in the gpuview folder. Zip it with your favorite archiver and upload it to our Dropbox. Please let me know when it's there. Also please add the AMDWirelessVR.log from the same run as well.

Thanks a lot in advance.

GennadiyAMD avatar May 15 '23 22:05 GennadiyAMD

I will try it late this week or month, I have a very busy schedule. I hope i'm not wasting your time and i really appreciate your help

2023-05-16, an, 01:15 Gennadiy_AMD @.***> rašė:

@Koreldro https://github.com/Koreldro - are you seeing this with some specific content or anywhere including SteamVR Home? I've just tried the latest public driver (23.4.3) on an RX470, which is pretty much the same as your RX580 and not seeing any issues. But I am seeing some strange numbers in the log you provided, so would like to investigate further.

Since we can't reproduce this on our side, I'll have to ask you for a small favor. I need to collect another log from your system to get more insight, if you don't mind spending 10 minutes collecting it, it would be great. Here's what I would like to ask you to do:

  1. Download Windows SDK installer from Microsoft https://go.microsoft.com/fwlink/?linkid=2164145. This would download the installer called winsdksetup.exe.
  2. Run the downloaded file, keep clicking Next until you get to the screen where you select different components to install. Uncheck them all except for the very first one (Windows Performance Toolkit). Install this component. After the installation is completed, you will find the following new folder: c:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview
  3. Open a terminal window as administrator: type 'cmd' in the Search box on the Windows toolbar as click on "run as administrator" in the window that appears. This will open a terminal window.
  4. In that terminal window type "cd c:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview" and press Enter.
  5. Start SteamVR, connect the headset to Relive VR so that you see the image in the headset. Then lift the headset up so that you could see the monitor, but the headset still thinks that it's on your head (you can cover the small window between the lenses of the headset with your finger)
  6. In the terminal window type "log" and press Enter. Let the log command start until it ends with the prompt again. Count to 5, then press the arrow UP key to repeat the last command (or type "log" again) and press Enter.
  7. Once you see the prompt again, a file called Merged.etl will be created in the gpuview folder. Zip it with your favorite archiver and upload it to our Dropbox https://www.dropbox.com/scl/fo/l33yhd8j6kpsr73fgtldq/h?dl=0&rlkey=yr3k65r7av8yk0p0pwim7s05j. Please let me know when it's there. Also please add the AMDWirelessVR.log from the same run as well.

Thanks a lot in advance.

— Reply to this email directly, view it on GitHub https://github.com/GPUOpen-LibrariesAndSDKs/Radeon-ReLive-VR/issues/140#issuecomment-1548685295, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7XUCBD32LMQJYKGQMOEH3DXGKTHPANCNFSM6AAAAAAX47G56A . You are receiving this because you were mentioned.Message ID: @.*** com>

Koreldro avatar May 16 '23 15:05 Koreldro

@Koreldro, no worries, you're not wasting anyone's time. Clearly there's a problem somewhere and it needs to be fixed.

Appreciate your help with this too!

GennadiyAMD avatar May 16 '23 18:05 GennadiyAMD