-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
FPS fluctuates and drops massively when playing game #1697
Comments
No, the fps is determined on the device-side: one frame is encoded every time the device screen changes (so it's inherently variable, if you play a video at 25fps, the mirroring framerate will be 25fps, if your screen does not change, mirroring fps will be 0 fps, etc.) So if the framerate is too low, it comes from the device, which is not able (or does not need) to render/encode the screen at a higher framerate. Reducing the definition could help ( Also see #798. |
Weird, the gameplay is buttery smooth on the phone screen yet never seems to achieve 60fps on scrcpy. |
The mirroring framerate may not exceed the screen framerate, but in theory, it is possible that it's lower: the device may not be able to render a 3D game and encode the screen at full rate at the same time. Anyway, it's a limitation on the device-side (the scrcpy server encodes each frame it receives from MediaCodec and send them to the client). What if you record ( |
Will try those for troubleshooting, but I'm not trying to record. |
Does the problem only occur during game? For example, if you mirror while browsing or running simple apps, does it work better? |
Yes, other apps seem to work fine for longer periods. |
how to change the default fps to 30 or 60 |
You can limit the fps with If no limit is set, then the encoder produces (if it can) a new frame every time the screen surface changes. |
Tried using couple of different settings:
Changing renderer, smaller display size, higher bit-rate.
None help and after a while game starts chugging to no end.
Maybe unrelated but in Samsung S9 settings you can selected "USB Controlled by" and it's set to "This device" rather than connected one, is this correct setting or makes no difference?
Could this FPS issue stem from USB port or cable? Maybe if the USB port is not USB3.0 or something?
The text was updated successfully, but these errors were encountered: