dsp: VICTORY_DUMP_DSP captures the title's own IR and every block it … #287
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/287"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T08:54:08Z.
What changes
diagnostic for the audio DSP (#17's guess-validation path), on top of the merged convolution rework: at activation each stream's own impulse response — the title's bytes, not the synthetic tail — is written to /stream_ir.f32, and every XDspSubmitCommand appends its gains and input block to stream_blocks.f32 and the block the stream wrote (silence, or the VICTORY_GUESS_DSP result) to stream_out.f32. A run with both switches captures what the title sends and hears, to check the guessed convolution against the real effect once the hardware's partitioned IR layout is known. Off by default; IR reads bounded by ir_floats and a 16 Mi-float cap. One change: dsp.rs plus the native-host.md paragraph next to VICTORY_TRACE_DSP.A VICTORY_DUMP_DSP=
How it was tested
the dsp module's tests, scratch-run: 6/6, including dump_captures_the_titles_ir_blocks_and_output (the title's own IR round-trips; every command's gains, input and output land in order)
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings
Ran the game, or not needed — not needed: a diagnostic behind a variable, behaviour identical with it unset
Checklist
No game files or code included
Guesses marked in code and docs
New diagnostic behind a VICTORY_* variable and documented
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-27T10:37:38Z.
Thank you. The tests build their own data, nothing from the title is in the repository, and the switch is off by default.
Two things; neither blocks the merge. The capture files are the title's own audio data: please say in the docs that they are never committed, attached or posted, as for the shader dumps. And the block and output files grow with every command for as long as the game runs; please say roughly how fast, or stop at a size. I have not run it.
Merged.