Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having the Sunshine service running can impact HDR display capabilities in other applications with no streaming being involved #3500

Open
2 tasks done
Skyyblaze opened this issue Dec 29, 2024 · 1 comment

Comments

@Skyyblaze
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

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

This issue is present in the latest pre-release

Describe the Bug

Having the Sunshine service running causes other applications such as Chiaki4Deck to end up with washed out HDR colors. Stopping Sunshine remedies the problem completely.

Expected Behavior

Sunshine not interfering with other applications.

Additional Context

I've been long since trying to figure out why HDR wouldn't display correctly when using Chiaki4Deck to stream my PS5 to my Windows PC and the developer of that application was trying to help me fix it too to no avail. Another user, also with an Nvidia card and Sunshine installed, eventually found out that stopping Sunshine fixes the problem. I tested it on my end and can confirm that the same is true for me. Starting Sunshine again immediately recreates the problem. The problem can also be seen when playing some HDR videos with the mpv video player in certain configurations.

The corresponding Issue Report can be found here: streetpea/chiaki-ng#494

Host Operating System

Windows

Operating System Version

Windows 11 24H2

Architecture

amd64/x86_64

Sunshine commit or version

0.23.1

Package

Windows - installer (recommended)

GPU Type

NVIDIA

GPU Model

RTX 4070

GPU Driver/Mesa Version

566.45

Capture Method

None

Config

Apps

Relevant log output

Not really applicable as Sunshine isn't actively involved.

[2024:12:29:20:29:21]: Info: Sunshine version: v0.23.1
[2024:12:29:20:29:21]: Info: nvprefs: No need to modify application profile settings
[2024:12:29:20:29:21]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:12:29:20:29:21]: Info: Compiling shaders...
[2024:12:29:20:29:21]: Info: System tray created
[2024:12:29:20:29:21]: Info: Compiled shaders
[2024:12:29:20:29:21]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:12:29:20:29:21]: Info: Trying encoder [nvenc]
[2024:12:29:20:29:22]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:12:29:20:29:22]: Info: Set GPU preference: 1
[2024:12:29:20:29:22]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16336 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 3840x0
Virtual Desktop    : 5760x2160
[2024:12:29:20:29:22]: Info: Active GPU has HAGS enabled
[2024:12:29:20:29:22]: Info: Using realtime GPU priority
[2024:12:29:20:29:22]: Info: Desktop resolution [1920x1080]
[2024:12:29:20:29:22]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:12:29:20:29:22]: Info: Display refresh rate [60Hz]
[2024:12:29:20:29:22]: Info: Requested frame rate [60fps]
[2024:12:29:20:29:22]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.65332,0.336914]
Green Primary      : [0.322266,0.611328]
Blue Primary       : [0.15332,0.0605469]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:12:29:20:29:22]: Info: SDR color coding [Rec. 601]
[2024:12:29:20:29:22]: Info: Color depth: 8-bit
[2024:12:29:20:29:22]: Info: Color range: [JPEG]
[2024:12:29:20:29:22]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:12:29:20:29:22]: Info: SDR color coding [Rec. 601]
[2024:12:29:20:29:22]: Info: Color depth: 8-bit
[2024:12:29:20:29:22]: Info: Color range: [JPEG]
[2024:12:29:20:29:22]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:12:29:20:29:22]: Info: SDR color coding [Rec. 601]
[2024:12:29:20:29:22]: Info: Color depth: 8-bit
[2024:12:29:20:29:22]: Info: Color range: [JPEG]
[2024:12:29:20:29:22]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:12:29:20:29:22]: Info: 
Device Description : NVIDIA GeForce RTX 4070
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00002786
Device Video Mem   : 12012 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16336 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 3840x0
Virtual Desktop    : 5760x2160
[2024:12:29:20:29:22]: Info: Active GPU has HAGS enabled
[2024:12:29:20:29:22]: Info: Using realtime GPU priority
[2024:12:29:20:29:22]: Info: Desktop resolution [1920x1080]
[2024:12:29:20:29:22]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:12:29:20:29:22]: Info: Display refresh rate [60Hz]
[2024:12:29:20:29:22]: Info: Requested frame rate [60fps]
[2024:12:29:20:29:22]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.65332,0.336914]
Green Primary      : [0.322266,0.611328]
Blue Primary       : [0.15332,0.0605469]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:12:29:20:29:22]: Info: SDR color coding [Rec. 709]
[2024:12:29:20:29:22]: Info: Color depth: 10-bit
[2024:12:29:20:29:22]: Info: Color range: [JPEG]
[2024:12:29:20:29:22]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:12:29:20:29:23]: Info: SDR color coding [Rec. 709]
[2024:12:29:20:29:23]: Info: Color depth: 10-bit
[2024:12:29:20:29:23]: Info: Color range: [JPEG]
[2024:12:29:20:29:23]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:12:29:20:29:23]: Info: 
[2024:12:29:20:29:23]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:12:29:20:29:23]: Info: 
[2024:12:29:20:29:23]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:12:29:20:29:23]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:12:29:20:29:23]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2024:12:29:20:29:23]: Info: Configuration UI available at [https://localhost:47990]
[2024:12:29:20:29:23]: Info: Registered Sunshine mDNS service
@cgutman
Copy link
Collaborator

cgutman commented Dec 31, 2024

Can you try changing the "Present OpenGL/Vulkan on top of DXGI" option to Disabled on the NVENC Encoder tab?

If it fixes the issue, then we have either a Nvidia driver or Windows bug affecting the Vulkan on DXGI presentation path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants