That’s a very regular interval. Except at the beginning of the second video. Fascinating.
Does the audio glitch happen even when no game is running? Have you tried closing all other applications (especially browsers) when running the game, and does it behave the same? Same interval in all games?
Thoughts on what it could be, in no particular order:
- Temperature throttling on CPU
- RAM swapping? Unlikely, due to being so regular and you’re just sitting in start menu.
- Background process hogging/spiking CPU periodically
- Perhaps due to a repeated error or crash of something
- I’ve once seen something similar where having a USB device plugged caused spikes like this, because it kept disconnecting and reconnecting constantly
- ananicy-cpp and/or CPU scheduler in use is not a good fit for your hardware
- Are you using
gamemoderun? If so, this may be the problem, it’s not compatible with ananicy-cpp, which is enabled by default. Simply not using gamemoderun might fix it.
Your Mangohud is configured to show very little; missing RAM, VRAM, and temperatures in particular. You could use Goverlay to configure it to include them.
You could also run btop in a terminal for some more info. q to quit, Esc for menu. Hit - a few times to have a faster update interval. Hit 5 to enable GPU, 3 to disable network, i to show IO graphs. Then see if you can observe any pattern that matches with the stuttering, e.g. temperature peaking out at roughly the same interval, or some process spiking CPU periodically.
You could use sudo journalctl -f to watch system logs, or sudo dmesg -w to watch kernel logs (Ctrl-C to exit for both). See if anything keeps happening, in sync with the stutter.
Next thing to try would be disabling ananicy if it’s running:
# to check if active:
systemctl status ananicy-cpp
# to disable if active:
sudo systemctl disable --now ananicy-cpp
(Alternatively, run CachyOs Hello, go to Apps/Tweaks, uncheck ananicy)
Reboot to be sure. Try gaming again. Any difference?
If no difference, you could try a different CPU scheduler. Ananicy must be disabled for this. Easiest way would be to run “SchedExt GUI Manager”. For example, try scx_lavd with Gaming profile, hit Apply:
Any difference? See wiki for more info: sched-ext Tutorial | CachyOS