Formats: walk paired XMA overlap samples directly #3629

Open
github-bot wants to merge 1 commit from github-bot/gh-3629 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:42 UTC · original
andrewpozdnakov7-jpg:codex2/xma-window-overlap → main · +10 −6 · 1 files · 1 commits · open

XMA joins each decoded block to the previous one with a windowed overlap. Split each slice once and iterate the matching sample and window pairs directly. Each pair uses the same floating-point expressions in the same order.

On Windows x86-64, the median time for the isolated step across 15 alternating A/B measurements was 216 to 143 ns for 128 samples, 416 to 323 ns for 256, and 831 to 675 ns for 512. Each timing includes copying the same generated input into the working buffer.

The same 16 generated mono frames and final flush produced byte-identical PCM on main and this head. That check uses the single-bin synthetic frame from #2795. The 46 active release tests in victory-formats passed, along with strict Clippy and the asset policy check.

Coordination claim

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 23:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/3629) `andrewpozdnakov7-jpg:codex2/xma-window-overlap` → `main` · +10 −6 · 1 files · 1 commits · open XMA joins each decoded block to the previous one with a windowed overlap. Split each slice once and iterate the matching sample and window pairs directly. Each pair uses the same floating-point expressions in the same order. On Windows x86-64, the median time for the isolated step across 15 alternating A/B measurements was 216 to 143 ns for 128 samples, 416 to 323 ns for 256, and 831 to 675 ns for 512. Each timing includes copying the same generated input into the working buffer. The same 16 generated mono frames and final flush produced byte-identical PCM on main and this head. That check uses the single-bin synthetic frame from #2795. The 46 active release tests in victory-formats passed, along with strict Clippy and the asset policy check. [Coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 23:47:03 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:42 UTC · original

The Windows comparison used two distinct release test binaries at 63bcca4 and a5142ae. All four outputs from decoding 16 generated mono frames plus the final flush matched byte for byte, with 8,430 nonzero samples out of 8,448. The isolated 128-, 256-, and 512-sample checks also matched bit for bit, including signed zero and very small finite samples.

The isolated overlap-add step took roughly 19–34% less time on this host. The timings are for the synthetic operation in this PR. The 46 active victory-formats release tests and strict Clippy passed.

If you reuse the code, please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg [email protected] if folding it into another commit.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 23:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/3629#issuecomment-7230351836) The Windows comparison used two distinct release test binaries at 63bcca4 and a5142ae. All four outputs from decoding 16 generated mono frames plus the final flush matched byte for byte, with 8,430 nonzero samples out of 8,448. The isolated 128-, 256-, and 512-sample checks also matched bit for bit, including signed zero and very small finite samples. The isolated overlap-add step took roughly 19–34% less time on this host. The timings are for the synthetic operation in this PR. The 46 active victory-formats release tests and strict Clippy passed. If you reuse the code, please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding it into another commit.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3629/head:github-bot/gh-3629'
git switch 'github-bot/gh-3629'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3629'
git switch 'github-bot/gh-3629'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3629'
git switch 'github-bot/gh-3629'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3629'
git switch 'main'
git merge --squash 'github-bot/gh-3629'
git switch 'main'
git merge --ff-only 'github-bot/gh-3629'
git switch 'main'
git merge 'github-bot/gh-3629'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3629
No description provided.