mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
parent
10b272b4c9
commit
2d55852777
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -63,6 +63,10 @@ namespace dxvk {
|
||||
{ "QuantumBreak.exe", {{
|
||||
{ "d3d11.zeroInitWorkgroupMemory", "True" },
|
||||
}} },
|
||||
/* Anno 2205 */
|
||||
{ "anno2205.exe", {{
|
||||
{ "dxvk.enableStateCache", "False" },
|
||||
}} },
|
||||
}};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user