If your PC's audio crackles, pops or briefly drops out, especially when you're gaming, streaming or recording, the cause often isn't your speakers or headset. It can be a driver that briefly ties up the CPU, so audio data doesn't arrive in time. This is usually called DPC latency, and the free LatencyMon tool is the standard way to track it down.
Forge PC has not tested LatencyMon for this guide. The steps and explanations are based on Resplendence Software's documentation for LatencyMon, Microsoft's documentation for Windows driver developers and audio interface maker Focusrite's DPC latency troubleshooting guide.
What is DPC latency?
Resplendence, which makes LatencyMon, explains that Windows isn't a real-time operating system. It handles requests on a best-effort basis, without guaranteeing they're processed within a set time. That's fine for most tasks, but real-time audio has to deliver buffers of sound data at regular intervals. If a buffer misses its deadline, you hear a dropout, click or pop.
Two kinds of kernel activity can get in the way:
Interrupt service routines (ISRs). When a device such as a network card or graphics card needs attention, it raises an interrupt and its driver's ISR runs.
Deferred procedure calls (DPCs). Microsoft explains that because ISRs need to finish as quickly as possible, drivers postpone the rest of the work to a DPC, which runs later at a lower priority level than the ISR.
Both run at a higher priority than normal programs, including your audio software. Resplendence says general guidelines recommend keeping ISR and DPC execution times below about 100 microseconds. When a badly behaved driver takes much longer, audio threads can miss their deadlines.
LatencyMon also tracks hard pagefaults: when a program needs data that Windows has to fetch from the page file or another file on disk. Resplendence says these can take a long time to resolve and cause dropouts if they happen during audio processing.
Step 1: Download and run LatencyMon
Download LatencyMon from resplendence.com. The Home Edition is free; the latest version at the time of writing was 7.40.
Install it and run it.
Close anything you don't need, but keep running whatever makes the crackling happen, such as a game, a music app or your streaming software.
Click the Start (play) button to begin measuring.
Let it run while you reproduce the problem. Focusrite recommends playing audio for at least 15 minutes, with the glitches happening at least once during the test.
Click Stop.
Step 2: Read the results
LatencyMon's Main tab gives an overall verdict on whether your system is suitable for real-time audio, along with the highest measured kernel timer latencies and the longest ISR and DPC execution times. Resplendence says it also shows detailed hard pagefault statistics.
The Drivers tab is where you find the culprit. Focusrite suggests clicking the Highest execution (ms) column heading twice so the worst drivers are at the top, and says any driver above 0.5ms could be causing audio problems. Resplendence says LatencyMon can identify the drivers and processes responsible in most cases.
Focusrite's guide lists some drivers that commonly appear:
Driver | What it is (according to Focusrite) |
|---|
ACPI.sys | Power management |
dxgkrnl.sys, nvlddmkm.sys, amdkmdag.sys | Graphics (Windows, NVIDIA and AMD) |
ndis.sys, tcpip.sys | Networking |
storport.sys | Storage |
USBPORT.sys | USB |
Wdf01000.sys | Windows Driver Framework |
Check the Processes tab, or the hard pagefault figures, if the problem looks like pagefaults rather than drivers.
Step 3: Fix the driver that's causing it
Once you know which driver is causing the spikes, work through these fixes one at a time and run LatencyMon again after each change:
Update the driver. Get the latest version from your motherboard, laptop or device maker. For graphics drivers, see our graphics driver update guide. If the graphics driver is still the problem, Focusrite suggests trying NVIDIA's Studio driver or, where your card supports it, AMD Software: PRO Edition, both of which are aimed at stability in professional apps.
Install your chipset drivers. Our chipset driver guide explains how for AMD and Intel boards.
Try an older version. If a problem started after an update, roll the driver back in Device Manager (right-click the device, choose Properties, then the Driver tab and Roll Back Driver).
Do a clean graphics driver install. If the GPU driver is the culprit, a clean install with DDU removes leftovers from older versions.
Disable devices you don't use. As a test, disable an unused Wi-Fi adapter, Bluetooth, built-in sound card or SD card reader in Device Manager and see whether the spikes stop. Focusrite says built-in SD card readers have been seen to cause high USBPORT.sys latency, and that network-related latency can come from apps using the internet in the background. Re-enable anything that makes no difference.
If ACPI.sys is the culprit on a laptop, Focusrite suggests plugging in the charger rather than running on battery, and checking your power plan and USB power management settings.
Update your BIOS. Firmware updates sometimes fix device and power-management problems. Follow our safe BIOS update guide.
Step 4: Reduce hard pagefaults
If LatencyMon points to hard pagefaults, your PC may be short of memory for what you're running. Close background apps, and check how much memory you're using in Task Manager. If you're regularly near the limit, our guide to how much RAM a gaming PC needs can help you decide whether to upgrade.
Still crackling?
If LatencyMon shows no problems but your audio still crackles, the cause may be elsewhere: a damaged cable, a USB headset or audio interface on an overloaded hub, or audio settings such as a buffer size that's too small in your recording software. Try a different USB port, ideally one directly on the motherboard.
Our verdict
Audio crackling and dropouts on a Windows PC are often caused by a driver that runs for too long at high priority. LatencyMon's free Home Edition measures ISR and DPC execution times and hard pagefaults, and in most cases names the driver responsible. Updating, rolling back or temporarily disabling that driver, plus installing chipset drivers and the latest BIOS, fixes most cases. Forge PC has not tested LatencyMon for this guide; the steps are based on Resplendence's, Microsoft's and Focusrite's documentation.