GPUOpen-LibrariesAndSDKs / Radeon-ReLive-VR

156 stars 19 forks source link

High latency issue #140

Open Koreldro opened 1 year ago

Koreldro commented 1 year ago

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)

GennadiyAMD commented 1 year ago

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\\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.

Koreldro commented 1 year ago

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 commented 1 year ago

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

GennadiyAMD commented 1 year ago

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

Koreldro commented 1 year ago

@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.

GennadiyAMD commented 1 year ago

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 commented 1 year ago

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

Koreldro commented 1 year ago

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

Koreldro commented 1 year ago

@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....

GennadiyAMD commented 1 year ago

@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.

Koreldro commented 1 year ago

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.

GennadiyAMD commented 1 year ago

@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.

Koreldro commented 1 year ago

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>

GennadiyAMD commented 1 year ago

@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!