Skip to content

NVENC GL/VK DXGI present behaviour. #4408

@TheAllTinker

Description

@TheAllTinker

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

I've enabled the option "Present OpenGL/Vulkan on top of DXGI" under NVENC, since many of the games I want to stream use Vulkan. With current/pre-release versions of Sunshine, the relevant nVidia option is enabled immediately upon startup - regardless if any streaming is taking place.

Image

Unfortunately, this option causes horrible flickering issues in a lot of OpenGL-based software just in regular (non-streaming) use of the machine - for instance Davinci Resolve and KiCad. I can of course just quit Sunshine, and the option is returned to "Auto" as expected, but I believe a better solution (if possible) would be to alter the option as streaming begins and ends instead. There's no need for the option to be on otherwise, especially since it apparently causes pretty severe issues.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 10 Pro 22H2 19045.3324

Architecture

amd64/x86_64

Sunshine commit or version

2025.1027.181930

Package

Windows - installer (recommended)

GPU Type

NVIDIA

GPU Model

3070 Ti

GPU Driver/Mesa Version

581.57

Capture Method

Desktop Duplication API (Windows)

Config

av1_mode = 1
encoder = nvenc
hevc_mode = 1
min_log_level = 3
notify_pre_releases = enabled
sunshine_name = Main PC

Apps

Relevant log output

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions