Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.56k stars 10.69k forks source link

Wireless major frame drops and latency #1089

Open r3dd09 opened 4 years ago

r3dd09 commented 4 years ago

On a note 9. when I'm connected USB, it's delayed a bit more than the standard 70-100ms. That's fine, would like it to be better, but when I swap to wireless, it's horrible. 10-20 second delay.

rom1v commented 4 years ago

On a note 9. when I'm connected USB, it's delayed a bit more than the standard 70-100ms.

Which definition/resolution?

but when I swap to wireless, it's horrible. 10-20 second delay.

The reason is probably that your real network throughput over TCP is inferior to the video stream bitrate. Try with a lower bitrate (and definition):

scrcpy -m1024 -b2M

Moreover, if you experience packet loss on your network, the whole stream will be blocked until the lost packets are retransmitted (due to TCP Head-of-line blocking).