From a8dbbcfa31270c9523d4b8bbe2670d1703e7cbd0 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Thu, 11 Jul 2024 14:40:41 +0300 Subject: [PATCH] [util] Reorder config options by API --- src/util/config/config.cpp | 76 ++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index 084669390..327c9af39 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -17,6 +17,44 @@ namespace dxvk { const static ProfileList g_profiles = {{ + /**********************************************/ + /* D3D12 GAMES (vkd3d-proton with dxvk dxgi) */ + /**********************************************/ + + /* Diablo 4 - Will complain about missing * + * GPU unless dxgi Id match actual GPU Id */ + { R"(\\Diablo IV\.exe$)", {{ + { "dxgi.hideNvidiaGpu", "False" }, + }} }, + /* WILD HEARTS™️ * + * D3D12 title using D3D11 device for * + * media texture creation, whereby a large * + * chunk size only slows down media * + * initialization */ + { R"(\\WILD HEARTS(_Trial)?\.exe$)", {{ + { "dxvk.maxChunkSize", "4" }, + }} }, + /* Ratchet & Clank: Rift Apart - does not allow + * enabling ray tracing if it sees an AMD GPU. */ + { R"(\\RiftApart\.exe$)", {{ + { "dxgi.hideNvidiaGpu", "False" }, + }} }, + /* Metro Exodus Enhanced Edition picks GPU adapters + * by available VRAM, which causes issues on some + * systems with integrated graphics. */ + { R"(\\Metro Exodus Enhanced Edition\\MetroExodus\.exe$)", {{ + { "dxvk.hideIntegratedGraphics", "True" }, + }} }, + /* Persona 3 Reload - disables vsync by default and + * runs into severe frame latency issues on Deck. */ + { R"(\\P3R\.exe$)", {{ + { "dxgi.syncInterval", "1" }, + }} }, + + /**********************************************/ + /* D3D11 GAMES */ + /**********************************************/ + /* Assassin's Creed Syndicate: amdags issues */ { R"(\\ACS\.exe$)", {{ { "dxgi.customVendorId", "10de" }, @@ -949,7 +987,8 @@ namespace dxvk { }} }, /* Battle for Middle-earth 2 and expansion * * Slowdowns in certain scenarios */ - { R"(\\(The Battle for Middle-earth (\(tm\))? II( Demo)?|The Lord of the Rings, The Rise of the Witch-king)\\game\.dat$)", {{ + { R"(\\(The Battle for Middle-earth( \(tm\))? II( Demo)?)" + R"(|The Lord of the Rings, The Rise of the Witch-king)\\game\.dat$)", {{ { "d3d9.cachedDynamicBuffers", "True" }, }} }, /* WRC4 - Audio breaks above 60fps */ @@ -957,41 +996,6 @@ namespace dxvk { { "d3d9.maxFrameRate", "60" }, }} }, - - /**********************************************/ - /* D3D12 GAMES (vkd3d-proton with dxvk dxgi) */ - /**********************************************/ - - /* Diablo 4 - Will complain about missing * - * GPU unless dxgi Id match actual GPU Id */ - { R"(\\Diablo IV\.exe$)", {{ - { "dxgi.hideNvidiaGpu", "False" }, - }} }, - /* WILD HEARTS™️ * - * D3D12 title using D3D11 device for * - * media texture creation, whereby a large * - * chunk size only slows down media * - * initialization */ - { R"(\\WILD HEARTS(_Trial)?\.exe$)", {{ - { "dxvk.maxChunkSize", "4" }, - }} }, - /* Ratchet & Clank: Rift Apart - does not allow - * enabling ray tracing if it sees an AMD GPU. */ - { R"(\\RiftApart\.exe$)", {{ - { "dxgi.hideNvidiaGpu", "False" }, - }} }, - /* Metro Exodus Enhanced Edition picks GPU adapters - * by available VRAM, which causes issues on some - * systems with integrated graphics. */ - { R"(\\Metro Exodus Enhanced Edition\\MetroExodus\.exe$)", {{ - { "dxvk.hideIntegratedGraphics", "True" }, - }} }, - /* Persona 3 Reload - disables vsync by default and - * runs into severe frame latency issues on Deck. */ - { R"(\\P3R\.exe$)", {{ - { "dxgi.syncInterval", "1" }, - }} }, - /**********************************************/ /* D3D8 GAMES */ /**********************************************/