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

How did your program achieve such fast response time? #3988

Closed
Titlehhhh opened this issue May 9, 2023 · 4 comments
Closed

How did your program achieve such fast response time? #3988

Titlehhhh opened this issue May 9, 2023 · 4 comments

Comments

@Titlehhhh
Copy link

Hello,

I noticed that when using your Scrcpy program, the interaction with the Android device through ADB is very fast, without any noticeable delays. I'm using the AdvancedSharpAdbClient library in my C# project to interact with an Android device through ADB, but I've noticed a significant delay and not as much responsiveness as in Scrcpy.

I would like to know how your program achieved such a fast response time and responsiveness when working with an Android device through ADB. I would be grateful if you could share your knowledge and experience in this area and offer any recommendations or advice for optimizing the ADB interaction in my project using the AdvancedSharpAdbClient library.

@Titlehhhh
Copy link
Author

I don't have to broadcast the video. Clicks and swipes are enough.

@rom1v
Copy link
Collaborator

rom1v commented May 9, 2023

See #231 (comment)

@Titlehhhh
Copy link
Author

What if I implement the ADB protocol to communicate with the device directly from my c# application without any servers, will I be able to get the lowest response?

@rom1v
Copy link
Collaborator

rom1v commented May 9, 2023

Input injection is not part of the adb protocol. If you execute adb shell input …, then you're just executing the command input from adb shell, with the performance issues mentioned in my comment.

So you have to implement some server code running on the device with shell permissions, that you run once and communicate the commands over a socket.

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