dsp: VICTORY_DUMP_DSP captures the title's own IR and every block it … #287

Merged
AnastasisKon merged 1 commit from upstream-pr/287 into main 2026-11-27 10:37:28 +00:00
AnastasisKon commented 2026-11-27 08:54:08 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T08:54:08Z.


What changes
A VICTORY_DUMP_DSP=

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.

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

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5523866887 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/287). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T08:54:08Z. --- What changes A VICTORY_DUMP_DSP=<dir> 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 <dir>/stream<n>_ir.f32, and every XDspSubmitCommand appends its gains and input block to stream<n>_blocks.f32 and the block the stream wrote (silence, or the VICTORY_GUESS_DSP result) to stream<n>_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. 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
LakshanSivakumar commented 2026-11-27 10:37:38 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7216112516 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/287#issuecomment-7216112516). Originally posted by [LakshanSivakumar](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!287
No description provided.