Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Rendering frame rate the lower of two monitors' refresh rate

Open sunlast opened this issue 8 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is your issue described in the documentation?

  • [x] I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

A dual monitor setup - one 3440x1440 100hz, the other 1920x1080 60hz. I use the former for streaming sunshine. If the second monitor is active on the client (not streaming sunshine on it), decoding frame rate 100fps, rendering framerate 60fps, loss of frames due to network jitter = 40%. If inactivating the latter monitor on the client, both framerates 100fps and 0% frame loss.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Linux

Operating System Version

Ubuntu 22.04

Architecture

amd64/x86_64

Sunshine commit or version

2025.122.141614

Package

Linux - deb

GPU Type

NVIDIA

GPU Model

rtx 3070 laptop

GPU Driver/Mesa Version

570 open

Capture Method

KMS (Linux)

Config


Apps


Relevant log output

[2025-05-13 16:32:25.150]: Info: CLIENT CONNECTED
[2025-05-13 16:32:25.597]: Info: Found [3] outputs
[2025-05-13 16:32:25.597]: Info: Virtual Desktop: 7280x1440
[2025-05-13 16:32:25.597]: Info: XrandR: available
[2025-05-13 16:32:25.597]: Info: -- Output --
[2025-05-13 16:32:25.597]: Info:   Resolution: 3440x1440
[2025-05-13 16:32:25.597]: Info:   Offset: 3840x0
[2025-05-13 16:32:25.597]: Info: -- Output --
[2025-05-13 16:32:25.597]: Info:   Resolution: 1920x1080
[2025-05-13 16:32:25.597]: Info:   Offset: 1920x0
[2025-05-13 16:32:25.597]: Info: -- Output --
[2025-05-13 16:32:25.597]: Info:   Resolution: 1920x1080
[2025-05-13 16:32:25.597]: Info:   Offset: 0x0
[2025-05-13 16:32:25.605]: Info: Setting default sink to: [sink-sunshine-stereo]
[2025-05-13 16:32:25.605]: Info: Found default monitor by name: alsa_output.pci-0000_08_0c.0.analog-stereo.monitor
[2025-05-13 16:32:25.624]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2025-05-13 16:32:25.633]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:25.633]: Info: Screencasting with NvFBC
[2025-05-13 16:32:25.776]: Info: Gamepad 0 will be Xbox One controller (default)
[2025-05-13 16:32:25.927]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:32:25.927]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:32:25.927]: Info: Color depth: 8-bit
[2025-05-13 16:32:25.927]: Info: Color range: MPEG
[2025-05-13 16:32:36.520]: Info: CLIENT DISCONNECTED
[2025-05-13 16:32:36.524]: Info: Setting default sink to: [alsa_output.pci-0000_08_0c.0.analog-stereo]
[2025-05-13 16:32:36.621]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:36.622]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:47.010]: Warning: Sunshine is configured to change resolution automatically, but the "Optimize game settings" is not set in the client! Resolution will not be changed.
[2025-05-13 16:32:47.010]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-05-13 16:32:47.010]: Info: Trying encoder [nvenc]
[2025-05-13 16:32:47.010]: Info: Screencasting with NvFBC
[2025-05-13 16:32:47.296]: Info: Creating encoder [h264_nvenc]
[2025-05-13 16:32:47.297]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:32:47.297]: Info: Color depth: 8-bit
[2025-05-13 16:32:47.297]: Info: Color range: JPEG
[2025-05-13 16:32:47.569]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:32:47.570]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:32:47.570]: Info: Color depth: 8-bit
[2025-05-13 16:32:47.570]: Info: Color range: JPEG
[2025-05-13 16:32:47.836]: Info: Creating encoder [av1_nvenc]
[2025-05-13 16:32:47.836]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:32:47.836]: Info: Color depth: 8-bit
[2025-05-13 16:32:47.836]: Info: Color range: JPEG
[2025-05-13 16:32:48.136]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:48.136]: Info: Screencasting with NvFBC
[2025-05-13 16:32:48.416]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:32:48.416]: Info: Color coding: SDR (Rec. 709)
[2025-05-13 16:32:48.416]: Info: Color depth: 10-bit
[2025-05-13 16:32:48.416]: Info: Color range: JPEG
[2025-05-13 16:32:48.448]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2025-05-13 16:32:48.684]: Info: Creating encoder [av1_nvenc]
[2025-05-13 16:32:48.684]: Info: Color coding: SDR (Rec. 709)
[2025-05-13 16:32:48.684]: Info: Color depth: 10-bit
[2025-05-13 16:32:48.684]: Info: Color range: JPEG
[2025-05-13 16:32:48.716]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2025-05-13 16:32:48.983]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:48.983]: Info: 
[2025-05-13 16:32:48.983]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-05-13 16:32:48.983]: Info: 
[2025-05-13 16:32:48.983]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-05-13 16:32:48.983]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-05-13 16:32:48.983]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-05-13 16:32:49.066]: Info: New streaming session started [active sessions: 1]
[2025-05-13 16:32:49.106]: Info: CLIENT CONNECTED
[2025-05-13 16:32:49.498]: Info: Found [3] outputs
[2025-05-13 16:32:49.498]: Info: Virtual Desktop: 7280x1440
[2025-05-13 16:32:49.498]: Info: XrandR: available
[2025-05-13 16:32:49.498]: Info: -- Output --
[2025-05-13 16:32:49.498]: Info:   Resolution: 3440x1440
[2025-05-13 16:32:49.498]: Info:   Offset: 3840x0
[2025-05-13 16:32:49.498]: Info: -- Output --
[2025-05-13 16:32:49.498]: Info:   Resolution: 1920x1080
[2025-05-13 16:32:49.498]: Info:   Offset: 1920x0
[2025-05-13 16:32:49.498]: Info: -- Output --
[2025-05-13 16:32:49.498]: Info:   Resolution: 1920x1080
[2025-05-13 16:32:49.498]: Info:   Offset: 0x0
[2025-05-13 16:32:49.537]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:32:49.537]: Info: Screencasting with NvFBC
[2025-05-13 16:32:49.566]: Info: Setting default sink to: [sink-sunshine-stereo]
[2025-05-13 16:32:49.567]: Info: Found default monitor by name: alsa_output.pci-0000_08_0c.0.analog-stereo.monitor
[2025-05-13 16:32:49.584]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2025-05-13 16:32:49.604]: Info: Gamepad 0 will be Xbox One controller (default)
[2025-05-13 16:32:49.830]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:32:49.830]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:32:49.830]: Info: Color depth: 8-bit
[2025-05-13 16:32:49.830]: Info: Color range: MPEG
[2025-05-13 16:33:03.377]: Info: CLIENT DISCONNECTED
[2025-05-13 16:33:03.382]: Info: Setting default sink to: [alsa_output.pci-0000_08_0c.0.analog-stereo]
[2025-05-13 16:33:03.521]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:33:03.521]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:36:19.522]: Warning: Sunshine is configured to change resolution automatically, but the "Optimize game settings" is not set in the client! Resolution will not be changed.
[2025-05-13 16:36:19.522]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-05-13 16:36:19.523]: Info: Trying encoder [nvenc]
[2025-05-13 16:36:19.523]: Info: Screencasting with NvFBC
[2025-05-13 16:36:19.836]: Info: Creating encoder [h264_nvenc]
[2025-05-13 16:36:19.836]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:36:19.836]: Info: Color depth: 8-bit
[2025-05-13 16:36:19.836]: Info: Color range: JPEG
[2025-05-13 16:36:20.109]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:36:20.109]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:36:20.109]: Info: Color depth: 8-bit
[2025-05-13 16:36:20.109]: Info: Color range: JPEG
[2025-05-13 16:36:20.375]: Info: Creating encoder [av1_nvenc]
[2025-05-13 16:36:20.375]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:36:20.375]: Info: Color depth: 8-bit
[2025-05-13 16:36:20.375]: Info: Color range: JPEG
[2025-05-13 16:36:20.676]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:36:20.676]: Info: Screencasting with NvFBC
[2025-05-13 16:36:20.958]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:36:20.958]: Info: Color coding: SDR (Rec. 709)
[2025-05-13 16:36:20.958]: Info: Color depth: 10-bit
[2025-05-13 16:36:20.958]: Info: Color range: JPEG
[2025-05-13 16:36:20.989]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2025-05-13 16:36:21.224]: Info: Creating encoder [av1_nvenc]
[2025-05-13 16:36:21.224]: Info: Color coding: SDR (Rec. 709)
[2025-05-13 16:36:21.224]: Info: Color depth: 10-bit
[2025-05-13 16:36:21.224]: Info: Color range: JPEG
[2025-05-13 16:36:21.255]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2025-05-13 16:36:21.520]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:36:21.520]: Info: 
[2025-05-13 16:36:21.520]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-05-13 16:36:21.520]: Info: 
[2025-05-13 16:36:21.520]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-05-13 16:36:21.520]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-05-13 16:36:21.520]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-05-13 16:36:21.587]: Info: New streaming session started [active sessions: 1]
[2025-05-13 16:36:21.625]: Info: CLIENT CONNECTED
[2025-05-13 16:36:22.042]: Info: Found [3] outputs
[2025-05-13 16:36:22.042]: Info: Virtual Desktop: 7280x1440
[2025-05-13 16:36:22.042]: Info: XrandR: available
[2025-05-13 16:36:22.042]: Info: -- Output --
[2025-05-13 16:36:22.042]: Info:   Resolution: 3440x1440
[2025-05-13 16:36:22.042]: Info:   Offset: 3840x0
[2025-05-13 16:36:22.042]: Info: -- Output --
[2025-05-13 16:36:22.042]: Info:   Resolution: 1920x1080
[2025-05-13 16:36:22.042]: Info:   Offset: 1920x0
[2025-05-13 16:36:22.042]: Info: -- Output --
[2025-05-13 16:36:22.042]: Info:   Resolution: 1920x1080
[2025-05-13 16:36:22.042]: Info:   Offset: 0x0
[2025-05-13 16:36:22.079]: Error: Couldn't release NvFBC context from current thread: 
[2025-05-13 16:36:22.079]: Info: Screencasting with NvFBC
[2025-05-13 16:36:22.100]: Info: Setting default sink to: [sink-sunshine-stereo]
[2025-05-13 16:36:22.101]: Info: Found default monitor by name: alsa_output.pci-0000_08_0c.0.analog-stereo.monitor
[2025-05-13 16:36:22.117]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2025-05-13 16:36:22.232]: Info: Gamepad 0 will be Xbox One controller (default)
[2025-05-13 16:36:22.365]: Info: Creating encoder [hevc_nvenc]
[2025-05-13 16:36:22.366]: Info: Color coding: SDR (Rec. 601)
[2025-05-13 16:36:22.366]: Info: Color depth: 8-bit
[2025-05-13 16:36:22.366]: Info: Color range: MPEG
[2025-05-13 16:42:21.653]: Info: Web UI: [127.0.0.1] -- not authorized

sunlast avatar May 13 '25 21:05 sunlast