Sunshine
Sunshine copied to clipboard
Frame Limit on host induces stream lag during high motion scenes
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 nightly release?
- [X] This issue is present in the nightly release
Describe the Bug
Using a framelimit (60fps) of any type (driver, external program or in-game options) on host (Sunshine 0.20.0, 0.22.* and nightly release) induces stream lag (40~50 fps) usually during high motion scenes (happens during low motion scenes as well) on the client PC (Moonlight 5.0.1, nightly). Enabling VSync on host (in-game and driver) appears to alleviate the issue but with additional input latency making most games unplayable.
No settings other than framelimit and VSync have any effect on the issue.
Expected Behavior
Setting a framelimit of 60fps on the host pc should not induce any stream lag.
Additional Context
Have done extensive hardware and software testing to find the root cause of the issue to no avail. I have tested the following.
-Multiple versions of Windows 10 64bit
-Multiple versions of Sunshine and Moonlight (both with hardware and software encoding/decoding)
-Multiple versions of Nvidia drivers
-2 different host computers and 2 different client computers
-Hardware testing of GPUs and PCIe connections, networking (cables, network cards, wifi), storage (mechanical and solid state), memory testing (MemTest86), Power supplies (wattage testing and measurement) and have concluded that all hardware tested is in normal working condition.
Full computer specs -Intended Host PC i7 6700 (4 core 8 thread @3.7GHz), 16GB DDR4 2400mhz, GTX1060 6GB PCIe 3.0, GA-Z170-D3H motherboard, 512GB SATA SSD (OS, Sunshine and Games) Windows 10 Enterprise 21H2 19044.2193 (current install)
-Intended Client PC Acer Aspire 7 A717-72G laptop i7 8750H (6 core 12 thread @2.2GHz base clock All core boost @3.4GHz), 32GB DDR4 2400MHz, iGPU Intel UHD Graphics 630, GTX1060m 6GB PCIe 3.0, Windows 10 Enterprise 1809 17763.1637 (Have also tested 10 Enterprise 21H2 19044.2193)
-Test PC (as host and client) i5 4590 4 core @3.3GHz, 16GB DDR3 1333MHz, GTX1050Ti 4GB PCIe 3.0, 250GB 7200RPM HDD, Windows 10 Enterprise 21H2 19044.2193
Host Operating System
Windows
Operating System Version
10 Enterprise 1809, 10 Enterprise 21H2, 10 Pro 22H2
Architecture
64 bit
Sunshine commit or version
0.20.0, 0.22.*
Package
Windows - portable
GPU Type
Nvidia
GPU Model
GTX 1060 6GB, GTX 1050Ti 4GB
GPU Driver/Mesa Version
472.12, 516.94, 551.61
Capture Method (Linux Only)
No response
Config
encoder = nvenc
Apps
No response
Relevant log output
[2024:03:22:14:47:43]: Info: Sunshine version: 0.22.2.8316f44e10f3f6ef27fc27b3ef6e69f359b1b667
[2024:03:22:14:47:43]: Info: nvprefs: No need to modify application profile settings
[2024:03:22:14:47:43]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:03:22:14:47:43]: Info: Compiling shaders...
[2024:03:22:14:47:43]: Info: System tray created
[2024:03:22:14:47:43]: Info: Compiled shaders
[2024:03:22:14:47:43]: Fatal: ViGEmBus is not installed or running. You must install ViGEmBus for gamepad support!
[2024:03:22:14:47:43]: Info: Trying encoder [nvenc]
[2024:03:22:14:47:43]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:03:22:14:47:43]: Info: Set GPU preference: 1
[2024:03:22:14:47:43]: Info:
Device Description : NVIDIA GeForce GTX 1060 6GB
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001C03
Device Video Mem : 6052 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8168 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2024:03:22:14:47:43]: Info: Active GPU has HAGS disabled
[2024:03:22:14:47:43]: Info: Using realtime GPU priority
[2024:03:22:14:47:43]: Info: Desktop resolution [1920x1080]
[2024:03:22:14:47:43]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:14:47:43]: Info: Display refresh rate [60Hz]
[2024:03:22:14:47:43]: Info: Requested frame rate [60fps]
[2024:03:22:14:47:43]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.635742,0.333008]
Green Primary : [0.302734,0.625977]
Blue Primary : [0.15332,0.0703125]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:03:22:14:47:43]: Info: SDR color coding [Rec. 601]
[2024:03:22:14:47:43]: Info: Color depth: 8-bit
[2024:03:22:14:47:43]: Info: Color range: [JPEG]
[2024:03:22:14:47:43]: Info: NvEnc: created encoder P1 two-pass
[2024:03:22:14:47:43]: Info: SDR color coding [Rec. 601]
[2024:03:22:14:47:43]: Info: Color depth: 8-bit
[2024:03:22:14:47:43]: Info: Color range: [JPEG]
[2024:03:22:14:47:43]: Info: NvEnc: created encoder P1 two-pass
[2024:03:22:14:47:43]: Info: SDR color coding [Rec. 601]
[2024:03:22:14:47:43]: Info: Color depth: 8-bit
[2024:03:22:14:47:43]: Info: Color range: [JPEG]
[2024:03:22:14:47:43]: Error: NvEncOpenEncodeSessionEx failed: NV_ENC_ERR_INVALID_VERSION
[2024:03:22:14:47:44]: Info:
Device Description : NVIDIA GeForce GTX 1060 6GB
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001C03
Device Video Mem : 6052 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8168 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2024:03:22:14:47:44]: Info: Active GPU has HAGS disabled
[2024:03:22:14:47:44]: Info: Using realtime GPU priority
[2024:03:22:14:47:44]: Info: Desktop resolution [1920x1080]
[2024:03:22:14:47:44]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:14:47:44]: Info: Display refresh rate [60Hz]
[2024:03:22:14:47:44]: Info: Requested frame rate [60fps]
[2024:03:22:14:47:44]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.635742,0.333008]
Green Primary : [0.302734,0.625977]
Blue Primary : [0.15332,0.0703125]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:03:22:14:47:44]: Info: SDR color coding [Rec. 709]
[2024:03:22:14:47:44]: Info: Color depth: 10-bit
[2024:03:22:14:47:44]: Info: Color range: [JPEG]
[2024:03:22:14:47:44]: Info: NvEnc: created encoder P1 10-bit two-pass
[2024:03:22:14:47:44]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:03:22:14:47:44]: Info:
[2024:03:22:14:47:44]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:03:22:14:47:44]: Info:
[2024:03:22:14:47:44]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:03:22:14:47:44]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:03:22:14:47:44]: Info: Configuration UI available at [https://localhost:47990]
[2024:03:22:14:47:44]: Info: Registered Sunshine mDNS service
[2024:03:22:15:10:30]: Info: Encoder reenumeration is required
[2024:03:22:15:10:30]: Info: Trying encoder [nvenc]
[2024:03:22:15:10:30]: Info:
Device Description : NVIDIA GeForce GTX 1060 6GB
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001C03
Device Video Mem : 6052 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8168 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2024:03:22:15:10:30]: Info: Active GPU has HAGS disabled
[2024:03:22:15:10:30]: Info: Using realtime GPU priority
[2024:03:22:15:10:30]: Info: Desktop resolution [1920x1080]
[2024:03:22:15:10:30]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:15:10:30]: Info: Display refresh rate [60Hz]
[2024:03:22:15:10:30]: Info: Requested frame rate [60fps]
[2024:03:22:15:10:30]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.635742,0.333008]
Green Primary : [0.302734,0.625977]
Blue Primary : [0.15332,0.0703125]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:03:22:15:10:30]: Info: SDR color coding [Rec. 601]
[2024:03:22:15:10:30]: Info: Color depth: 8-bit
[2024:03:22:15:10:30]: Info: Color range: [JPEG]
[2024:03:22:15:10:30]: Info: NvEnc: created encoder P1 two-pass
[2024:03:22:15:10:30]: Info: SDR color coding [Rec. 601]
[2024:03:22:15:10:30]: Info: Color depth: 8-bit
[2024:03:22:15:10:30]: Info: Color range: [JPEG]
[2024:03:22:15:10:30]: Info: NvEnc: created encoder P1 two-pass
[2024:03:22:15:10:30]: Info: SDR color coding [Rec. 601]
[2024:03:22:15:10:30]: Info: Color depth: 8-bit
[2024:03:22:15:10:30]: Info: Color range: [JPEG]
[2024:03:22:15:10:30]: Error: NvEncOpenEncodeSessionEx failed: NV_ENC_ERR_INVALID_VERSION
[2024:03:22:15:10:30]: Info:
Device Description : NVIDIA GeForce GTX 1060 6GB
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001C03
Device Video Mem : 6052 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8168 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2024:03:22:15:10:30]: Info: Active GPU has HAGS disabled
[2024:03:22:15:10:30]: Info: Using realtime GPU priority
[2024:03:22:15:10:30]: Info: Desktop resolution [1920x1080]
[2024:03:22:15:10:30]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:15:10:30]: Info: Display refresh rate [60Hz]
[2024:03:22:15:10:30]: Info: Requested frame rate [60fps]
[2024:03:22:15:10:30]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.635742,0.333008]
Green Primary : [0.302734,0.625977]
Blue Primary : [0.15332,0.0703125]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:03:22:15:10:30]: Info: SDR color coding [Rec. 709]
[2024:03:22:15:10:30]: Info: Color depth: 10-bit
[2024:03:22:15:10:30]: Info: Color range: [JPEG]
[2024:03:22:15:10:30]: Info: NvEnc: created encoder P1 10-bit two-pass
[2024:03:22:15:10:30]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:03:22:15:10:30]: Info:
[2024:03:22:15:10:30]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:03:22:15:10:30]: Info:
[2024:03:22:15:10:30]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:03:22:15:10:30]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:03:22:15:10:30]: Info: Executing [Desktop]
[2024:03:22:15:10:30]: Info: nvprefs: No need to modify application profile settings
[2024:03:22:15:10:30]: Info: nvprefs: No need to modify global profile settings
[2024:03:22:15:10:30]: Info: CLIENT CONNECTED
[2024:03:22:15:10:31]: Info:
Device Description : NVIDIA GeForce GTX 1060 6GB
Device Vendor ID : 0x000010DE
Device Device ID : 0x00001C03
Device Video Mem : 6052 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 8168 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2024:03:22:15:10:31]: Info: Active GPU has HAGS disabled
[2024:03:22:15:10:31]: Info: Using realtime GPU priority
[2024:03:22:15:10:31]: Info: Desktop resolution [1920x1080]
[2024:03:22:15:10:31]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:15:10:31]: Info: Display refresh rate [60Hz]
[2024:03:22:15:10:31]: Info: Requested frame rate [60fps]
[2024:03:22:15:10:31]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.635742,0.333008]
Green Primary : [0.302734,0.625977]
Blue Primary : [0.15332,0.0703125]
White Point : [0.313477,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2024:03:22:15:10:31]: Info: SDR color coding [Rec. 601]
[2024:03:22:15:10:31]: Info: Color depth: 8-bit
[2024:03:22:15:10:31]: Info: Color range: [MPEG]
[2024:03:22:15:10:31]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:22:15:10:31]: Info: NvEnc: created encoder P1 two-pass
[2024:03:22:15:10:31]: Info: Steam audio drivers not found. This is expected if you don't have Steam installed.
What games are you noticing this happen on?
I am unable to replicate this issue
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!
This issue was closed because it has been stalled for 10 days with no activity.