It was suggested to me on the community forums that I post my question here instead. Eventhough this is about a Windows 10 Pro machine I use to work and also game on.
For a while now I have been running WSL2 on my Windows 10 Pro machine without issues but a couple of updates ago, I'm not entirely sure when, I started hearing stutters or pops in my sound every now and then. I tried LatencyMon and it found a bunch of issues, three different sources of audio lag that it could identify (screenshots of LatencyMon below thread). I tried putting my system on high performance first, reverted to some old graphics drivers second (because I read somewhere that newer nvidia drivers could do this) and re-installed my network drivers because it said it could be related to network drivers. But today I listened a little more closely and I checked the system logs whenever I heard this audio crackle and it turns out that every single time Hyper-V is doing something in the background, something with network. I also tried disabling the Hyper-V Network Connection (WSL) but it doesn't seem to fix it entirely. I can't find any threads on this, except a very old thread that seems to have been fixed by turning system to high performance, this is as I said, already done. These log texts are included:
Networking driver in Virtual Machine is loaded and the protocol version is negotiated to the most recent version (Virtual machine ID 4E28C58C-BE6A-451D-A5E8-E944A5756E4D).
NIC 4E28C58C-BE6A-451D-A5E8-E944A5756E4D--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ) successfully connected to port 32097E04-6456-4FBB-AA70-A91218419EFB (Friendly Name: 5E03A28A-6836-45A1-AE15-0C24DBFDE003) on switch E4E1D1EB-6009-48AD-8CC8-E195490F0524(Friendly Name: WSL).
The operation 'Create' succeeded on nic 4E28C58C-BE6A-451D-A5E8-E944A5756E4D--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ). Port 32097E04-6456-4FBB-AA70-A91218419EFB (Friendly Name: 5E03A28A-6836-45A1-AE15-0C24DBFDE003) successfully created on switch E4E1D1EB-6009-48AD-8CC8-E195490F0524 (Friendly Name: WSL).
The operation 'Delete' succeeded on nic 0E162F26-4FC8-452F-972A-43E573F7DEFA--FC785225-9131-5661-AC0C-3A157C61AE15 (Friendly Name: ).
Also, whenever I go to my terminal and fire up ubuntu or kali, and then do a wsl --shutdown, the audio stutters again. Always. To be clear, I am not running Kali when this is happening, the above log entires happen every three minutes and every three minutes my sound stutters. WSL can be shut or running, it doesn't matter.
I have a few theories to when this started happening, I'm not exactly sure which one of them it is because they all happened in the same period and I am slow to notice things sometimes. I ran a program called Wallpaper Engine that, when I updated my graphics drivers "greenscreened" (bsod for insider edition) my system. I uninstalled that program directly after. Also, around that time, I updated windows to some new version 21H1 or some sub-update. I updated my bios to fix usb stability issues they had (amd/asus rog strix b-550-f), known issues with pci-e 4.
Does anyone know anything about this? What can I do to figure this out further?