Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Framepacing issues under linux

Open adolfotregosa opened this issue 3 years ago • 8 comments

Describe the Bug

The feeling of motion in games is not fluid under linux.

I did the following experiment. Using sunshine for both windows and linux on the host, I recorded what is shown on the moonlight client with obs.

Please download and watch the videos locally:

Arch Sunshine: https://drive.google.com/file/d/1yE2qGHNKZpGGMNmSHkBt-1gVnw7a8v2T/view?usp=sharing

Windows Sunshine: https://drive.google.com/file/d/1LLhAONqkWMERX52o2Exw1KNs4u5Q1RNi/view?usp=sharing

As you can hopefully focus on and see, the wind mill rotation under windows is really smooth but "stuttering" under linux, it really seams like some kind of frame pacing problem. Frame pacing option in moonlight does nothing for me.

Do you guys have any suggestions on how to fix this? Sunshine is using nvfbc screencast successfully.

thank you

Expected Behavior

No response

Additional Context

No response

Sunshine Host Operating System and Version

Arch

Architecture

64bit

Sunshine Version

0.14

GPU Type

nvidia

GPU Model

3060

GPU Driver/Mesa Version

515.57

Capture Method (Linux Only)

nvfbc

adolfotregosa avatar Jul 21 '22 15:07 adolfotregosa

Can't say I've noticed this with the same setup. I'll have to watch more closely for it. When are your settings for nv_preset, nv_rc and nv_coder?

I guess you only see this remotely and not when running on linux normally?

KuleRucket avatar Jul 22 '22 13:07 KuleRucket

Can't say I've noticed this with the same setup. I'll have to watch more closely for it. When are your settings for nv_preset, nv_rc and nv_coder?

I guess you only see this remotely and not when running on linux normally?

image

Yes, only remotely and only linux. If you download and play my videos locally it is really easy to see the difference. sunshine from windows is butter smooth, from linux it has that frame pacing jitters.

adolfotregosa avatar Jul 22 '22 14:07 adolfotregosa

Can't see the vids (have to request access) but I also have bad stuttering on Linux (Manjaro) host (with AMD card).

N-Upchurch avatar Jul 27 '22 00:07 N-Upchurch

Can't see the vids (have to request access) but I also have bad stuttering on Linux (Manjaro) host (with AMD card).

Links should work now, sorry about that.

adolfotregosa avatar Jul 27 '22 07:07 adolfotregosa

@ReenigneArcher , @KuleRucket could you have a look at the videos, please?

adolfotregosa avatar Jul 27 '22 07:07 adolfotregosa

I already did but I don't have anything else to add.

KuleRucket avatar Jul 27 '22 12:07 KuleRucket

Try changing your preset from High Performance to one of the ll presets, either ll or llhp. LL in that context stands for low latency. High Performance is meant for encoding videos in general, not for streaming in particular. The low latency presets are designed for streaming so you get less stutter with them.

entropicdrifter avatar Aug 08 '22 23:08 entropicdrifter

Try changing your preset from High Performance to one of the ll presets, either ll or llhp. LL in that context stands for low latency. High Performance is meant for encoding videos in general, not for streaming in particular. The low latency presets are designed for streaming so you get less stutter with them.

Hi. I did try the LL profiles and it kinda does seam to help but it does not make it on par with windows

adolfotregosa avatar Sep 03 '22 06:09 adolfotregosa

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar Dec 03 '22 00:12 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Dec 13 '22 00:12 LizardByte-bot

Out of curiosity, has there been any progress on this? exact same situation as OP, and with Windows, on the exact same machine (dual boot), it's perfect. I can't get rid of the stutter when the host is Linux (Sunshine 0.20)

Hekel1989 avatar Sep 08 '23 13:09 Hekel1989

See also: #2286 and #2333

gschintgen avatar Apr 02 '24 12:04 gschintgen