From 53f00dfecc0332495ec899835c1581328a25af85 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Wed, 26 Oct 2022 17:36:24 +0200 Subject: vkd3d: Add NO_UPLOAD_HVV workaround on Elden Ring. Works around disasterous CPU performance during skeleton animations according to several users, especially on NVIDIA. The game does not seem to benefit from ReBAR on UPLOAD heaps either way. Signed-off-by: Hans-Kristian Arntzen --- libs/vkd3d/device.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index edc8bb88..5df14904 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -532,10 +532,12 @@ static const struct vkd3d_instance_application_meta application_override[] = { { VKD3D_STRING_COMPARE_EXACT, "SOTTR.exe", VKD3D_CONFIG_FLAG_FORCE_NO_INVARIANT_POSITION, 0 }, /* Elden Ring (1245620). * Game is really churny on committed memory allocations, and does not use NOT_ZEROED. Clearing works causes bubbles. - * It seems to work just fine however to skip the clears. */ + * It seems to work just fine however to skip the clears. + * No upload HVV works around disasterous CPU performance during skeleton animations, reported by multiple users. + * No obvious benefit for ReBAR in this title anyways. */ { VKD3D_STRING_COMPARE_EXACT, "eldenring.exe", VKD3D_CONFIG_FLAG_MEMORY_ALLOCATOR_SKIP_CLEAR | VKD3D_CONFIG_FLAG_PIPELINE_LIBRARY_IGNORE_MISMATCH_DRIVER | - VKD3D_CONFIG_FLAG_RECYCLE_COMMAND_POOLS, 0 }, + VKD3D_CONFIG_FLAG_RECYCLE_COMMAND_POOLS | VKD3D_CONFIG_FLAG_NO_UPLOAD_HVV, 0 }, /* Serious Sam 4 (257420). * Invariant workarounds cause graphical glitches when rendering foliage on NV. */ { VKD3D_STRING_COMPARE_EXACT, "Sam4.exe", VKD3D_CONFIG_FLAG_FORCE_NO_INVARIANT_POSITION, 0 }, -- cgit v1.2.3