-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDWM_ExclusiveModeFramerateAveragingPeriodMs.bat
More file actions
100 lines (68 loc) · 2.87 KB
/
DWM_ExclusiveModeFramerateAveragingPeriodMs.bat
File metadata and controls
100 lines (68 loc) · 2.87 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
rem # DWM: ExclusiveModeFramerateAveragingPeriodMs tweak
rem # Desktop Window Manager
rem # !!! WARNING !!!
rem # May cause game freezing if value too low
rem # low values (100 / 0x64) decrease fps for lower input latency, high values (1000 / 0x3e8) increase fps for higher input latency
rem # Can be set lower when using SetTimerResolution -5000 (0.5ms)
rem # !!! WARNING !!!
PAUSE
rem # Executes SetTimerResolution.exe
rem # https://github.com/valleyofdoom/TimerResolution
cd %USERPROFILE%\Downloads\windows11-scripts-main
call SetTimerResolution.bat
rem # https://sites.google.com/site/tweakradje/windows/windows-tweaking
rem # Default (Hex / Decimal): 0x3e8 = 1000
rem # 0x2ee = 750 (FAST SYSTEM ONLY)
rem # 0x1f4 = 500 (VERY FAST SYSTEM ONLY)
rem # 0xfa = 250 (VERY VERY FAST SYSTEM ONLY)
rem # 0x64 = 100 (ULTRA FAST SYSTEM ONLY)
@echo off
echo.
echo Exclusive Mode Framerate Averaging Period Ms
echo.
echo 1. ExclusiveModeFramerateAveragingPeriodMs: 0x64 = 100 (ULTRA FAST SYSTEM ONLY) (LOWER LATENCY)
echo 2. ExclusiveModeFramerateAveragingPeriodMs: 0xfa = 250
echo 3. ExclusiveModeFramerateAveragingPeriodMs: 0x1f4 = 500
echo 4. ExclusiveModeFramerateAveragingPeriodMs: 0x2ee = 750
echo 5. ExclusiveModeFramerateAveragingPeriodMs: 0x3e8 = 1000 (VERY SMOOTH) (DEFAULT)
echo C. Cancel
echo.
choice /c 12345C /m "Choose an option :"
if 6 EQU %ERRORLEVEL% (
echo User chose to cancel.
) else if 5 EQU %ERRORLEVEL% (
call :period5
) else if 4 EQU %ERRORLEVEL% (
call :period4
) else if 3 EQU %ERRORLEVEL% (
call :period3
) else if 2 EQU %ERRORLEVEL% (
call :period2
) else if 1 EQU %ERRORLEVEL% (
call :period1
) else if 0 EQU %ERRORLEVEL% (
echo User bailed out.
)
goto :eof
:period1
echo User chose ExclusiveModeFramerateAveragingPeriodMs: 0x64 = 100 (ULTRA FAST SYSTEM ONLY) (LOWER LATENCY)
reg add "HKLM\SOFTWARE\Microsoft\Windows\Dwm\ExtendedComposition" /v "ExclusiveModeFramerateAveragingPeriodMs" /t REG_DWORD /d "0x64" /f
goto :end
:period2
echo User chose ExclusiveModeFramerateAveragingPeriodMs: 0xfa = 250
reg add "HKLM\SOFTWARE\Microsoft\Windows\Dwm\ExtendedComposition" /v "ExclusiveModeFramerateAveragingPeriodMs" /t REG_DWORD /d "0xfa" /f
goto :end
:period3
echo User chose ExclusiveModeFramerateAveragingPeriodMs: 0x1f4 = 500
reg add "HKLM\SOFTWARE\Microsoft\Windows\Dwm\ExtendedComposition" /v "ExclusiveModeFramerateAveragingPeriodMs" /t REG_DWORD /d "0x1f4" /f
goto :end
:period4
echo User chose ExclusiveModeFramerateAveragingPeriodMs: 0x2ee = 750
reg add "HKLM\SOFTWARE\Microsoft\Windows\Dwm\ExtendedComposition" /v "ExclusiveModeFramerateAveragingPeriodMs" /t REG_DWORD /d "0x2ee" /f
goto :end
:period5
echo User chose ExclusiveModeFramerateAveragingPeriodMs: 0x3e8 = 1000 (VERY SMOOTH) (DEFAULT)
reg add "HKLM\SOFTWARE\Microsoft\Windows\Dwm\ExtendedComposition" /v "ExclusiveModeFramerateAveragingPeriodMs" /t REG_DWORD /d "0x3e8" /f
goto :end
:end
PAUSE