[performance][audio] Entire game audio mix stutters during gameplay with ray tracing off #156
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What you see
During normal gameplay, the entire game audio mix cuts out intermittently, including music, dialogue and sound effects. The game remains playable, but the audio interruptions are distracting. This occurred with ray tracing off and with a preloaded shader cache.
To reproduce, start the release below with the listed settings, load into gameplay and continue playing with music, dialogue and effects audible. The interruptions are intermittent. A specific location or action that reproduces every interruption has yet to be identified. Expected behaviour is continuous audio playback during gameplay.
While the issue was being reported, the play log showed roughly 13–17 rendered FPS. One sample showed 13.3 FPS (75.0 ms/frame), with 46.9 ms spent preparing GPU work. Individual audio interruptions were not timestamped, so their relationship to frame time is unconfirmed. A similar symptom was reported upstream in VIctory-NVIDIA #4172.
GPU and driver
NVIDIA GeForce RTX 3080 10 GB, driver 621.40.
CPU, RAM and Windows version
AMD Ryzen 9 5900X (12 cores, 24 threads), 32 GB DDR4-3600 (2 × 16 GB), Windows 11 Pro 25H2 (build 26200.9974). Audio output was ROG Pelta headphones over 2.4 GHz.
Darner release or commit
v2026.12.03.01, release build.
Settings
DARNER_HELPER_PRIORITY=1and XMA decoder priority1.Logs
The sanitised play-log excerpt covers audio initialisation, frame timing and FSR activity around the report. The audio DSP connected, the XMA decoder started at priority 1, and the sampled FSR intervals showed zero preparation failures. The release log did not record individual audio interruptions. There is no crash log for this session because the game continued running.
Are you working on a fix?
I'd like to, with some pointers
Your excerpt points at the processor, not the audio code itself. At 13-17 fps, 37-50 ms of each frame goes to preparing (copies and reading back), while the GPU works only 0-2.6 ms. When those threads are that busy, the audio decoder thread can fall behind; its output runs dry, and every sound cuts at once.
Things to try, one at a time:
DARNER_XMA_PRIORITY=2in darner-settings.txt: the decoder thread runs above the GPU helpers (they run at 1 in your log).Pointers if you want to look into it yourself: the decoder thread and its rings are in
crates/darner-hle/src/modules/audio.rs(the comment above the decoding thread explains the priority choice, #1970), and the per-frame prepare breakdown is the "preparing per frame, the submitting thread" line in the log.I tried
DARNER_XMA_PRIORITY=2on the same release and save with ray tracing off and FSR 3 at 2×. The startup log confirms the override. I still hear the same cut-outs across the whole game mix. I have yet to test with frame generation off.I repeated the test on the same release and save with frame generation disabled, ray tracing off, and
DARNER_XMA_PRIORITY=1. The whole-mix cut-outs were still present and sounded unchanged. I attached a sanitised log covering startup and the affected gameplay, with title data and local identifiers removed.The FG-off run rules frame generation out. Two things would still help:
DARNER_XMA_PRIORITY=2(your log shows 1, the same level as the GPU helpers; 2 puts the decoder above them).I repeated the diagnostic run with
DARNER_XMA_PRIORITY=2, ray tracing off, and frame generation off. The log confirms decoder priority 2. The whole audio mix still cut out around 00:28:26 UTC. I attached the full-session play log, with sensitive paths, identifiers, and title data redacted as required by the repository. Audio timing and voice-position lines are included.This log rules out the decoder priority. DARNER_XMA_PRIORITY=2 took effect, and the sound still cut out at 00:28:26. The audio thread was not starved either: its waits stayed at 1-3 ms around the cut.
Two other things happen at the same moment:
This run also had DARNER_VOICE_LOG=100 and the audio capture on. They wrote about 1,200 audio lines a second, which can cause stalls of their own.
For the next run, please:
--set 'DARNER_VOICE_LOG=100'and theDARNER_AUDIO_CAPTUREsetting from your start line;Then say whether the sound still cuts out, and roughly when. Attach that run's darner-play log.