LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
20.01k stars 962 forks source link

No man sky 80% loss packets, black screen and crash #3232

Closed rcksnchzc137 closed 1 month ago

rcksnchzc137 commented 1 month ago

Is there an existing issue for this?

Is your issue described in the documentation?

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

This issue is present in the latest pre-release

Describe the Bug

This problem is only on the game No man sky, the streaming becomes very slow, the client stats indicate ~80% of packets lost on average, the game runs at 1fps, the game screen is black, and the client crashes after 2min, and then after a few seconds if you try to resume the session

Expected Behavior

I tried changing all the settings of Moonlight client, and sunshine server, a similar problem happened with Gamestream before being fixed by an update of the Nvidia drivers, changing the game settings, like in borderless window, or the solutions for Vulkan, have no effect

Additional Context

No response

Host Operating System

Windows

Operating System Version

11 24H2 build 26100.1876

Architecture

64 bit

Sunshine commit or version

0.23.1

Package

Windows - installer

GPU Type

Nvidia

GPU Model

RTX 3060 Laptop GPU

GPU Driver/Mesa Version

Game Ready 556.12

Capture Method

None

Config

locale = fr
adapter_name = NVIDIA GeForce RTX 3060 Laptop GPU

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "auto-detach": "true",
      "wait-all": "true",
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[2024:09:28:00:15:59]: Info: Sunshine version: v0.23.1
[2024:09:28:00:16:00]: Info: nvprefs: No need to modify application profile settings
[2024:09:28:00:16:00]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:09:28:00:16:00]: Info: Compiling shaders...
[2024:09:28:00:16:00]: Info: Compiled shaders
[2024:09:28:00:16:01]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:09:28:00:16:01]: Info: Trying encoder [nvenc]
[2024:09:28:00:16:01]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:09:28:00:16:01]: Info: Set GPU preference: 1
[2024:09:28:00:16:01]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002560
Device Video Mem   : 5996 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 12214 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024:09:28:00:16:01]: Info: Active GPU has HAGS enabled
[2024:09:28:00:16:01]: Info: Using realtime GPU priority
[2024:09:28:00:16:01]: Info: Desktop resolution [1920x1080]
[2024:09:28:00:16:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:09:28:00:16:01]: Info: Display refresh rate [120.002Hz]
[2024:09:28:00:16:01]: Info: Requested frame rate [60fps]
[2024:09:28:00:16:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.586914,0.364258]
Green Primary      : [0.352539,0.574219]
Blue Primary       : [0.162109,0.123047]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:09:28:00:16:01]: Info: SDR color coding [Rec. 601]
[2024:09:28:00:16:01]: Info: Color depth: 8-bit
[2024:09:28:00:16:01]: Info: Color range: [JPEG]
[2024:09:28:00:16:01]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:09:28:00:16:02]: Info: SDR color coding [Rec. 601]
[2024:09:28:00:16:02]: Info: Color depth: 8-bit
[2024:09:28:00:16:02]: Info: Color range: [JPEG]
[2024:09:28:00:16:02]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:09:28:00:16:02]: Info: SDR color coding [Rec. 601]
[2024:09:28:00:16:02]: Info: Color depth: 8-bit
[2024:09:28:00:16:02]: Info: Color range: [JPEG]
[2024:09:28:00:16:02]: Error: NvEnc: encoding format is not supported by the gpu
[2024:09:28:00:16:02]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002560
Device Video Mem   : 5996 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 12214 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024:09:28:00:16:02]: Info: Active GPU has HAGS enabled
[2024:09:28:00:16:02]: Info: Using realtime GPU priority
[2024:09:28:00:16:02]: Info: Desktop resolution [1920x1080]
[2024:09:28:00:16:02]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:09:28:00:16:02]: Info: Display refresh rate [120.002Hz]
[2024:09:28:00:16:02]: Info: Requested frame rate [60fps]
[2024:09:28:00:16:02]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.586914,0.364258]
Green Primary      : [0.352539,0.574219]
Blue Primary       : [0.162109,0.123047]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:09:28:00:16:02]: Info: SDR color coding [Rec. 709]
[2024:09:28:00:16:02]: Info: Color depth: 10-bit
[2024:09:28:00:16:02]: Info: Color range: [JPEG]
[2024:09:28:00:16:02]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:09:28:00:16:02]: Info: System tray created
[2024:09:28:00:16:04]: Info: 
[2024:09:28:00:16:04]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:09:28:00:16:04]: Info: 
[2024:09:28:00:16:04]: Info: Found H.
xoniq commented 1 month ago

Error: NvEnc: encoding format is not supported by the gpu

This might be something. Try another encoder and see how it goes.

ReenigneArcher commented 1 month ago

Error: NvEnc: encoding format is not supported by the gpu

This might be something. Try another encoder and see how it goes.

// Ignore any errors mentioned above, they are not relevant. //

NhProGamer commented 1 month ago

drivers up to date ?

rcksnchzc137 commented 1 month ago

My drivers are up to date, my computer is a laptop with an Nvidia GPU and an AMD iGPU that was configured by default, I changed it to my 3060 when I saw that the Nvidia encoder was not supported. Since then it works on most games except on no man sky and two other games on the game pass. I tried to force in H.264, to lower all the settings to the minimum, to push the FEC. My local network, my firewalls have already been configured for a long time for Moonlight. Really I insist, on any game, it works well regardless of the settings, but on No man sky, it blocks at 1fps, with a packet loss between 80 and 100% depending on the client. Only the controller works, the sound and video feedback is almost non-existent. and often the client disconnects randomly.

rcksnchzc137 commented 1 month ago

After searching in the Windows energy manager and tasks. The problem seems to come simply from the Lenovo Vantage application which had already caused me some problems before with Virtual Desktop in VR, a function called Network Enhancement which greatly degrades the quality of the streaming, after deactivating it, everything became perfect again.

xoniq commented 1 month ago

@rcksnchzc137 ah yes, classic vendor bloatware. Never have those vendor tools installed.

Only get their drivers from their website, they have no reason to exist in the computer in an active resource hogging application.

Only vendor apps to keep installed, Nvidia and AMD driver suites.