Add opt-in differential queries for certified buffer refreshes #4995
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4995
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4994"
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?
@sklzygit on GitHub · 2026-12-01 16:54 UTC · original
sklzygit:contrib/differential-refresh-20261201→main· +542 −11 · 5 files · 1 commits · openWhat it changes
Large buffer refreshes can materialize the journal's complete historical page list, then walk the span again to select stale pages. With a previously copied 128 MiB range and one newly written 4 KiB part, most of that query result is old history.
Add opt-in
VICTORY_REFRESH_DELTAS=1(default OFF):This is extracted directly onto
5fabb46e, independently of #3756: it retains main's JOURNAL locking and ordinary guard/kernel query operation. It does not cache an earlier submission's journal answer. No dependency, shader, launcher, settings, barrier or GPU-flight ownership changes.How it was tested
dc2fc8376eefcc69584593e3e1a7f8d737f3c197, one commit on5fabb46e.VICTORY_REFRESH_DELTAS=1,cargo test --locked -p victory-gpu --lib -- --test-threads=1: 1,098 passed, 0 failed, 71 ignored.cargo test --locked --release -p victory-gpu --lib delta --no-run, withRUSTFLAGS=-C target-cpu=znver5, release LTO off, 16 codegen units and debug off; then fresh-processshadow::delta::tests::measure_native_large_heap_refreshes --exact --ignored --nocapture. Same executable, alternating OFF/ON, six pairs per scenario; first pair excluded, median of five. A 128 MiB authored mapped Shadow receives 512 single-byte updates and full-heap refresh requests. Both modes copy exactly 2,097,152 bytes and match the complete byte oracle.These are CPU component timings, not game-frame timings or a whole-process RAM saving. The Windows collection cost remains. Short component timings vary; there is no 3.8x game-FPS claim.
cargo testpassed for the crate it touches: yes, GPU lib suite above. Full workspace tests were not run.cargo clippy --locked -p victory-gpu --lib --tests -- -D warningsstops on the same five findings reproduced on unmodified5fabb46e: font.rs:213/260, menu.rs:667, panel.rs:602/668. Those UI files are untouched; no delta-module finding was reported. This is not a CI-pass claim.cargo run --locked --quiet -p xtask -- policy --staged: five source files passed.git diff --check: passed. Cargo.lock is unchanged. No title data, logs, screenshots or caches are included.Checked for overlap
writteninput. This proposal supplies a differential query and group index before result allocation, so dense historical journals can produce genuinely sparse input. The minimal consuming planner follows that existing principle and credits it in source; it does not import the other changes in that stack. Please coordinate the small planner overlap if #2049 lands first.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.