An app for managing and automatically applying memory timings profiles using MemTweakIt. Can be used for applying memory timings at startup for systems that don't support some BIOS-level memory timings.
- Windows 10/11 (64-bit)
- MemTweakIt by ASUS ROG (download from your motherboard's support page on asus.com under Drivers & Tools > Utilities)
- Must run as Administrator (MemTweakIt loads a kernel driver)
Place all of these in the same folder:
apply_timings.exe <- this tool
MemTweakIt.exe <- from MemTweakIt download
cpuidsdk.dll <- from MemTweakIt download
cpuidsdk64.dll <- from MemTweakIt download
UpdateHelper.dll <- from MemTweakIt download
Double-click apply_timings.exe (run as admin). Since no timings.ini exists yet, it will:
- Launch MemTweakIt
- Read all your current memory timing values
- Save them to
timings.ini - Tell you to edit the file and run again
Open timings.ini in any text editor. It looks like this:
[Settings]
; Path to MemTweakIt.exe (defaults to same directory as apply_timings.exe)
; Path = C:\path\to\MemTweakIt.exe
StartDelay = 3
; Action: apply = click Apply only, ok = click OK (apply+close)
Action = ok
[Timings]
CAS# Latency (CL) = 52
RAS# to CAS# Delay (tRCD) = 49
tRFC = 670
; ... etc- Change values to your desired timings
- Comment out (
;) or delete any timing you don't want to change - Values must exactly match what appears in MemTweakIt's dropdowns
Double-click apply_timings.exe (run as admin). It will:
- Minimize itself and MemTweakIt to the background
- Set each timing to the value in
timings.ini - Click Apply + OK to commit changes and close
To automatically apply timings every time you log in:
- Open Task Scheduler (
taskschd.msc) - Create a new task (not a basic task)
- General tab: Check "Run with highest privileges"
- Trigger: "At log on" for your user
- Action: "Start a program", browse to
apply_timings.exe - Conditions: Uncheck "Start only if on AC power" if on a desktop
- Settings: Check "Run only when user is logged on"
If you change timings in BIOS or want to capture current values without overwriting your config:
apply_timings.exe --discover
This writes to timings_discovered.ini (your timings.ini is not touched).
apply_timings.exe Apply timings from timings.ini
apply_timings.exe --discover Discover current values, write timings_discovered.ini
apply_timings.exe --ini custom.ini Use a custom INI file
Requires Visual Studio Build Tools (MSVC). From a Developer Command Prompt:
cl /O2 /W3 /MT /D_UNICODE /DUNICODE apply_timings.c /Fe:apply_timings.exe user32.lib kernel32.lib shell32.lib
Single file, no external dependencies. Static CRT (/MT) so no runtime DLLs needed.
The tool automates MemTweakIt's GUI via Win32 SendMessage/PostMessage:
- Launches MemTweakIt and finds its window by PID
- Minimizes both windows to run in the background
- Switches between tabs by clicking tab headers (cross-process
VirtualAllocExfor tab rect coordinates) - Matches each combo box to its label using spatial proximity (label's right edge nearest to combo's left edge at the same Y)
- For dropdown combos: navigates with
VK_DOWN/VK_UPkey messages viaPostMessage - For typable combos: selects all text and types the new value via
WM_CHAR - Verifies each value took by reading it back
- Clicks Apply (commits to hardware) then OK (closes)