scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Is there any way I could make the frametime more smooth ?

Open Jaxx6 opened this issue 1 year ago • 5 comments

Is there any way I could make the frametime more smooth ? I used an app and I noticed when I cap the FPS of the mirroring at either 60 or 30 , the frametime is all over the place and its not smooth.

Jaxx6 avatar Feb 03 '24 09:02 Jaxx6

Don't cap the frame rate.

Run scrcpy --print-fps, what is the output?

Please also read the note about the frame rate: https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#frame-rate

The frame rate is intrinsically variable: a new frame is produced only when the screen content changes. For example, if you play a fullscreen video at 24fps on your device, you should not get more than 24 frames per second in scrcpy.

rom1v avatar Feb 03 '24 10:02 rom1v

I don't know how to use commands as the one u told me to use before , but I use an app and it shows me that the fps is not constant and yes , I just read the note now about the framerate but I still don't understand why the framerate is not at 60 fps if the content on the screen is 60 or when I'm just in the home page of the phone .

Jaxx6 avatar Feb 03 '24 15:02 Jaxx6

I don't know how to use commands as the one u told me to use before

For Windows, read: https://github.com/Genymobile/scrcpy/blob/master/doc/windows.md#run

rom1v avatar Feb 03 '24 15:02 rom1v

My framerate goes from 0-83 in the home menu ( my screen refreshrate is of 120 Hz ) and once i had a frameskip too ( I used the command u mentioned above )

Jaxx6 avatar Feb 04 '24 13:02 Jaxx6

My framerate goes from 0-83 in the home menu ( my screen refreshrate is of 120 Hz )

This does not look incorrect, even if your screen is 120Hz, it does not mean that you render 120 different images per second (if nothing changes on the screen for example there is 0 fps, if you watch a 24 fps video there are 24 fps).

On the other hand, on a Pixel 8 at 120Hz, I get 110~120 fps if I move something very fast on the screen with my finger. If you can't get past 80fps, it might be that the capture/encoding can not be performed fast enough. Try with a lower resolution or encoder. But there's probably nothing scrcpy can do, it's device-dependent.

rom1v avatar Feb 05 '24 07:02 rom1v