1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Disable state cache for Anno 2205

Fixes #686.
This commit is contained in:
Philip Rebohle 2018-11-24 20:04:21 +01:00
parent 10b272b4c9
commit 2d55852777
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 9 additions and 1 deletions

View File

@ -4,6 +4,7 @@ namespace dxvk {
DxvkOptions::DxvkOptions(const Config& config) {
allowMemoryOvercommit = config.getOption<bool> ("dxvk.allowMemoryOvercommit", false);
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
}

View File

@ -12,6 +12,9 @@ namespace dxvk {
/// a heap than the device supports.
bool allowMemoryOvercommit;
/// Enable state cache
bool enableStateCache;
/// Number of compiler threads
/// when using the state cache
int32_t numCompilerThreads;

View File

@ -46,7 +46,7 @@ namespace dxvk {
m_cache (new DxvkPipelineCache(device->vkd())) {
std::string useStateCache = env::getEnvVar("DXVK_STATE_CACHE");
if (useStateCache != "0")
if (useStateCache != "0" && device->config().enableStateCache)
m_stateCache = new DxvkStateCache(device, this, passManager);
}

View File

@ -63,6 +63,10 @@ namespace dxvk {
{ "QuantumBreak.exe", {{
{ "d3d11.zeroInitWorkgroupMemory", "True" },
}} },
/* Anno 2205 */
{ "anno2205.exe", {{
{ "dxvk.enableStateCache", "False" },
}} },
}};