Repository navigation
Keep the DirectX Shader Cache
github-actions[bot] edited this page Oct 8, 2026
·
1 revision
Takes the DirectX Shader Cache out of Windows' automatic cleanups, such as Storage Sense and the Disk Cleanup Windows runs on its own when a drive gets low on space.
- Windows keeps the shaders DirectX games compile in a cache (the D3DSCache folder), so they aren't compiled again next time.
- The automatic cleanups count that cache as junk and delete it. After that, every game rebuilds its shaders while you play, with the stutter of a first run.
- Keeping the cache keeps games as smooth on their next start as they were at the end of the last one.
- The cache is no longer trimmed automatically, so it uses some disk space. It's usually a few GB at most.
- Disk Cleanup still lists DirectX Shader Cache when you run it yourself, so you can clear it by hand if a game's cache ever goes bad, for example after a game update starts crashing on load.
Requires administrator rights. No restart needed.
- Sets Autorun=0 under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\D3D Shader Cache. Windows ships it as 1, which lets automatic cleanups empty the cache.
- TrayTrigger records the value it found first and puts exactly that back on Restore Previous.
- Shown as N/A on a copy of Windows that has no DirectX Shader Cache cleanup handler, since then nothing deletes the cache automatically.
Part of Performance Tweaks. This page is the same text as the app's Learn more button, generated from Help/tweaks/dx_shader_cache.md. To fix something, edit that file (or open an issue); wiki edits are overwritten on the next sync.
TrayTrigger | Download | Report a bug | Security policy | Free and open source (MIT)
Performance Tweaks
- How Performance Tweaks work
- AMD V-Cache optimizer
- Auto HDR
- Browser and chat apps holding video memory
- Core Isolation / Memory Integrity (HVCI)
- Disable Delivery Optimization
- Disable Diagnostic Telemetry Sweeps
- Disable Fullscreen Optimization Compatibility Shims
- Disable Game Bar Captures and Background Recording
- Disable MMCSS Network Throttling
- Disable Mouse Acceleration (Enhanced Pointer Precision)
- Disable Multiplane Overlay (MPO)
- Disable Nagle's Algorithm (TCP Send Delay)
- Disable Sticky, Filter, and Toggle Keys Shortcuts
- Disable Xbox Game Bar Overlay
- Exclude Drivers from Windows Update
- Foreground Priority Boost
- Hardware-Accelerated GPU Scheduling (HAGS)
- Intel Application Optimization (APO)
- Keep the DirectX Shader Cache
- Memory speed: XMP and EXPO
- NVIDIA Shader Cache: Unlimited
- Optimizations for Windowed Games (DirectFlip Model)
- Overlays: keep one
- Stutter Check
- System Restore points
- System Timer Resolution
- "Ultimate Plan - TrayTrigger" Power Plan (always on)
- Variable Refresh Rate for Windowed Games
- Windows Game Mode
- Windows Search is indexing
- Windows Visual Effects (Performance Mode)
Performance Profiles
- How Performance Profiles work
- 0.5 ms Timer Resolution Request
- Above Normal Process Priority (profile)
- CPU Cores
- Do Not Disturb While Playing
- Enable Auto HDR (profile)
- Enable HDR (profile)
- Exempt the Game From Power Throttling (profile)
- Frame Cap Just Under Your Refresh Rate (profile)
- MMCSS "Games" Task Priority (profile)
- NVIDIA: Prefer Maximum Performance (profile)
- Resizable BAR for Games NVIDIA Hasn't Decided On (profile)
- System Responsiveness (profile)
- "Ultimate Plan - TrayTrigger" Power Plan (profile)
- Unmute Speakers While Playing
- Windows Defender Exclusion for Game Files (profile)
- Windows High-Performance GPU Preference (profile)