Repository navigation
Conversation
|
Independent Windows x64/MSVC check at This broader change covers the cached-rotation work in my narrower #113, which I have closed to reduce duplicate review work. Verification was AI-assisted with GPT-6.2 Astra. |
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 audio decoding currently recalculates fixed sine/cosine rotations and allocates two FFT scratch buffers for every channel and subframe. Cache the rotations for the three supported block sizes and use 4 KiB of bounded stack scratch, preserving the existing FFT arithmetic and precision.
The rotation cache is shared across streams and occupies about 14 KiB. After initialization, the transform performs no heap allocations. This change also adds silence/impulse/scaling coverage, an ignored CPU microbenchmark, and reproduction notes in
docs/cpu-audio.md.CPU-only measurements
Compared with
8114ff7on an ARM64 Linux development host using Rust 1.98.1 and the release profile:Each figure is the median of three interleaved executions per version; each execution reports the median of five batches of 10,000 warmed-up transforms. These are transform microbenchmarks. Whole-decoder CPU usage, Windows runtime performance, and gameplay FPS have not been measured. No GPU execution was used.
Validation
cargo clippy -p victory-formats --all-targets --locked -- -D warningspassed.cargo check -p victory-formats --target x86_64-pc-windows-msvc --tests --lockedpassed; this is cross-compilation, not a Windows runtime test.git diff --checkpassed.The existing verified BCPack tables were supplied locally for the format-library build. No binary fixture is included in the patch. External-fixture audio reference tests were not run.