Repository navigation
Reuse XMA inverse-transform rotations - #113
Closed
andrewDoing wants to merge 1 commit into
Closed
andrewDoing wants to merge 1 commit into
andrewDoing wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XMA's inverse transform recalculates the same rotations for each channel and subframe. Cache the rotations for the three supported transform sizes and reuse them.
The prototype matched baseline output bits for 3,000 synthetic transforms across 128, 256, and 512 samples and three scales. Seven-run medians for 5,000 transforms were 9.576 → 3.982 ms, 19.793 → 8.147 ms, and 39.994 → 18.102 ms respectively. Five runnable XMA tests passed, including independent cosine-sum and overlap reconstruction checks.
Pinned Rust 1.98.1: both workspace Clippy configurations and asset policy passed; serial workspace tests: 683 passed, 0 failed, 12 ignored with CI's software-adapter setting. External real-stream/reference fixtures were unavailable and their two tests remain ignored; no gameplay or audible comparison was performed.
GPT-6.2 Astra implemented and tested the change.
Related work: TG0000's XMA rotation tables independently covers rotations and also tables FFT butterflies and bit reversal. This change was implemented independently and limits itself to rotations.