-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
1 second latency, random ghost touches when playing games, lag lag lag lag #2691
Comments
How do you stream? OBS? If you run scrcpy over USB without capturing with OBS, does it lag? If you don't play a game (just do simple things like scrolling in a webpage, etc.). If it works fine, then try without OBS, but in a game. And with OBS, but not in a game. Which one is ok? In the scrcpy window, press Alt+i to log frame rate, it will print info about the frame rate every second in the console. If you record ( Does |
This is simply a performance issue. My laptop: 10yo E6420, i7 2760QM (1 single heat pipe, overheat whenever it can), 8gb ddr3 1666, ac7260 The laptop is shit, but running on lxde(on ubuntu), 5ghz wifi, 1600x900, I got 60fps constantly without drop, and latency was not very noticeable (was also running discord app in background with chrome and code-server) edit: turn on sound to hear the mouse click |
I get some lag as well, OS X 2018 macbook pro, connected via USB., FWIW.
|
How do you do that? My specs aren't that good but that's for playing new AAA games so I don't think hardware is my issue. I think the latency in the USB protocol is just too high for video streaming. For reference, I have a i7-3770, GTX 560 TI, I'm running Mint 20.3, my phone is from 2019 - a Zenfone 6 with 8 GB of RAM running Android 11, and I used a USB 3 port. Even if I limit the FPS to 10, frames I still get dropped frames regularly. When I started using the program, I was averaging 60 FPS though and now I'm averaging 50 and I have no idea why. Funny thing is previously I had more apps running on my phone and PC when I was getting 60 than when I was averaging 50 because I rebooted both my phone and PC. And I restarted scrcpy multiple times too. |
I actually haven't successfully tried scrcpy on windows, but compared to your desktop there, the laptop I which I used for scrcpy was dog shit. You should first try a ubuntu 20.04 live iso, extract it to a fat32 partition on your drive (4-5gb is prob more than enough), and select it as your boot device in bios. Upon landing on the desktop, open a terminal and
I would expect minor but noticeable latency without any kind of noticeable frame drop. If the experience is flawless, then I suspect windows is messing with scrcpy, not the hardware. |
Definitively not.
What is the output of (You should do your tests without capturing with OBS or similar.) If you record ( |
Here's the FPS read out. No idea why it's averaging 20 instead of 60 like before. 20 fps (+1 frames skipped) Here's a recording I did with scrcpy, didn't use OBS or similar. |
This is the rate as it is captured on the device, either because the rendering is at 20fps, or because the encoder could not encode frames fast enough. |
Did you miss that I said I'm running Mint 20.3? Windows is not messing with scrcpy because I'm not running Windows. The version of scrcpy does not recognize the --encoder option. I'm guessing that's because the version in apt is too old: 1.12.1. I went to the release section of this repo but there is no Linux build and the source code doesn't have a Linux build option or include Mono. I could live boot Ubuntu but I have other things going on. I just thought I'd give this a shot is all. |
?? You can build & install the latest version from sources easily: https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#simple |
Any distro is fine. You havent told us what arguments you include with your command yet.
For the record, since you are running a full fledge distro rather than a live iso, there shouldnt be anything stopping you from building the latest scrcpy and try it. |
Update: on my pixel 3a it used to have like 1.5s lag, 10 fps. 30 fps if I used the camera app. Something changed (software? I replaced the screen as well), now it's 0 fps, then 60 fps if I 'do something' (i.e. movement on the screen, the way it should be), and the keyboard input used to feel super slow, now it's super responsive. I think this was all with 1.21 and it's fast now on windows or linux hosts, so I'm happy, thanks! |
If the screen was broken/damaged, then it was probably the issue: #1285 |
I play Call of Duty: Mobile and I've decided to start streaming. Not until I give up because scrcpy wasn't working properly. Lag would greet me if I start opening the batch file, latency is horrendous like 500ms before input is sent to the PC, the thing would randomly press buttons when I'm playing (like it would shoot my gun even tho I'm not even doing anything). Overall I have a very, very bad time with scrcpy and I think I should discontinue my plans. Hoping for some tips.
The text was updated successfully, but these errors were encountered: