dsp: a CPU-fallback reverb tail for convolution streams, behind VICTORY_GUESS_DSP #146
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!146
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-146"
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?
@m0rff on GitHub · 2026-11-26 20:36 UTC · original
m0rff:fix/dsp-reverb-cpu-fallback→main· +262 −10 · 3 files · 1 commits · merged 2026-11-26 22:38 UTCIssue #17:
chad.dllconvolution streams always returned digital silence, since the title's own impulse response arrives in the hardware's own partitioned frequency-domain layout, which is not documented, soStreamDesc::irwas never read.This adds the CPU fallback the issue suggests as an alternative: a fixed, deterministic ~100 ms synthetic decaying-noise tail, convolved with the input per channel and scaled by the command's gains, with the tail carried across blocks so it does not click at every block boundary. It is a guess, so it stays off by default behind
VICTORY_GUESS_DSP=1; default behaviour (silence) is unchanged.Also adds
VICTORY_TRACE_DSP=1, which logs the leading floats of a convolution stream's ownStreamDesc::irat activation, to help a future run with the real game settle what format that data is actually in (and possibly replace this guess with the real thing).No game needed to test this: the convolution math, the history carry-over across block boundaries, and the exported
XDspSubmitCommandpath are all covered by new/updated unit tests inmodules::dsp::tests.cargo test -p victory-hle -p victory -p victory-gpu -p xtask: passcargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings: cleancargo xtask policy: pass@LakshanSivakumar on GitHub · 2026-11-26 22:38 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!