Open MiloMindbender opened 2 years ago
One update, I tried the same setup with a Google Pixel 6 and it works fine.
If the wifi is too slow (due to device chipset, device ROM, wifi router, etc.), then perfs will be awful, this is "expected" (scrcpy communication is over TCP, it will never drop a packet or reduce bitrate automatically, it is intended to work over USB, and it also happens to work over TCP/IP when the network is good, but is not designed to work on poor networks.
You could reduce the bitrate/definition (scrcpy -m1024 -b2M
).
These command solved my problem on Oppo Reno 5
scrcpy --bit-rate 2M --max-fps 15 --max-size 960
Environment
Describe the bug I had been using SCRCPY for awhile and it was very fast on USB or WiFi. Had to replace my wifi gateway with a newer one. New gateway has all the same settings as the old and all other software works normally on it.
SCRCPY runs same as before when USB connected, but when used over WiFi it is very slow, simple android menu updates taking up to a minute now. Have checked all the wifi settings and they look normal, no weird routing, no parental controlls, traffic shaping...etc.
USB run looks like this C:\Users\gcorson\Downloads\scrcpy-win64-v1.23>scrcpy scrcpy 1.23 https://github.com/Genymobile/scrcpy C:\Users\gcorson\Downloads\scrcpy-win64-v1.23\scrcpy-serve... file pushed, 0 skipped. 86.1 MB/s (41123 bytes in 0.000s) [server] INFO: Device: QUALCOMM DevKit (Android 8.1.0) INFO: Renderer: direct3d INFO: Initial texture: 1440x2560
Wifi setup adb tcpip 5555 disconnect device USB cable adb connect 10.0.0.221:5555
C:\Users\gcorson\Downloads\scrcpy-win64-v1.23>scrcpy scrcpy 1.23 https://github.com/Genymobile/scrcpy C:\Users\gcorson\Downloads\scrcpy-win64-v1.23\scrcpy-serve... file pushed, 0 skipped. 88.3 MB/s (41123 bytes in 0.000s) adb.exe: error: more than one device/emulator ERROR: "adb reverse" returned with value 1 WARN: 'adb reverse' failed, fallback to 'adb forward' [server] INFO: Device: QUALCOMM DevKit (Android 8.1.0) INFO: Renderer: direct3d INFO: Initial texture: 1440x2560
Note that adb devices shows only one device at this point
I don't see any errors, scrcpy runs normally but is just hugely slow taking a minute to update the screen
This is NOT a problem on the wifi at my office and was not a problem on my wifi at home before the access point was replaced.
The connection to the device is a 5ghz one and the router and device are within a few feet of each other.
Obviously it's something related to the new WiFi, but what??? Any ideas on how to debug it?