Sunshine
Sunshine copied to clipboard
Frames drops when using Sunshine ( no problem at all with gamestream)
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
I was using Gamestream to stream from my PC to my MB Air. I have a wired ethernet connexion and no problem at all : 4k 60fps with 0 frame drop.
I am currently testing sunshine and i can't get rid of frames dropping using the same computers and connections. Games are unplayable and i get the message "slow connection to PC"
Expected Behavior
No response
Additional Context
No response
Host Operating System
Windows
Operating System Version
Windows 11
Architecture
64 bit
Sunshine commit or version
0.21
Package
Windows - portable
GPU Type
Nvidia
GPU Model
RTX 3090
GPU Driver/Mesa Version
546.01
Capture Method (Linux Only)
No response
Config
encoder = nvenc
min_log_level = 1
Apps
No response
Relevant log output
[2023:11:06:09:00:29]: Debug: Frame processing latency (min/max/avg): 6.1ms/21.5ms/13.4ms
[2023:11:06:09:00:29]: Debug: NvEnc: encoded frame sizes (min max avg) 0.6 208.8 175.9 kB
[2023:11:06:09:00:29]: Debug: Sleep overshoot (min/max/avg): 0.0ms/0.7ms/0.3ms
[2023:11:06:09:00:31]: Debug: System tray loop
[2023:11:06:09:00:33]: Debug: type [Unknown] { 5502 }
---data---
03011405002C000A0031000500CFADDEAD32290000
---end data---
[2023:11:06:09:00:35]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [10686]
lastFrame [10686]
[2023:11:06:09:00:35]: Debug: NvEnc: rfi request 10686-10686 expanding to last encoded frame 10687
[2023:11:06:09:00:35]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [10686]
lastFrame [10687]
[2023:11:06:09:00:35]: Debug: NvEnc: rfi request 10686-10687 already done
[2023:11:06:09:00:36]: Debug: type [Unknown] { 5502 }
---data---
03011400002D000A0031000000B20DB10DBE290000
---end data---
[2023:11:06:09:00:41]: Debug: type [Unknown] { 5502 }
---data---
030114080029000A00310008002EEB4BEB022B0000
---end data---
[2023:11:06:09:00:42]: Debug: type [Unknown] { 5502 }
---data---
03021403002E000A0031000800A025AA25572B0000
---end data---
[2023:11:06:09:00:47]: Debug: type [Unknown] { 5502 }
---data---
03011402002E000A0030000700A1E8A9E8752C0000
---end data---
[2023:11:06:09:00:49]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11475]
lastFrame [11475]
[2023:11:06:09:00:49]: Debug: NvEnc: rfi request 11475-11475 expanding to last encoded frame 11476
[2023:11:06:09:00:49]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11475]
lastFrame [11476]
[2023:11:06:09:00:49]: Debug: NvEnc: rfi request 11475-11476 already done
[2023:11:06:09:00:49]: Debug: type [Unknown] { 5502 }
---data---
030114040029000A00310008007F298E29D32C0000
---end data---
[2023:11:06:09:00:49]: Debug: Frame processing latency (min/max/avg): 7.5ms/18.1ms/14.0ms
[2023:11:06:09:00:49]: Debug: NvEnc: encoded frame sizes (min max avg) 184.9 208.2 199.4 kB
[2023:11:06:09:00:49]: Debug: Sleep overshoot (min/max/avg): 0.0ms/0.6ms/0.3ms
[2023:11:06:09:00:50]: Debug: type [Unknown] { 5502 }
---data---
03011404002D000A0031000600664F6F4F0A2D0000
---end data---
[2023:11:06:09:00:51]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11609]
lastFrame [11609]
[2023:11:06:09:00:51]: Debug: NvEnc: rfi request 11609-11609 expanding to last encoded frame 11610
[2023:11:06:09:00:51]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11609]
lastFrame [11610]
[2023:11:06:09:00:51]: Debug: type [Unknown] { 5502 }
---data---
030114000025000A0030000A007B858C85592D0000
---end data---
[2023:11:06:09:00:51]: Debug: NvEnc: rfi request 11609-11610 already done
[2023:11:06:09:00:51]: Debug: type [Unknown] { 5502 }
---data---
03011406002B000A00310006004C8A608A602D0000
---end data---
[2023:11:06:09:00:51]: Debug: type [Unknown] { 5502 }
---data---
0301140A0027000A0031000A00AF96CC96722D0000
---end data---
[2023:11:06:09:00:51]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11641]
lastFrame [11641]
[2023:11:06:09:00:51]: Debug: NvEnc: rfi request 11641-11641 expanding to last encoded frame 11642
[2023:11:06:09:00:51]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11641]
lastFrame [11642]
[2023:11:06:09:00:51]: Debug: NvEnc: rfi request 11641-11642 already done
[2023:11:06:09:00:52]: Debug: type [Unknown] { 5502 }
---data---
03011400002A000A0031000700789B969B792D0000
---end data---
[2023:11:06:09:00:52]: Debug: type [Unknown] { 5502 }
---data---
030114090028000A00310009005EA072A0802D0000
---end data---
[2023:11:06:09:00:52]: Debug: type [Unknown] { 5502 }
---data---
030114080029000A003100080089A69CA6892D0000
---end data---
[2023:11:06:09:00:53]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11736]
lastFrame [11736]
[2023:11:06:09:00:53]: Debug: NvEnc: rfi request 11736-11736 expanding to last encoded frame 11737
[2023:11:06:09:00:53]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11736]
lastFrame [11737]
[2023:11:06:09:00:53]: Debug: type [Unknown] { 5502 }
---data---
030114040029000A0031000800D6DBEDDBD82D0000
---end data---
[2023:11:06:09:00:53]: Debug: NvEnc: rfi request 11736-11737 already done
[2023:11:06:09:00:54]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11773]
lastFrame [11773]
[2023:11:06:09:00:54]: Debug: NvEnc: rfi request 11773-11773 expanding to last encoded frame 11774
[2023:11:06:09:00:54]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11773]
lastFrame [11774]
[2023:11:06:09:00:54]: Debug: NvEnc: rfi request 11773-11774 already done
[2023:11:06:09:00:54]: Debug: type [Unknown] { 5502 }
---data---
03011401002D000A0031000D0059F566F5FD2D0000
---end data---
[2023:11:06:09:00:54]: Debug: type [Unknown] { 5502 }
---data---
03011406002B000A003100060080089108192E0000
---end data---
[2023:11:06:09:00:55]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11842]
lastFrame [11842]
[2023:11:06:09:00:55]: Debug: type [Unknown] { 5502 }
---data---
03011404002B000A0030000B007C248F24422E0000
---end data---
[2023:11:06:09:00:55]: Debug: NvEnc: rfi request 11842-11842 expanding to last encoded frame 11843
[2023:11:06:09:00:55]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11842]
lastFrame [11843]
[2023:11:06:09:00:55]: Debug: NvEnc: rfi request 11842-11843 already done
[2023:11:06:09:00:56]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11909]
lastFrame [11909]
[2023:11:06:09:00:56]: Debug: NvEnc: rfi request 11909-11909 expanding to last encoded frame 11910
[2023:11:06:09:00:56]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [11909]
lastFrame [11910]
[2023:11:06:09:00:56]: Debug: NvEnc: rfi request 11909-11910 already done
[2023:11:06:09:00:56]: Debug: type [Unknown] { 5502 }
---data---
030114020020000A003100110080529852852E0000
---end data---
[2023:11:06:09:00:57]: Debug: type [Unknown] { 5502 }
---data---
03011404002D000A00310009002F673B67A32E0000
---end data---
[2023:11:06:09:00:58]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [12020]
lastFrame [12020]
[2023:11:06:09:00:58]: Debug: NvEnc: rfi request 12020-12020 expanding to last encoded frame 12021
[2023:11:06:09:00:58]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [12020]
lastFrame [12021]
[2023:11:06:09:00:58]: Debug: type [Unknown] { 5502 }
---data---
0301140A0026000A0031000B00FF9D139EF42E0000
---end data---
[2023:11:06:09:00:58]: Debug: NvEnc: rfi request 12020-12021 already done
[2023:11:06:09:00:58]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [12035]
lastFrame [12035]
[2023:11:06:09:00:58]: Debug: NvEnc: rfi request 12035-12035 expanding to last encoded frame 12036
[2023:11:06:09:00:58]: Debug: type [IDX_INVALIDATE_REF_FRAMES]
firstFrame [12035]
lastFrame [12036]
[2023:11:06:09:00:58]: Debug: NvEnc: rfi request 12035-12036 already done
[2023:11:06:09:00:58]: Debug: type [Unknown] { 5502 }
Interesting. I noticed the same thing with Sunshine using Windows 10 x64 and a NVIDIA 1080TI. I can visibly see frame dropping whilst streaming despite low latency of 9ms. Also a jittery ghosting effect during movement in games whilst in full screen. But, if I put the game in windowed mode, the jittery ghosting stops occurring. I did initially check in here and couldn't see another similar report, but recently removed sunshine and tested NVIDIA's gamestream... No such issue there. No frame drops and smooth gameplay. Occurred with default Sunshine 0.21 settings/config and seemingly any NVIDIA driver version. Currently on NVIDIA 546.17 using Windows 10 x64 22H2 OS Build 19045.2965
The jittery ghosting was even more evident on games that use heavy motion blur but was present on all.
Even more interesting... Having 'Vertical Sync' set to 'Fast' within Nvidia Control Panel is causing the jittery ghosting during motion with Sunshine. You can even see it on loading screen bar's where it seems to show the previous frame between frames, the loading bar actually jitters backwards, which may be interpretted as frame drop. Setting Vertical Sync to anything else eradicates the issue. Strange, because the same does not occur for Gamestream.
Update: Reverted back to Sunshine 0.20. It seems to be much more performant at higher bitrates, and is a lot smoother in general over 0.21. Frame drop isn't very noticeable whilst on my local network after changing vsync options on 0.21, but it's very evident over WAN, where I experience micro-stutters across various different client-side bitrate values (whether high or low), this just doesn't happen on 0.20. Having NVENC Tune and CBR/VBR options back in 0.20 is a win too. Was sad to see them disappear.
nvenc is sending framerate all over the place, not consistent at all. Tried 10mbps bitrate as well.
Virtual Desktop as example is constant 120 for me.
Please utilize the discord for support, GitHub is used to report reproducible bugs.
Interesting. I noticed the same thing with Sunshine using Windows 10 x64 and a NVIDIA 1080TI. I can visibly see frame dropping whilst streaming despite low latency of 9ms. Also a jittery ghosting effect during movement in games whilst in full screen. But, if I put the game in windowed mode, the jittery ghosting stops occurring. I did initially check in here and couldn't see another similar report, but recently removed sunshine and tested NVIDIA's gamestream... No such issue there. No frame drops and smooth gameplay. Occurred with default Sunshine 0.21 settings/config and seemingly any NVIDIA driver version. Currently on NVIDIA 546.17 using Windows 10 x64 22H2 OS Build 19045.2965有趣的。我在使用 Windows 10 x64 和 NVIDIA 1080TI 的 Sunshine 中发现了同样的情况。尽管延迟低至 9 毫秒,但我可以明显看到流式传输时丢帧。在全屏游戏中移动时也会出现抖动的重影效果。但是,如果我将游戏置于窗口模式,紧张的重影就会停止发生。我最初确实在这里检查过,但看不到其他类似的报告,但最近删除了sunshine并测试了NVIDIA的游戏流......那里没有这样的问题。无掉帧,游戏流畅。默认 Sunshine 0.21 设置/配置以及似乎任何 NVIDIA 驱动程序版本都会发生此问题。目前在 NVIDIA 546.17 上使用 Windows 10 x64 22H2 OS Build 19045.2965
The jittery ghosting was even more evident on games that use heavy motion blur but was present on all.在使用大量运动模糊但在所有游戏中都存在的游戏中,抖动重影更为明显。
Interesting. I noticed the same thing with Sunshine using Windows 10 x64 and a NVIDIA 1080TI. I can visibly see frame dropping whilst streaming despite low latency of 9ms. Also a jittery ghosting effect during movement in games whilst in full screen. But, if I put the game in windowed mode, the jittery ghosting stops occurring. I did initially check in here and couldn't see another similar report, but recently removed sunshine and tested NVIDIA's gamestream... No such issue there. No frame drops and smooth gameplay. Occurred with default Sunshine 0.21 settings/config and seemingly any NVIDIA driver version. Currently on NVIDIA 546.17 using Windows 10 x64 22H2 OS Build 19045.2965有趣的。我在使用 Windows 10 x64 和 NVIDIA 1080TI 的 Sunshine 中发现了同样的情况。尽管延迟低至 9 毫秒,但我可以明显看到流式传输时丢帧。在全屏游戏中移动时也会出现抖动的重影效果。但是,如果我将游戏置于窗口模式,紧张的重影就会停止发生。我最初确实在这里检查过,但看不到其他类似的报告,但最近删除了sunshine并测试了NVIDIA的游戏流......那里没有这样的问题。无掉帧,游戏流畅。默认 Sunshine 0.21 设置/配置以及似乎任何 NVIDIA 驱动程序版本都会发生此问题。目前在 NVIDIA 546.17 上使用 Windows 10 x64 22H2 OS Build 19045.2965
The jittery ghosting was even more evident on games that use heavy motion blur but was present on all.在使用大量运动模糊但在所有游戏中都存在的游戏中,抖动重影更为明显。
Are you using Vsync:quick configuration in NVCP ?