mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-23 19:54:16 +01:00
[dxgi] Add option to expose composition swapchains
This commit is contained in:
parent
0a19e5b6db
commit
76f9bec7cc
11
dxvk.conf
11
dxvk.conf
@ -18,6 +18,17 @@
|
|||||||
# dxgi.enableHDR = True
|
# 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
|
# Allows the Vulkan driver to opt-in to exclusive full-screen mode on
|
||||||
# Windows. Certain features, such as variable refresh rate or HDR, will
|
# Windows. Certain features, such as variable refresh rate or HDR, will
|
||||||
# not work without this setting, however enabling it will break certain
|
# not work without this setting, however enabling it will break certain
|
||||||
|
@ -93,6 +93,9 @@ namespace dxvk {
|
|||||||
this->maxFrameRate = config.getOption<int32_t>("dxgi.maxFrameRate", 0);
|
this->maxFrameRate = config.getOption<int32_t>("dxgi.maxFrameRate", 0);
|
||||||
this->syncInterval = config.getOption<int32_t>("dxgi.syncInterval", -1);
|
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
|
// Expose Nvidia GPUs properly if NvAPI is enabled in environment
|
||||||
this->hideNvidiaGpu = !isNvapiEnabled();
|
this->hideNvidiaGpu = !isNvapiEnabled();
|
||||||
applyTristate(this->hideNvidiaGpu, config.getOption<Tristate>("dxgi.hideNvidiaGpu", Tristate::Auto));
|
applyTristate(this->hideNvidiaGpu, config.getOption<Tristate>("dxgi.hideNvidiaGpu", Tristate::Auto));
|
||||||
|
@ -46,6 +46,9 @@ namespace dxvk {
|
|||||||
/// Enable HDR
|
/// Enable HDR
|
||||||
bool enableHDR;
|
bool enableHDR;
|
||||||
|
|
||||||
|
/// Enable support for dummy composition swapchains
|
||||||
|
bool enableDummyCompositionSwapchain;
|
||||||
|
|
||||||
/// Limit frame rate
|
/// Limit frame rate
|
||||||
int32_t maxFrameRate;
|
int32_t maxFrameRate;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user