Texture refresh: query for newer writes without copying page records #2795
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!2795
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2795"
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?
@ghptc on GitHub · 2026-11-29 17:24 UTC · original
ghptc:fix/write-query-summary-20261129→main· +30 −5 · 2 files · 1 commits · merged 2026-11-29 22:54 UTCThe two staging refresh paths consume one property of the journal result: whether any page in the queried interval changed after the last observation. The previous implementation copied all matching page/epoch pairs to a temporary vector and scanned that vector while refreshing each texture.
The journal now evaluates the query under its existing lock and returns the boolean together with the same observation epoch. Callers needing the page list retain the original interface. Overlap, protection, ahead-of-submit handling and kernel observation keep their existing ordering.
The Windows regression covers changed and unchanged subranges and a summary-first observer followed by a full page-list reader. A separate synthetic snapshot workload ran 20,000 queries over the same journal, with matching results. The page collection went from 160,000 allocations to zero. This measures the query path; scene frame times depend on other CPU and GPU work.
@dyshay on GitHub · 2026-11-29 17:48 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series S with ray tracing, and Series X, DLSS Quality). Frame times will follow here.@icdmkg2 on GitHub · 2026-11-29 18:20 UTC · original
An in-game data point from an 8 GB laptop. It covers this PR together with four others, so it can't attribute the gain to this one alone.
Setup: RTX 5060 Laptop GPU (8 GB), Ryzen 7 H 260 (8 cores), 32 GB, Windows 11, driver 621.24.
mainat55d06914, release build, Series S, DLSS performance,VICTORY_LEVELS_ON_DEMAND=0andVICTORY_COMMIT_FLOOR_MB=1024in both builds (see #1411 for why). Same save (the prologue's cell), driven by a script: 60 s measured after a 30 s settle, warm shader cache, two alternating pairs.Combo:
main+ #2549 + #2783 + #2647 + #2665 + #2795. These merge cleanly together. #2796, #2656, #2604 and #2587 conflict with that set, so they weren't tested.mainThat's about 15–18 % shorter frames and half the slow frames, with no crash and no device removal. A frame capture of the combo (diagnostics build,
VICTORY_CAPTURE_WORLD) matchedmain's brightness (mean luma 66.4 against 66.2), with no black holes.One thing for the diagnostics build: with these merged together,
--features diagnosticsno longer compiles. A localtiminginsubmitshadowshost::timing()at three call sites, andcopystat::log_heap_elsewhereuses anmbhelper it doesn't define. Both are one-line fixes; mentioning it in case whichever lands second hits it.