mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
parent
10b272b4c9
commit
2d55852777
@ -4,6 +4,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
DxvkOptions::DxvkOptions(const Config& config) {
|
DxvkOptions::DxvkOptions(const Config& config) {
|
||||||
allowMemoryOvercommit = config.getOption<bool> ("dxvk.allowMemoryOvercommit", false);
|
allowMemoryOvercommit = config.getOption<bool> ("dxvk.allowMemoryOvercommit", false);
|
||||||
|
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
|
||||||
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
|
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,9 @@ namespace dxvk {
|
|||||||
/// a heap than the device supports.
|
/// a heap than the device supports.
|
||||||
bool allowMemoryOvercommit;
|
bool allowMemoryOvercommit;
|
||||||
|
|
||||||
|
/// Enable state cache
|
||||||
|
bool enableStateCache;
|
||||||
|
|
||||||
/// Number of compiler threads
|
/// Number of compiler threads
|
||||||
/// when using the state cache
|
/// when using the state cache
|
||||||
int32_t numCompilerThreads;
|
int32_t numCompilerThreads;
|
||||||
|
@ -46,7 +46,7 @@ namespace dxvk {
|
|||||||
m_cache (new DxvkPipelineCache(device->vkd())) {
|
m_cache (new DxvkPipelineCache(device->vkd())) {
|
||||||
std::string useStateCache = env::getEnvVar("DXVK_STATE_CACHE");
|
std::string useStateCache = env::getEnvVar("DXVK_STATE_CACHE");
|
||||||
|
|
||||||
if (useStateCache != "0")
|
if (useStateCache != "0" && device->config().enableStateCache)
|
||||||
m_stateCache = new DxvkStateCache(device, this, passManager);
|
m_stateCache = new DxvkStateCache(device, this, passManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,6 +63,10 @@ namespace dxvk {
|
|||||||
{ "QuantumBreak.exe", {{
|
{ "QuantumBreak.exe", {{
|
||||||
{ "d3d11.zeroInitWorkgroupMemory", "True" },
|
{ "d3d11.zeroInitWorkgroupMemory", "True" },
|
||||||
}} },
|
}} },
|
||||||
|
/* Anno 2205 */
|
||||||
|
{ "anno2205.exe", {{
|
||||||
|
{ "dxvk.enableStateCache", "False" },
|
||||||
|
}} },
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user