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

The "Vulkan/OpenGL Present Method" option in the Nvidia control panel will automatically switch to "Prefer layered on DXGI swapchain". #1771

Closed
3 tasks done
EdLovecraft opened this issue Oct 21, 2023 · 4 comments · Fixed by #2051
Labels
bug Something isn't working stale

Comments

@EdLovecraft
Copy link

EdLovecraft commented Oct 21, 2023

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 nightly release?

  • This issue is present in the nightly release

Describe the Bug

When running Sunshine, the "Vulkan/OpenGL Present Method" option in the Nvidia Control Panel will automatically switch to "Prefer layered on DXGI Swapchain". Resulting in significant frame rate drops in games using OpenGL, such as Minecraft

Expected Behavior

Do not change "Vulkan/OpenGL Present Method" option

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 10 Pro 22H2 19045.3570

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Windows - installer

GPU Type

Nvidia

GPU Model

NVIDIA GeForce RTX 3070 Laptop

GPU Driver/Mesa Version

545.84

Capture Method (Linux Only)

No response

Config

upnp = enabled

Apps

No response

Relevant log output

[2023:10:21:14:55:58]: Info: nvprefs: No need to modify application profile settings
[2023:10:21:14:55:58]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2023:10:21:14:55:58]: Info: Sunshine version: 0.21.0
[2023:10:21:14:55:58]: Info: Compiling shaders...
[2023:10:21:14:55:58]: Info: System tray created
[2023:10:21:14:55:58]: Info: Compiled shaders
[2023:10:21:14:55:58]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:10:21:14:55:58]: Info: Trying encoder [nvenc]
[2023:10:21:14:55:58]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2023:10:21:14:55:58]: Info: Set GPU preference: 1
[2023:10:21:14:55:59]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:55:59]: Info: Active GPU has HAGS enabled
[2023:10:21:14:55:59]: Info: Using realtime GPU priority
[2023:10:21:14:55:59]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:55:59]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:55:59]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:55:59]: Info: Requested frame rate [60fps]
[2023:10:21:14:55:59]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:00]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:00]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:00]: Info: Using realtime GPU priority
[2023:10:21:14:56:00]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:00]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:00]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:00]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:00]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:00]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:00]: Info: Color depth: 8-bit
[2023:10:21:14:56:00]: Info: Color range: [JPEG]
[2023:10:21:14:56:00]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:10:21:14:56:01]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:01]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:01]: Info: Using realtime GPU priority
[2023:10:21:14:56:01]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:01]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:01]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:01]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:01]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:01]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:01]: Info: Color depth: 8-bit
[2023:10:21:14:56:01]: Info: Color range: [JPEG]
[2023:10:21:14:56:01]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:10:21:14:56:02]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:02]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:02]: Info: Using realtime GPU priority
[2023:10:21:14:56:02]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:02]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:02]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:02]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:02]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:02]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:02]: Info: Color depth: 8-bit
[2023:10:21:14:56:02]: Info: Color range: [JPEG]
[2023:10:21:14:56:02]: Error: NvEnc: encoding format is not supported by the gpu
[2023:10:21:14:56:02]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:02]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:02]: Info: Using realtime GPU priority
[2023:10:21:14:56:02]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:02]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:02]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:02]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:02]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:02]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:02]: Info: Color depth: 8-bit
[2023:10:21:14:56:02]: Info: Color range: [JPEG]
[2023:10:21:14:56:02]: Error: NvEnc: encoding format is not supported by the gpu
[2023:10:21:14:56:03]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:03]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:03]: Info: Using realtime GPU priority
[2023:10:21:14:56:03]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:03]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:03]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:03]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:03]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:03]: Info: SDR color coding [Rec. 709]
[2023:10:21:14:56:03]: Info: Color depth: 10-bit
[2023:10:21:14:56:03]: Info: Color range: [JPEG]
[2023:10:21:14:56:03]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:10:21:14:56:03]: Info: 
[2023:10:21:14:56:03]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:10:21:14:56:03]: Info: 
[2023:10:21:14:56:03]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2023:10:21:14:56:03]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2023:10:21:14:56:03]: Info: Configuration UI available at [https://localhost:47990]
[2023:10:21:14:56:04]: Info: Registered Sunshine mDNS service
[2023:10:21:14:56:07]: Warning: Unable to find MAC address for 127.0.0.1
[2023:10:21:14:56:07]: Warning: Unable to find MAC address for 127.0.0.1
[2023:10:21:14:56:11]: Warning: Couldn't discover any IPv4 UPNP devices
[2023:10:21:14:56:12]: Warning: Unable to find MAC address for 127.0.0.1
[2023:10:21:14:56:12]: Warning: Unable to find MAC address for 127.0.0.1
[2023:10:21:14:56:22]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:10:21:14:56:22]: Info: Trying encoder [nvenc]
[2023:10:21:14:56:22]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:22]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:22]: Info: Using realtime GPU priority
[2023:10:21:14:56:22]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:22]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:22]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:22]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:22]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:23]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:23]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:23]: Info: Using realtime GPU priority
[2023:10:21:14:56:23]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:23]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:23]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:23]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:23]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:23]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:23]: Info: Color depth: 8-bit
[2023:10:21:14:56:23]: Info: Color range: [JPEG]
[2023:10:21:14:56:23]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:10:21:14:56:24]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:24]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:24]: Info: Using realtime GPU priority
[2023:10:21:14:56:24]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:24]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:24]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:24]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:24]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:24]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:24]: Info: Color depth: 8-bit
[2023:10:21:14:56:24]: Info: Color range: [JPEG]
[2023:10:21:14:56:24]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:10:21:14:56:25]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:25]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:25]: Info: Using realtime GPU priority
[2023:10:21:14:56:25]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:25]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:25]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:25]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:25]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:25]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:25]: Info: Color depth: 8-bit
[2023:10:21:14:56:25]: Info: Color range: [JPEG]
[2023:10:21:14:56:25]: Error: NvEnc: encoding format is not supported by the gpu
[2023:10:21:14:56:26]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:26]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:26]: Info: Using realtime GPU priority
[2023:10:21:14:56:26]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:26]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:26]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:26]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:26]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:26]: Info: SDR color coding [Rec. 601]
[2023:10:21:14:56:26]: Info: Color depth: 8-bit
[2023:10:21:14:56:26]: Info: Color range: [JPEG]
[2023:10:21:14:56:26]: Error: NvEnc: encoding format is not supported by the gpu
[2023:10:21:14:56:26]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:26]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:26]: Info: Using realtime GPU priority
[2023:10:21:14:56:26]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:26]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:26]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:26]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:26]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:26]: Info: SDR color coding [Rec. 709]
[2023:10:21:14:56:26]: Info: Color depth: 10-bit
[2023:10:21:14:56:26]: Info: Color range: [JPEG]
[2023:10:21:14:56:26]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2023:10:21:14:56:26]: Info: 
[2023:10:21:14:56:26]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:10:21:14:56:26]: Info: 
[2023:10:21:14:56:26]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2023:10:21:14:56:26]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2023:10:21:14:56:26]: Info: Executing [Desktop]
[2023:10:21:14:56:27]: Info: nvprefs: No need to modify application profile settings
[2023:10:21:14:56:27]: Info: nvprefs: No need to modify global profile settings
[2023:10:21:14:56:27]: Info: CLIENT CONNECTED
[2023:10:21:14:56:27]: Info: 
Device Description : NVIDIA GeForce RTX 3070 Laptop GPU
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x0000249D
Device Video Mem   : 8033 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16382 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:10:21:14:56:27]: Info: Active GPU has HAGS enabled
[2023:10:21:14:56:27]: Info: Using realtime GPU priority
[2023:10:21:14:56:27]: Info: Desktop resolution [2560x1440]
[2023:10:21:14:56:27]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:27]: Info: Display refresh rate [165.003Hz]
[2023:10:21:14:56:27]: Info: Requested frame rate [60fps]
[2023:10:21:14:56:27]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.679688,0.320312]
Green Primary      : [0.264648,0.69043]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2023:10:21:14:56:27]: Info: SDR color coding [Rec. 709]
[2023:10:21:14:56:27]: Info: Color depth: 8-bit
[2023:10:21:14:56:27]: Info: Color range: [MPEG]
[2023:10:21:14:56:27]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:10:21:14:56:27]: Info: NvEnc: created encoder P1 two-pass rfi
[2023:10:21:14:56:29]: Info: CLIENT DISCONNECTED
[2023:10:21:14:57:11]: Info: Opening UI from system tray
[2023:10:21:14:57:11]: Info: cmd /C "start https://localhost:47990" running with PID 4588
[2023:10:21:14:57:11]: Info: Opened url [https://localhost:47990]
@EdLovecraft EdLovecraft changed the title The "Vulkan/OpenGL Current Method" option in the Nvidia control panel will automatically switch to "Prefer layering on DXGI exchange chain". The "Vulkan/OpenGL Present Method" option in the Nvidia control panel will automatically switch to "Prefer layered on DXGI swapchain". Oct 21, 2023
@ns6089
Copy link
Contributor

ns6089 commented Oct 21, 2023

  1. Precisely how "significant" your frame rate drops? Outside of active streaming with sunshine, which reduces frame rate on its own
  2. That option is the only way for sunshine to capture fullscreen opengl/vulkan at full frame rate due to driver limitations
  3. You can quit sunshine and the option will be reverted to what it was before

@EdLovecraft
Copy link
Author

EdLovecraft commented Oct 21, 2023

  1. Precisely how "significant" your frame rate drops? Outside of active streaming with sunshine, which reduces frame rate on its own
  2. That option is the only way for sunshine to capture fullscreen opengl/vulkan at full frame rate due to driver limitations
  3. You can quit sunshine and the option will be reverted to what it was before
  1. With shader enabled in Minecraft, my GPU utilisation never exceeds 85%, and my framerate is about 30-40% lower than it would otherwise be, regardless of whether I'm streaming or not, and this drop in framerate isn't from sunshine, it's from "Prefer layered on DXGI swapchain" because of the added overhead of having to add a translation layer.
  2. Versions 0.20.0 and earlier do not modify this option in the global profile and I do not see any problems
  3. It doesn't automatically change back on my computer.

@ns6089
Copy link
Contributor

ns6089 commented Oct 22, 2023

With shader enabled in Minecraft, my GPU utilisation never exceeds 85%, and my framerate is about 30-40% lower than it would otherwise be, regardless of whether I'm streaming or not, and this drop in framerate isn't from sunshine, it's from "Prefer layered on DXGI swapchain" because of the added overhead of having to add a translation layer.

Will try to reproduce.

Versions 0.20.0 and earlier do not modify this option in the global profile and I do not see any problems

Then you used windowed fullscreen or had extra frames to compensate. Basically only second or third frame was getting captured.

It doesn't automatically change back on my computer.

It should as long as sunshine exits gracefully (for example from tray menu). Try restarting nvidia control panel, it doesn't refresh with outside modifications of options.

@LizardByte-bot
Copy link
Member

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!

@cgutman cgutman added the bug Something isn't working label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants