Random P2P stuttering when Android device is running on batteries.

mirillis

Administrator
Staff member
Hello,

If anyone is experiencing random video/mouse stuttering on Android devices (after connecting via P2P on batteries) this is caused by automatic Wifi/LTE module sleep (when there is very low transfer). In old Android releases it was possible to enter Wifi settings and disable automatic Wifi "sleep".
Unfortunately it is no longer possible and even when we use a special "Low Delay" mode for Wifi device it is not perfect.

In more detail the problem is not occurring during Relay/TCP connection when each IP packet receives an acknowledgment from the server.
In P2P/UDP connecting acknowledgements are not present and this is where the "optimizations" start to work.
When the Android device tries to send (for example) mouse/keyboard data to the server, this data is buffered for some time and send with a delay (thus is looks like stuttering). So even if we try to send mouse data 60 times during one second in equal intervals of 16ms this can take up to... 200ms.

The only fix for this is either entering game mode (increases data transfer by entering constant framerate and disabling adaptive framerate) or connecting the device to a power source :(

We hope this clarifies the inconvenience.
 
Top