1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-23 01:54:22 +01:00

[dxgi] Add option to expose composition swapchains

This commit is contained in:
Philip Rebohle 2025-02-10 13:39:56 +01:00
parent 0a19e5b6db
commit 76f9bec7cc
3 changed files with 17 additions and 0 deletions

View File

@ -18,6 +18,17 @@
# dxgi.enableHDR = True
# Expose support for dcomp swap chains with a dummy window.
#
# This is not a valid implementation of DirectComposition swapchains,
# however some games may rely on this functionality to be present while
# others may require swap chain creation to fail.
#
# Supported values: True, False
# dxgi.enableDummyCompositionSwapchain = False
# Allows the Vulkan driver to opt-in to exclusive full-screen mode on
# Windows. Certain features, such as variable refresh rate or HDR, will
# not work without this setting, however enabling it will break certain

View File

@ -93,6 +93,9 @@ namespace dxvk {
this->maxFrameRate = config.getOption<int32_t>("dxgi.maxFrameRate", 0);
this->syncInterval = config.getOption<int32_t>("dxgi.syncInterval", -1);
// We don't support dcomp swapchains and some games may rely on them failing on creation
this->enableDummyCompositionSwapchain = config.getOption<bool>("dxgi.enableDummyCompositionSwapchain", false);
// Expose Nvidia GPUs properly if NvAPI is enabled in environment
this->hideNvidiaGpu = !isNvapiEnabled();
applyTristate(this->hideNvidiaGpu, config.getOption<Tristate>("dxgi.hideNvidiaGpu", Tristate::Auto));

View File

@ -46,6 +46,9 @@ namespace dxvk {
/// Enable HDR
bool enableHDR;
/// Enable support for dummy composition swapchains
bool enableDummyCompositionSwapchain;
/// Limit frame rate
int32_t maxFrameRate;