From 51e56c04209294cb38c174ec76129bdb857d85c9 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Mon, 18 Apr 2022 18:23:31 +0300 Subject: [PATCH] [util] Enforce a maxAvailableMemory limit for Majesty 2 --- src/util/config/config.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index 427b1ba9e..fc980b8e6 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -531,6 +531,14 @@ namespace dxvk { { R"(\\SWTFU2\.exe$)", {{ { "d3d9.forceSamplerTypeSpecConstants", "True" }, }} }, + /* Majesty 2 (Collection) * + * Crashes on UMA without a memory limit, * + * since the game(s) will allocate all * + * available VRAM on startup. */ + { R"(\\Majesty2\.exe$)", {{ + { "d3d9.memoryTrackTest", "True" }, + { "d3d9.maxAvailableMemory", "2048" }, + }} }, }};