diff --git a/mods/[all]/raise gpu driver timeout/description.txt b/mods/[all]/raise gpu driver timeout/description.txt new file mode 100644 index 0000000..d2645dd --- /dev/null +++ b/mods/[all]/raise gpu driver timeout/description.txt @@ -0,0 +1 @@ +Raises the TDR timeout from 2 seconds to 16 seconds. Reduces false detection of GPU driver crashes due to strong spikes of usage. \ No newline at end of file diff --git a/mods/[all]/raise gpu driver timeout/modscript.py b/mods/[all]/raise gpu driver timeout/modscript.py new file mode 100644 index 0000000..4ff605b --- /dev/null +++ b/mods/[all]/raise gpu driver timeout/modscript.py @@ -0,0 +1,3 @@ +for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"): + if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"): + opusnt.runReg(["add",key+ "\\Control\\GraphicsDrivers","/v","TdrDelay","/t","REG_DWORD","/d","0x00000010","/f"]) diff --git a/mods/[all]/raise gpu driver timeout/tags.txt b/mods/[all]/raise gpu driver timeout/tags.txt new file mode 100644 index 0000000..fc0351f --- /dev/null +++ b/mods/[all]/raise gpu driver timeout/tags.txt @@ -0,0 +1 @@ +stability \ No newline at end of file