Skip to content

Commit

Permalink
[dxgi] Remove useMonitorFallback option
Browse files Browse the repository at this point in the history
QueryDisplayConfig optimization is now in Proton 9 Wine
  • Loading branch information
Blisto91 authored and doitsujin committed Mar 21, 2024
1 parent 2742486 commit 28c7c09
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 34 deletions.
12 changes: 0 additions & 12 deletions dxvk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -644,18 +644,6 @@

# d3d9.textureMemory = 100

# Always enumerate all monitors on each dxgi output
#
# Used to avoid performance degradation in some games
# (will be deprecated once QueryDisplayConfig optimization
# is in Proton Wine).
#
# Supported values:
# - True/False

# dxgi.useMonitorFallback = False


# Hide integrated graphics from applications
#
# Only has an effect when dedicated GPUs are present on the system. It is
Expand Down
3 changes: 0 additions & 3 deletions src/dxgi/dxgi_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,10 @@ namespace dxvk {
}
}


// If any monitors are left on the list, enable the
// fallback to always enumerate all monitors.
if ((m_monitorFallback = !monitors.empty()))
Logger::warn("DXGI: Found monitors not associated with any adapter, using fallback");
else
m_monitorFallback = m_options.useMonitorFallback;
}


Expand Down
4 changes: 0 additions & 4 deletions src/dxgi/dxgi_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ namespace dxvk {
Logger::info("HDR was configured to be enabled, but has been force disabled as a UE4 DX11 game was detected.");
this->enableHDR = false;
}

this->useMonitorFallback = config.getOption<bool>("dxgi.useMonitorFallback", env::getEnvVar("DXVK_MONITOR_FALLBACK") == "1");
if (this->useMonitorFallback)
Logger::info("Enabled useMonitorFallback option");
}

}
3 changes: 0 additions & 3 deletions src/dxgi/dxgi_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ namespace dxvk {
/// Enable HDR
bool enableHDR;

/// Use monitor fallback to enumerating all monitors per output
bool useMonitorFallback;

/// Sync interval. Overrides the value
/// passed to IDXGISwapChain::Present.
int32_t syncInterval;
Expand Down
12 changes: 0 additions & 12 deletions src/util/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,6 @@ namespace dxvk {
{ R"(\\RidersRepublic(_BE)?\.exe$)", {{
{ "dxgi.hideAmdGpu", "True" },
}} },
/* HoloCure - Save the Fans!
Same as Cyberpunk 2077 */
{ R"(\\HoloCure\.exe$)", {{
{ "dxgi.useMonitorFallback", "True" },
}} },
/* Kenshi *
* Helps CPU bound performance */
{ R"(\\kenshi_x64\.exe$)", {{
Expand Down Expand Up @@ -901,13 +896,6 @@ namespace dxvk {
{ R"(\\RiftApart\.exe$)", {{
{ "dxgi.hideNvidiaGpu", "False" },
}} },
/* CP2077 enumerates display outputs each frame.
* Avoid using QueryDisplayConfig to avoid
* performance degradation until the
* optimization of that function is in Proton. */
{ R"(\\Cyberpunk2077\.exe$)", {{
{ "dxgi.useMonitorFallback", "True" },
}} },
/* Metro Exodus Enhanced Edition picks GPU adapters
* by available VRAM, which causes issues on some
* systems with integrated graphics. */
Expand Down

0 comments on commit 28c7c09

Please sign in to comment.