XMA: read a cursor's bits a byte's worth at a time #1258
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1258
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1258/head"
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?
@Jitheswar on GitHub · 2026-11-24 16:51 UTC · original
xma-frame-byte-copy→main· +56 −19 · 1 files · 1 commits · closed without mergingRebased onto
940d32f. #1016 (merged) now gathers a frame's payload bytes directly inside a packet, which covers most of what this PR first did. What's left:Cursor::bits, still used for the length fields, the bytes that straddle a packet edge, and the tail, read one bit at a time. It now takes as many bits from each source byte as it can, still skipping the header and other streams' packets at each packet edge.Test: a 29-bit frame whose first 1-16 bits end packet 0 (packet 1 is another stream's) reads back with its tail padding, and is refused one byte short. #1016's noise tests pass unchanged on top of this.
cargo test -p victory-formats39 passed;cargo clippy -p victory-formats --all-targets -D warningsclean (Linux). No game data.AI-assisted (Claude Code, Codex).
🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 00:35 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1016. Same optimisation as #1016 (gather XMA frame bits in byte-sized chunks); also correct, but smaller gain and it removes Cursor::bit.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed