Repository navigation
perf(gpu,shader): add opt-in raw CBV reads, sharded submit journal, and fine write guards - #3455
legayclightning22 wants to merge 4 commits into
Conversation
|
WARP test report (Windows, software adapter only; no GPU, no game files). AI-assisted, Claude.
Notes from reading the diff:
Counts only; no game data. |
|
NVIDIA full-suite run, to go with the reports above by oni-swr, since none of them names a GPU run. Tested exact head Tested
Not tested
AI use
|
|
Contention numbers for this PR from a shared benchmark (for #3425). Method. The benchmark
Run with Reading. No measurable change in any config (paired ratios 0.99–1.05). That's expected rather than a verdict on the PR: the shared lock is only taken in Correctness. AI use: Claude Code (Claude Opus 5.5). |
0c72875 to
a428469
Compare
|
Thanks @oni-swr, @futurepro62, and @KainanP for the WARP, RTX 5070 Ti, and contention benchmark reports! Pushed |
|
A note on the write-guard part (
For comparison, port 6 in the fork this is ported from (gleaf-6/VIctory-7900XTX- Benchmark (local only, not proposed): an ignored test in
There is no difference beyond run-to-run noise (the machine had other GPU work running), as expected with the handler on the exclusive lock. With the fork's change, this is the benchmark that should move. AI-assisted (Claude Code, Claude Opus 5.5 read the code, wrote and ran the local benchmark). |
a428469 to
09da498
Compare
|
Thanks @upipibi — pushed an updated commit decoupling |
Remove the DirtyRanges snapshot machinery and reservation batching that a local watch.rs copy brought onto this branch. Keep the shared guards lock and atomic claims on fault/refresh/publish/remark paths, and assert that remarking works with the port journal off.
Summary
Adds opt-in raw constant-buffer reads (
VICTORY_PORT_CBV), sharded submit journaling (VICTORY_PORT_JOURNAL), and finer-grained write guards (VICTORY_PORT_GUARD) while keeping default behavior safe and preserving bounded root descriptor tables.Changes
ROOT_CBV_SPACE), sharded submit journal updates (SHARDS), and per-block write guards (GUARDS/BUSY) acrossvictory-gpuandvictory-shader.0/off by default) and bounded for low-memory configurations.Verification
cargo test --locked -p victory-gpu --libandcargo test --locked -p victory-shader --libcargo clippy --locked -p victory-gpu -p victory-shader --all-targets --all-features -- -D warningscargo xtask policy