Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic freezes #5544

Open
anta999 opened this issue Nov 27, 2024 · 5 comments
Open

Periodic freezes #5544

anta999 opened this issue Nov 27, 2024 · 5 comments

Comments

@anta999
Copy link

anta999 commented Nov 27, 2024

Environment

  • **OS:**Debian testing
  • Scrcpy version: last from github
  • Installation method: manual build
  • Device model: XIAOMI POCO X3
  • Android version: 13

Describe the bug

There are periodic freezes for a long time, and quite often. This is very annoying. It unfreezes in about 10-15 seconds or the connection drops

INFO: ADB device found:
INFO:     --> (tcpip)  192.168.0.76:5555               device  M2102J20SG
INFO: Device already connected via TCP/IP: 192.168.0.76:5555
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 174.7 MB/s (90224 bytes in 0.000s)
[server] INFO: Device: [Xiaomi] POCO M2102J20SG (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 560.35.03
INFO: Trilinear filtering enabled
INFO: Texture: 1080x2400
INFO: Device clipboard copied
@rom1v
Copy link
Collaborator

rom1v commented Nov 27, 2024

Does it happen over USB?

Probably the "expected" head-of-line blocking of TCP, when network packets are lost. Over TCP/IP, try to reduce the bit rate:

scrcpy -m1024 -b 4M

@anta999
Copy link
Author

anta999 commented Nov 27, 2024

Does it happen over USB?

Probably the "expected" head-of-line blocking of TCP, when network packets are lost. Over TCP/IP, try to reduce the bit rate:

scrcpy -m1024 -b 4M

It has become better - thanks.

@anta999
Copy link
Author

anta999 commented Nov 27, 2024

As soon as there is not enough bandwidth, it freezes and takes a very long time to recover. Is there such a problem?

@rom1v
Copy link
Collaborator

rom1v commented Nov 27, 2024

Over wifi, this is expected: https://en.wikipedia.org/wiki/Head-of-line_blocking

Scrcpy just transmits the whole stream over TCP over adb, it never attempts to drop network packets. It is designed to work locally over USB, the wireless mode is just a by-product of using adb, but scrcpy is not tailored for this use case. It assumes the connection is reliable.

@anta999
Copy link
Author

anta999 commented Nov 27, 2024

Over wifi, this is expected: https://en.wikipedia.org/wiki/Head-of-line_blocking

Scrcpy just transmits the whole stream over TCP over adb, it never attempts to drop network packets. It is designed to work locally over USB, the wireless mode is just a by-product of using adb, but scrcpy is not tailored for this use case. It assumes the connection is reliable.

Got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants