-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
severe lag and low FPS when using scrcpy, #5676
Comments
Could you post the full output with Is the physical screen broken/unplugged? If you record ( There are a lot of errors flooding your logs:
Possibly related. Did you try to upgrade your device system (if possible)? |
I have attached the output with the
Yes, the physical screen of my device is partially broken. A part of the touch functionality and display is still working, but there are some areas that are damaged. Despite this, the screen is still partially functional.
I tested recording using the command
InputPolicyFlags without permission ACCESS_SURFACE_FLINGER. Possibly related.
Yes, my device is up to date. The system is running the latest available update and there are no further updates available at this time. |
Ok, does
So all the frame are captured correctly, but not provided immediately (due to blocking vsync issues probably since the screen is damaged). |
Im using |
OK. The cause is definitely the damaged screen. On some devices, it has been reported that turning the screen off totally resolved the problem with damaged screen, but on other it had no impact. No luck. Out of curiosity, does enabling an OpenGL filter change anything? For example, add |
I tested the command with --angle=10 using the following parameters:
I tried also to desactivate control with :
I got this results :
Thank you for your assistance !! |
Environment
OS: Windows 10
Scrcpy version: 3.1
Installation method: Windows release
Device model: Samsung Galaxy S10+ (SM-G975F)
Android version: 12
Hardware and setup:
I am using a USB connection with a high-quality cable.
Tested on USB 3.0 and 2.0 ports.
My PC has a good GPU/CPU, and the drivers are up to date.
I already have others devices, everything work well ( tested on 12 devices) so the issue seems specific to this device, as other phones perform better on the same PC setup.
Describe the bug
I am experiencing severe lag and low FPS when using scrcpy, even with reduced resolution, lower frame rate, and no audio. Despite trying different configurations and encoders, the FPS frequently drops below 10, and the stream is often choppy or freezes entirely.
Commands tested:
****Here are some of the commands I used to troubleshoot:
Using the default encoder:
Result: Low FPS (~5–15 fps with frame skips).
Testing a software encoder:
Result: Similar lag, with FPS dropping below 10 frequently.
Testing a hardware encoder:
Result: Severe lag with fluctuating FPS (~2–17 fps).
logcat_errors.txt
Additional options:
Tried --render-driver=opengl and --render-driver=vulkan, but no significant improvement.
Added --no-control to reduce input handling overhead.
Reduced bitrate (--bit-rate 2M) and resolution (-m640), but the issue persists.
I provide adb logcat logs for further debugging.
Could you provide insights or suggest other steps to debug this problem?
Thank you soo much for your help
The text was updated successfully, but these errors were encountered: