From 24d4c9c93872061a91b175df062b5ed272502b94 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 22 Feb 2024 15:38:28 +0100 Subject: [PATCH] [util] Disable command lists for Granblue Fantasy Relink The uses deferred contexts for rendering if driver command lists are enabled, but when AMDAGS is loaded, it will also unconditionally use MultiDrawIndirect functions. Since the AGS version in use does not support deferred contexts, this breaks rendering, so we will have to force it into the immediate context path. Testing also shows slightly higher performance (~3-5%) with this path in CPU-bound scenarios. --- src/util/config/config.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index 60f1d7ca..efa9f443 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -431,9 +431,12 @@ namespace dxvk { { "d3d11.cachedDynamicResources", "v" }, }} }, /* Granblue Relink: Spams pixel shader UAVs * - * like crazy, much like God of War */ + * and assumes that AMD GPUs do not expose * + * native command lists for AGS usage */ { R"(\\granblue_fantasy_relink\.exe$)", {{ - { "d3d11.ignoreGraphicsBarriers", "True" }, + { "d3d11.ignoreGraphicsBarriers", "True" }, + { "d3d11.exposeDriverCommandLists", "False" }, + { "dxgi.hideNvidiaGpu", "False" }, }} }, /**********************************************/