Skip to content

zonewx/Windows-Audio-Optimization-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Windows Audio Stability & Latency Fix

This batch script optimizes the audiodg.exe process (Windows Audio Device Graph Isolation) to prevent audio crackling, popping, and latency issues, especially during gaming or high CPU load.

Features

Priority Boost: Sets audiodg.exe to "Above Normal" priority to ensure audio processing isn't interrupted by background tasks.

CPU Affinity Lock: Pins the audio process to a single CPU core (Core 0) to prevent the latency spikes caused by Windows moving the process between different cores.

How to Use

Download cpuaffinity.bat.

Right-click the file and select Run as Administrator. (This is required because the script modifies a system process) .

The changes are active immediately!

[TIP!]
Note that Windows resets these settings upon reboot. If you want a permanent fix, you can add this script to your Windows Startup folder or create a task in Task Scheduler.

Technical Breakdown

The script executes the following commands:

Priority: wmic process where name="audiodg.exe" call setpriority "Above normal" 

Affinity: PowerShell "$Process = Get-Process audiodg; $Process.ProcessorAffinity=1"

About

This batch script optimizes the audiodg.exe process to prevent audio crackling, popping, and latency issues, especially during gaming or high CPU load.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors