Mirror icon indicating copy to clipboard operation
Mirror copied to clipboard

Android delay communication

Open NicolasBegin opened this issue 4 years ago • 4 comments

We use Mirror to commnicate between a Linux server and clients. Everything works good with windows and mac, but with android we have more than 5 seconds delay (client -> server or server -> client) and sometimes it feels like the message is not sent.

We tried the last package on the Asset Store and the last one on GitHub Release and before the update everything was ok with Android. Previous version was 40.0.9

Did someone has any idea ?

NicolasBegin avatar Jul 20 '21 08:07 NicolasBegin

You'll need to give us more details. We're not really able to help in detail based on this limited information. What is your versions of Unity and what is your Android devices? Are you testing in high-latency environment like 3G/4G to a server or locally inside a LAN via WiFi?

What are you sending? Did you change anything since you imported the latest Mirror version? Or did you just apply it over the top?

SoftwareGuy avatar Jul 20 '21 09:07 SoftwareGuy

Hi :)

  • The Unity Version is 2019.4.18
  • Devices are Oculus GO and Oculus Quest
  • We use wifi to access distant environnement (we never had more than 1 second latency)
  • We send messages with short string, bool or int as parameter
  • We just made the update and a new build without any change in the project

NicolasBegin avatar Jul 20 '21 09:07 NicolasBegin

Is the WiFi lossy, in the sense that packets go missing or there's lag with other games/apps on the headsets?

How complicated is the network structure? See the following examples:

1) Server <- Ethernet -> Wireless Access Point/Router <- WiFi ->  VR Devices
- All devices are in the same IP subnet, such as 192.168.10.x
2) Server <- WiFi -> Wireless Access Point/Router <- WiFi -> VR Devices
- All devices are in the same IP subnet, such as 192.168.10.x
3) Server <- Ethernet/WiFi -> Wireless Access Point/Router 1 <-> Wireless Access Point/Router 2 or WiFi Range Booster/Extender <-> VR Devices
- All devices are in the same IP subnet, such as 192.168.10.x OR 
- Wireless Access Point 1 is 192.168.10.x and AP 2 is 192.168.11.x

Using a server over a wireless connection is not recommended for reliable testing. Consider using Ethernet connection on the server to the device that is providing wireless signal to the VR units.

EDIT: I ask this to help eliminate double NAT environment questions where one network is on a different subnet than the one on the server, so the routing device (Wireless Router/AP) has to do translation so it can communicate upstream.

SoftwareGuy avatar Jul 20 '21 09:07 SoftwareGuy

Do you have debug log output on android showing? Is it getting any messages to hint that somethings not working as intended ?

JesusLuvsYooh avatar Jul 20 '21 09:07 JesusLuvsYooh

Closing for lack of response...reopen if new information becomes available.

MrGadget1024 avatar Nov 24 '22 12:11 MrGadget1024