Add bounded diagnostics-only refresh work census #4222
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!4222
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4221"
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?
@john-9474 on GitHub · 2026-11-30 17:34 UTC · original
john-9474:codex/bounded-refresh-work-census→main· +1063 −0 · 8 files · 1 commits · closed without mergingWhat it changes
Clean checks can skip
Shadow::updateentirely, so a positive-update census cannot show how often those paths run. This adds diagnostics-onlyVICTORY_COPY_WORK=1, off by default, to observe refresh requests, all three clean-check paths, update results and mirror-copy requests by existing Shadow lifetime ID.The book retains metadata for the first 8,192 registered lifetimes, including retired records, and reports explicit cumulative coverage loss for later lifetimes and oversized batches. Events use cached per-copy atomic counters after registration; no Shadow, D3D resource or title bytes are retained. Reports show up to 12 changed interval rows at the existing frame-meter cadence, independently of
VICTORY_PROCESS_MEMORY. Copies, readbacks, protections, fences, placement and ownership policy are unchanged.With diagnostics compiled and the switch off, the dormant
OnceLockfield and cached flag branch remain; this is not a zero-overhead claim. Builds without diagnostics omit the hooks. Request bytes count repeated overlaps, update bytes are the existing method's result, and rows rank check counts rather than CPU time. None of these metrics establishes native CPU reads, GPU-only memory or ownership.How it was tested
7d93ee07: ten purecopywork::modeltests passed (exact CPU-only filter), default and diagnostics GPU-library checks passed, and strict GPU-crate all-target Clippy passed in both configurations (cargo clippy --locked --jobs 2 -p victory-gpu --all-targets [--features diagnostics] -- -D warnings). Explicit locked staged policy passed for all eight files; Cargo.lock is unchanged. Ignored hardware-hook fixtures compiled but were not executed in this refresh.44b58d5c, all census code, hooks and authored fixtures are byte-identical; only upstream's unusedrangedandmbhelper removals differ in the touched files. Native and overhead results below retain their original base/source scope; no new-main native/GPU run is claimed.Original validation on release .02 main
84bd61e2:ask_once, enabled counter assertions, metadata retirement, dedicated logging withPROCESS_MEMORY=0, and active independent InfoQueue checks. The test callback context has bounded process lifetime; no unregister join/drain guarantee is assumed.c71899d9measured enabled versus instrumented OFF warm checks: serial +13.94 ns (+32.4%), snapshot +14.05 ns (+40.0%), and batch +19.54 ns (+21.1%). The four-worker disjoint-copy difference was below OFF reversal drift. The docs preserve that workload, exact commands and limits; no gameplay FPS, current-release overhead, patched-OFF versus unpatched cost or performance improvement is claimed.Shadow::rangeddead code,host.rsmanual-is-multiple-of, and diagnosticscopystat::mbdead code remain. The full workspace suite was not run.The final documentation revision changes no compiled source. Local mute/native sparse-file runtime helpers used for the native test are excluded, as are all game data, logs, binaries and dependency changes.
Checked for overlap
VICTORY_COPY_WORK/ShadowIDsearches, recent open census/refresh diagnostics, and the current related PR heads. #2960 already supplies broader per-buffer refresh/readback/timing probes; #3271 supplies the positive-update census (also present in this base). This is a narrower complementary tool with bounded lifetime metadata and clean-bypass coverage, not the first per-buffer census or a proven faster replacement. #3869 observes native resource/heap destruction lifetimes, a different scope. #4378 now adds per-frame chain timings and refreshed/send bytes classified by backing, which complements this lifetime book and clean-bypass coverage.Historical CI on original head
44b58d5cstopped at default workspace Clippy. The PR job and clean 84bd job reported the same three unchanged baseline errors (loop_caps,rangedand manual-is-multiple-of); diagnostics and tests were skipped after that failure. Upstream #4297 has since addressed those baseline findings, including the unused diagnosticsmbhelper. The refreshed focused strict checks above pass without authored lint allowances or bundled baseline cleanup. New remote workspace CI remains separate from the local results.44b58d5c03to787ff23957@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed