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

High Latency #2537

Open
GodDagon opened this issue Jul 31, 2021 · 9 comments
Open

High Latency #2537

GodDagon opened this issue Jul 31, 2021 · 9 comments

Comments

@GodDagon
Copy link

I am using scrcpy v1.18 in windows and Android 10.
I am getting a high delay in this build, in previous build it was good but in this build I am not able to use scrcpy sir to high latency.

@rom1v
Copy link
Collaborator

rom1v commented Jul 31, 2021

Probably not related to a difference with older scrcpy version. Could you try an older version now and confirm that it works fine?

If not, try rebooting your device and/or computer.

@GodDagon
Copy link
Author

GodDagon commented Jul 31, 2021 via email

@GodDagon
Copy link
Author

GodDagon commented Aug 1, 2021

I tried both v1.17 and v1.18 and got a delay of 1-2 sec in v1.17 and it's 4-5 sec in v1.18.

@rom1v
Copy link
Collaborator

rom1v commented Aug 1, 2021

1 or 2 seconds of delay is totally broken. You should never get more than 100ms (which is already bad).

You probably have an issue with your graphics drivers.

Is the stream just delayed, or also stuttering/low fps?

What if you record then play the file?

scrcpy --record file.mp4

@GodDagon
Copy link
Author

GodDagon commented Aug 1, 2021 via email

@rom1v
Copy link
Collaborator

rom1v commented Aug 1, 2021

Is it over USB?

Here is the latency you should expect: https://www.youtube.com/watch?v=LLpcLB0QlJg

This was captured with scrcpy v1.1 in 2018.

The latency has still been improved since then, by #646. And newer devices also have a lower latency (their hardware encoder is more efficient).

@GodDagon
Copy link
Author

GodDagon commented Aug 1, 2021 via email

@vineet-codes256
Copy link

vineet-codes256 commented May 29, 2022

I am also facing the same issue. huge latency (about 10 secs on usb and 13 secs on tcpip) when I mirror at 1080p on windows 11, but latency lowers at lower resolutions e.g. 480p but the quality is too low.
I have a secondary laptop with lesser specs running on Ubuntu LTS 22.0.4 and everything works really smooth there even at higher resolutions.
image

edit: It is not just a delay, it is also skipping frames.
Could it be the renderer? Because touch/key response still works with low latency even when the screen render is almost 10 secs behind(I hope you get it).

@rom1v
Copy link
Collaborator

rom1v commented May 29, 2022

Over USB?

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

3 participants