gpu(native): read big whole probes chunk-parallel on the rayon pool #614
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!614
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-610"
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?
@AnastasisKon on GitHub · 2026-11-28 12:29 UTC · original
AnastasisKon:vibe/probe-par-1705ac→main· +77 −0 · 4 files · 1 commits · openRefs #179
What
A whole probe of a big texture — the periodic whole reads the probe round does of hot textures — copied its bytes chunk by chunk on the calling thread. The chunks are independent, so
probe_readnow reads buffers over 1 MiB withpar_chunks_mut(1 MiB)on the rayon pool and hands the bytes to the hasher in oneseencall. Hashing the whole equals hashing the chunks in order (BLAKE3 is sequential over the input), which a test verifies againstblake3::hashfor buffers straddling the cutoff (1 MiB+1, 3 MiB+7). Smaller buffers keep the existing scratch loop.Adds
rayonas a workspace dependency ofvictory-gpu.Testing
cargo test -p victory-hle -p victory -p victory-gpu -p xtask(host arm64) — all pass, incl.probe_hash_whole_matches_blake3_for_big_bufferscargo test --target x86_64-apple-darwin -p victory-gpu --lib textures::— 19 pass, 0 failcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— cleancargo xtask policy— 404 files okChecklist
vibe/probe-par-1705acfromupstream/main, pushed to my fork onlyView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.