XMA: gather frame payloads one byte at a time #1016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1016"
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 heromike405-arch on 2026-11-24T15:05:26Z.
Read complete XMA2 payload bytes directly within a packet. The existing bit reader still handles headers, interleaved streams and the last partial byte.
On Windows x86-64 with Rust 1.98.1, the victory-formats test binary passed 24 tests with four ignored. A synthetic differential check against
ffe310ereturned identical frame bytes, bit lengths, start positions and next-frame positions for 36,720 cases, including truncated buffers.Median read_frame time across nine optimized runs on this machine:
The benchmark cycles through all eight bit alignments. It measures frame extraction only. Full-workspace CI and in-game playback remain unverified.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T15:15:55Z.
Review: APPROVED
Tested
03a6f229on Windows 11, RTX 5070, MSVC:cargo test -p victory-formats24 passed, includingpayload_bytes_match_bit_reads_at_packet_edges.cargo clippy -p victory-formats --all-targets -- -D warningsis clean.Decoders, 8 to 608 bytes, random bit lengths) throughDecoder::decodeon mercuryVM/VIctory main and on this head give the same Ok/Err split (2,102 / 17,898), the same 15,391,232 samples and an identical hash over every sample. The byte path is a pure speedup, malformed streams included.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:40:22Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
03a6f22:cargo test -p victory-formatspasses, 24 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).