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

For some reason i cant set up scrcpy to 60 fps #1443

Closed
komantis opened this issue May 28, 2020 · 8 comments
Closed

For some reason i cant set up scrcpy to 60 fps #1443

komantis opened this issue May 28, 2020 · 8 comments

Comments

@komantis
Copy link

I have no idea about coding etc and the phone that i am using is pocophone f1 a pretty powerfull phone in order to stream pokemon go for some reason i just cant have scrcpy record my gameplay at 60 fps while the game is not 60 it is def more than that.
How do i get it to 60 do i need to change anything from my phone? do i need to type anything to cmd?
thanks in advance

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

When the scrcpy window is open, press Ctrl+i, it will enable framerate logs in the console. What numbers do you get?

If you scrcpy --record file.mkv then play the file, is it more laggy than the device itself?

@komantis
Copy link
Author

When the scrcpy window is open, press Ctrl+i, it will enable framerate logs in the console. What numbers do you get?

If you scrcpy --record file.mkv then play the file, is it more laggy than the device itself?

mostly i get 28-32 with an average of 30

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

Then I guess your games runs at 30fps on the device (MediaCodec encodes a new frame whenever the surface changes).

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

Ref #600

@komantis
Copy link
Author

but while looking at it on my pc the game looks not good while on my phone it looks smoother and def not the same fps also i read that and i dont think this is the same thing is there a way to say to scrcpy to draw or to force it to 60 fps?

@rom1v
Copy link
Collaborator

rom1v commented May 28, 2020

When you record with scrcpy --record file.mkv and play the file with VLC, is it laggy?

@komantis
Copy link
Author

komantis commented May 28, 2020

INFO: scrcpy 1.14 <https://github.com/Genymobile/scrcpy>
C:\Users\komantis\Downloads\scrcpy-win64-v1.14\scrcpy-serv... file pushed, 0 skipped. 72.4 MB/s (33142 bytes in 0.000s)
[server] INFO: Device: Xiaomi POCOPHONE F1 (Android 10)
INFO: Created renderer: direct3d
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2240
ERROR: SDL failed to get a vertex buffer for this Direct3D 9 rendering batch!
ERROR: Dropping back to a slower method.
ERROR: This might be a brief hiccup, but if performance is bad, this is probably why.
ERROR: This error will not be logged again for this renderer.

also i get this every timei open the program also i have no idea how to record with it

@ctjose13
Copy link

ctjose13 commented May 29, 2020

How are you.
I also have this smartphone

Device: Xiaomi POCO F1 [beryllium]
Region : Global
Software version : MIUI v11.0.8.0.QEJMIXM
Android OS : 10

  • 1, I recommend that you have the latest version of the software.

    1. Verify that your video card drivers are up to date.

(this is to take advantage of using it with OpenGL).

    1. I recommend that you configure scrcpy to use your high-performance GPU. How? write in the windows search engine: "graphic elements configuration" and add the scrcpy application and set it to "High Performance.

And this why? There is a Laptop (plus those that have AMD) that have more than 1 GPU (The Integrated and A Dedicated). The dedicated one has the best performance, but this is something that Windows configures based on the battery charge level and settings in energy saving.

    1. The pocophone does not have a high transfer rate through USB. It only uses one protocol and hardware to operate and certify qualcomm chargers. (that's why its low cost of sale).
    1. I recommend using Game Turbo to prevent the energy control system from decreasing the performance of the game.
    1. I recommend you switch to rendering with OpenGL, since in real tests with Xiaomi, it offers better quality and fluidity. Direct3D its performance is very low.

Based on all that, the configuration and commands I use are the following:

scrcpy --max-size 1024 --bit-rate 15M --max-fps 30 --render-driver=opengl

I use this to send my content to the PC and redirect it to OBS Studio.
I do not use the highest quality, as that influences the delay. And to balance that, I use a 15M bitrate and to avoid delays or frame drop, I make stable use of 30FPS

Excuse my bad English (I speak Spanish)

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