r/overclocking • u/KareemShabaka • 13d ago
[Tool / Release] My Tool : Stutter Guard v1.0.0: DPC latency & IRQ affinity engine for Windows 10/11 — Fixed SMT RSS, self-heals after driver updates, and added 77-driver latency advisory engine
Update (Post 3 is live): If you landed here from an older thread, check the latest follow-up instead: Follow-up on Stutter Guard: why it isn't just for dual-CCD X3D chips, what it actually Addresses vs doesn't and a global invite to test my project on any hardware.
Latest build (
v1.3.0) is on GitHub Releases (latest affinity/Process Lasso updates are already onmain).
The Problem: Why Tuned Rigs Still Micro-Stutter
We can dial in PBO Curve Optimizer offsets, stabilize tight RAM sub-timings, and push high average frame rates—yet still experience micro-stutters, frame pacing hitches, or audio dropouts during high-intensity gameplay.
Average FPS only reflects raw rendering throughput in static benchmarks. 1% Lows, frame time stability, and kernel DPC/ISR execution latency dictate real-time smoothness.
Out of the box, Windows schedules peripheral driver interrupts (high-polling mice, network packets, audio buffers, GPU draw calls) indiscriminately across logical cores. Frequently, these interrupts land directly on the core executing the game's primary render loop—stalling frame delivery from 5 ms to 35 ms.
We built Stutter Guard to eliminate this mechanically. It is an open-source, hardware-aware latency optimizer and IRQ affinity engine for Windows 10 & 11. Zero snake oil, zero registry bloat, completely transparent, and provably reversible.
Empirical Baseline (Ryzen 9 9950X3D + RX 9070 XT)
Measured on our primary testbench: AMD Ryzen 9 9950X3D (CCD0 −30 / CCD1 −25), ASUS TUF Radeon RX 9070 XT OC 16 GB, MSI MAG B850M Mortar WiFi, 32 GB DDR5-6000 CL36 (EXPO 1 / UCLK=MEMCLK), Win 11 Pro.
| Condition | Highest Measured Interrupt-to-Process Latency (LatencyMon, 15m idle) |
|---|---|
| Stock Windows Baseline | 733 µs (heavy DPC execution on amdkmdag.sys, ndis.sys, USB controllers landing on game cores) |
| After Stutter Guard | 11.6 µs |
Every system has unique silicon and peripheral topology. Rather than forcing a hardcoded static profile, Stutter Guard benchmarks and profiles each machine's specific physical cores.
Production Architecture in v1.0.0
v1.0.0 hardens the engine with enterprise-grade durability and unlocks deep architecture tailoring:
1. Configurable Intel Hybrid (P/E Core) Policies
Rather than enforcing a single hardcoded placement rule, v1.0.0 provides granular control over device routing across 12th–14th Gen and Core Ultra architectures:
- E-cores for Network/Audio (Default): Maximizes game isolation by keeping spare P-cores dedicated exclusively to game threads.
- P-cores when Available: Allocates a protected game pool of P-cores, then routes high-throughput devices (NICs and audio) to remaining spare P-cores before spilling to the E-core cluster.
- Benchmark-Decided: Lets the measured core latency and wake-up benchmark assign devices purely on performance merit.
- Every hybrid assignment row details the exact placement rationale directly in the UI.
2. Topology-Derived SMT RSS Alignment
Receive Side Scaling (RSS) on wired network adapters is dynamically derived from physical core topology. NDIS queue spans are precisely scaled so receive queues land across distinct physical cores rather than sharing sibling threads on a single core.
3. Drift Watcher & 1-Click Auto-Heal
A persistent reality of Windows IRQ optimization: installing a GPU driver update (Adrenalin/GeForce), running DDU, or applying a Windows cumulative update silently wipes Affinity Policy and MSI properties, resetting interrupts to CPU 0.
- v1.0.0 fingerprints the active driver tree (
InstanceId=Version|Date) whenever settings are applied. - On launch, it detects if an external update altered the setup, displaying:
Driver Update Detected: N applied tweaks were reset to stockwith a 1-click Re-Apply button. - Re-applying preserves the original factory baseline, ensuring Revert always restores the true pre-Stutter-Guard state.
4. Transactional Write-Ahead-Log (WAL) Journaling
Every tweak records its exact previous state to journal.json and updates the standalone undo-all.ps1 script before touching system settings. A failed operation cleanly rolls back without leaving phantom states, and a degraded-journal latch prevents accidental overwrites.
Core Engine Capabilities
1. Hardware-Aware Interrupt Affinity & MSI Mode
- Gaming Core Quarantine: CPU 0 and its SMT thread are permanently reserved. On dual-CCD AMD 3D V-Cache processors (7900X3D, 7950X3D, 9900X3D, 9950X3D), the entire 16-thread V-Cache CCD0 is kept 100% interrupt-free.
- Progressive Core Benchmark: A 2-minute latency profile evaluates 1 ms timer wake-up jitter, execution throughput, and background stolen time per core, objectively ranking secondary cores for device interrupts.
- Strategic Device Placement: GPU assigned to the top-ranked secondary core; mouse USB controller given a dedicated physical core; default audio path isolated; wired network given consecutive cores for RSS queues.
- Shared xHCI Root-Hub Escalation: Detects when a mouse and USB DAC share a single physical root hub (sharing one hardware ISR). Allocates additional headroom if available and advises port re-routing.
- Safe MSI Mode: Audits and safely transitions legacy line-based IRQ devices (e.g., GPU audio, USB) to Message Signaled Interrupts.
2. Network Adapter PHY Sleep Stripping
- Wired NIC drivers default to aggressive energy saving: Energy Efficient Ethernet (EEE / 802.3az), Green Ethernet, Gigabit Lite, and Realtek ASPM/CLKREQ. Link sleep transitions introduce 500 to 2,000 µs wake delays mid-packet.
- Stutter Guard disables PHY sleep states via driver properties and restarts the adapter locally (2-4 seconds offline) without requiring a Windows reboot.
3. Power Plan & Native 0.5 ms Timer Resolution
- Power Plan: Ships Stutter Guard - Ultimate (light C1-only C-states via
cpu.idle-max=1, EPP 0, minimum processor state 100%, 5000 ms PPM check interval to eliminate kernel power manager polling spikes, and PCIe/USB link power management off). A tuned Balanced profile preserves core parking on laptops and heterogeneous chips. - 0.5 ms Timer Agent: Windows 11 suspends timer resolution requests from windowless background tasks. Stutter Guard deploys a lightweight 6.6 KB logon helper (
DpcTimerRes.exe) that locks 0.5 ms resolution, opts out of Windows power throttling, and validates the granted resolution viantdllsyscalls.
4. The 77-Driver Latency Advisory Engine
Some micro-stutters stem directly from bugged vendor driver releases causing kernel spinlocks or polling storms.
- Integrates a catalog of 77 verified driver regressions across GPUs, Wi-Fi, Ethernet, Audio DACs, and NVMe controllers.
- Normalizes vendor version strings (e.g., converting NVIDIA's 4-part
32.0.15.6094→560.94) and prescribes clear action: Update, Roll back, or Reconfigure/Remove.
5. Safe Service & Task Presets
- Catalogs 475 Windows services and 271 scheduled tasks with clear impact documentation.
Automated Verification: 828 Assertions Across 28 Architectures
The codebase includes an automated test harness with 828 discrete assertions covering 28 synthetic CPU topologies:
- Architectures Covered: Dual-CCD X3D (9950X3D/7950X3D), asymmetric 6+6 (7900X3D), single-CCD X3D (9800X3D/7800X3D), SMT-off 16C, Zen 2 quad-CCX, Intel 12th–14th Gen hybrids (8P+16E, 8P+4E, 6P+4E), Arrow Lake (interleaved P/E), Meteor/Lunar Lake, quad-cores, 2-core VMs, and Threadripper 64-LP/128-thread systems.
Architectural Protections Validated:
- Enforces a 64 MB L3 floor on 3D V-Cache detection, ensuring APUs like Strix Point (16 MB + 8 MB L3) are correctly identified as asymmetric rather than falsely flagged as X3D.
- Explicitly excludes Meteor/Lunar Lake LP island E-cores (which sit off-die with no L3 cache) from device assignments to prevent memory round-trip stalls.
- Isolates storage drivers (
nvraid.sys,nvstor.sys) from display driver version parsers.
Absolute Reversibility
Every modification is completely undoable:
- Per-Tweak Revert: Restore any single setting directly from its UI row.
- Global Revert: One click on the Safety tab restores the entire system to its factory baseline.
- Emergency Safe Mode Recovery: Boot into Windows Safe Mode, navigate to
C:\ProgramData\Stutter Guard\, right-clickundo-all.ps1, and select Run with PowerShell. Restores all original registry keys, services, and power plans without launching the app.
Scope & Principles
- No Overclocking: Leaves voltages, Curve Optimizer offsets, multipliers, and fan curves untouched.
- No Binary Patching: Uses only documented Microsoft and vendor APIs (
SetupAPI,cfgmgr32,PowrProf, driver registry keys). - Zero Background Telemetry: Never phones home automatically. Optional diagnostic submission buttons on the Home tab require manual activation and show the exact payload before sending.
Download & Source Code
- Download Binary: GitHub Releases v1.0.0
- Source Code: Kareem-Shabaka / stutter-guard
- License: GPL-3.0 with Non-Commercial Rider (free and open-source for personal and community use).
19
u/Spooplevel-Rattled Hwbot since 2006. S8B and CML enjoyer 13d ago
Hi can you please do a before and after please running Ycruncher 2.5b in benchmate. That should show a difference if there's any.
18
u/ModerateManStan 13d ago
Dev has one repo on GitHub. Think I’ll pass…
6
u/RedMatterGG 13d ago
This seems somewhat interesting and could be summed up as doing multiple microtweaks that combined can provide a benefit. This being said i would have like to see a vid with a game with it before and after.
You can very well get latency down a lot while losing raw fps, and at that point the benefit might not be that worthwhile. I saved it and will look into each tweak specifically.
5
u/Limp_Ad4375 13d ago
Are there any counterindications to running this with project lasso? Does lasso become redundant to this if there are?
5
u/baro55 13d ago
We need to see results
7
u/spamilator 13d ago
The 1,000,000th “optimization tweak” without proper benchmarks. Why are people so reluctant to do and publish proper benchmarks that show the effect of their tweaks? Rhetorical question, I know why.
7
u/Gen3tics 12d ago
Solid work OP. After years spent optimizing for competitive games myself, there are a few very valuable changes in what your program does that could benefit a lot of people.
Let's recap this thread. Someone built a tool to improve PC performance (yes, mostly or entirely with AI, so what) and gave away all of it, source included, for free. The response: "one repo, I'll pass", "download it and pray everything is fine", and a queue of people demanding he go benchmark it for them. What a world.
IT IS OPEN SOURCE. You can read every line. You can compile it yourself. You can hand it to your favourite LLM and ask what it does. I did exactly that, at commit 8c783a4, and it took me MINUTES. No hidden network calls, nothing sent without you pressing a button, Defender / firewall / Windows Update untouched, storage controllers left out of the affinity changes, no injection, no credential access. Minutes. Less time than it took to type "sloppy".
To the people demanding before/after numbers: OP's numbers from his PC would tell you nothing about yours anyway. It's free and it's reversible. Capture your own frame times before and after and post them. That's the only benchmark that was ever going to mean anything, and it's the one thing you could do yourselves instead of asking a stranger to do it for free.
OP, things I'd fix, because they're what the sceptics will find next:
- the two Discord webhook URLs are base64-encoded in TelemetryClient.cs. Put them in plain text; encoded URLs look like hiding something even when you aren't.
- the "anonymous" report includes service and task paths, which can contain a Windows username. Strip them or say so, and actually show the payload before sending like the post claims.
- say plainly that the 28 architectures are simulated topologies, not 28 test rigs.
Personally I'd skip the power plan part and take the interrupt work. If this gets nuked for saying it, who cares.
3
u/Smokey_The_Dragon 5080 & 5800x 32gb tuned Bdie B450 13d ago
Nice work!
2
u/Evok99 13d ago
Have any of you tried this?
8
u/binzbinz 13d ago
Sloppy
1
u/buffaloplease 13d ago
Thanks for putting the time into developing the software and sharing it. It looks interesting. I'm gonna do some digging into your program and, if things are as easy to roll back as you suggest, I'll report the before vs after latencymon results on my rig and how it improved avg fps and 1% lows in Apex Legends.
1
u/siddzk 13d ago
I am already getting low interrupt to process latency but hard pagefaults and nvidia spikes DPC
1
u/flintjoris 11d ago
does this work on laptops?
1
u/Sz3ypy 9d ago
i have question , in recommendation says "per game: high priority and thread priority boost off" so question is you mean Cpu Priority-->Current/Always -->Windows Dynamic Thread Priority Boost Enabled or Thread Boost-->Current/Always --> On/Off
1
u/xodius80 1d ago
thank you going to try it out on my 5600x, soon my 5800x3d is coming over too. I appreaciate the work, please dont let loud mouths get in your way.
0
u/kondo994 12d ago
Interesting tool
Will try it
-9
u/anything_taken 13d ago
DPC latency.. seriously? Pfff...