Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.04k stars 10.42k forks source link

PC screen skipping FPS but fps monitor in cmd shows 58-60 fps consistent #5091

Open spideyyy01 opened 1 month ago

spideyyy01 commented 1 month ago

Environment

OS: [Windows10] scrcpy version: [2.5] installation method: [e.g. manual build] device model: Poco F6/Redmi Turbo 3 Android version: [14]

Describe the bug Hi. Just bought a new phone, the Poco F6/ Redmi Turbo 3, which has SD 8s Gen 3. I tried casting my games using scrcpy 2.5 but experienced frame skipping in my PC screen. Before buying this phone, I use Samsung A52s which runs smoothly with scrcpy 2.0. I tried everything, even lowering bitrate and resolution but still, output is not as smooth as my Samsung A52s which is kind of odd because SD 8s Gen 3's supposed to be more capable than my previous phone.

Is this due to the chipset being new or poco/redmi phones are not capable of smooth casting in scrcpy? Or maybe I'm doing something wrong with my settings.

Please help. Thanks

rom1v commented 1 month ago

If you record (scrcpy --record=file.mp4), is the resulting file "smooth"?

spideyyy01 commented 1 month ago

I tried recording and it's smoother than what I see on scrcpy screencast, finally!!!! I'm having hopes again now :') If you don't mind, what could be the problem and solution for this?

rom1v commented 1 month ago

Is it smoother if you add buffering (at the cost of latency)?

scrcpy --display-buffer=50

https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#buffering

spideyyy01 commented 1 month ago

I tried adding display and audio buffer by 75ms and it's buttery smooth now! I also tried applying v4l2 buffer but it seems to not run (I'm also not familiar what is this for). Thank you so much!!

rom1v commented 1 month ago

I tried adding display and audio buffer by 75ms and it's buttery smooth now!

Ok, so the source of the non-smoothness was encoder/network/decoder jitter. Do you use scrcpy over USB or wifi?

spideyyy01 commented 1 month ago

was using it through USB