Formats: walk the two XMA overlap halves directly #3721
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3721"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:28:11Z.
Split the samples and sine weights into their two active halves, then walk the second half of each in reverse. Each output pair keeps the same multiply/add order. This removes repeated index arithmetic and lets the compiler work with disjoint slices.
The exact old and new functions matched bit for bit in 1,120 generated cases, including signed zero, subnormal inputs, and empty or odd blocks. Four sequences of 64 subframes compared the production inverse transform plus overlap with the old and new routines. All 74,752 float values and their PCM conversions matched.
These are 24 balanced Windows release samples per sequence for the transform and overlap stages. In isolation, the overlap improved at 128 and 512 samples and was within 0.4% at 256. Whole-title audio performance remains unmeasured.
The formats suite passed 46 tests with five ignored. Strict Clippy and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:32:00Z.
The exact
6b686bahead passed Windows CI, including the workspace tests and both Clippy configurations. The generated XMA test produced bit-identical float outputs and PCM across all four subframe sequences. The transform and overlap stages improved by 0.9–2.4% in those Windows release measurements. End-to-end title audio remains unmeasured.Next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T11:41:53Z.
Closing this duplicate in favor of #3629. Both changes use the same paired slices and floating-point expressions. I will attach the additional transform-and-overlap measurements to #3629 after replaying its exact head.
Pull request closed