forked from shoober420/windows11-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnableAMDGPU_DalDramClockChangeLatencyNs.bat
More file actions
33 lines (22 loc) · 1.12 KB
/
EnableAMDGPU_DalDramClockChangeLatencyNs.bat
File metadata and controls
33 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
rem # Enable AMDGPU DalDramClockChangeLatencyNs tweak
rem # !!! WARNING !!!
rem # DalDramClockChangeLatencyNs below can cause screen flickering, run DisableAMD_DalDramClockChangeLatencyNs.bat to fix
rem # !!! WARNING !!!
PAUSE
rem # https://www.elevenforum.com/members/garlin.5387/
rem # https://www.elevenforum.com/t/gpu-tweaks-batch-script.30134/post-521530
if not exist C:\Windows\System32\wbem\WMIC.exe (
echo Installing WMIC...
DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
echo Done.
)
rem # Last key may vary from 0000 to 0001 if dual NVIDIA/AMD machine is used
for /f %%i in ('wmic path Win32_VideoController get PNPDeviceID^| findstr /L "PCI\VEN_"') do (
for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\ControlSet001\Enum\%%i" /v "Driver"') do (
for /f %%i in ('echo %%a ^| findstr "{"') do (
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i" /v "DalDramClockChangeLatencyNs" /t REG_DWORD /d "1" /f
rem reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Class\%%i\DalDramClockChangeLatencyNs"
)
)
)
PAUSE