Add opt-in static heap access census #4743
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!4743
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4742"
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-12-01 04:37 UTC · original
john-9474:codex/heap-access-census→main· +425 −0 · 3 files · 1 commits · openWhat it changes
Dynamically indexed heap accesses are difficult to diagnose: the current picked-write heuristic answers a conservative yes/no question, without showing operation families, descriptor origins or incomplete analysis.
Adds
VICTORY_HEAP_ACCESS_CENSUS=1in diagnostics builds. The switch is off by default. At the firstSLOT_STRIDESbinding, it reports static operation/source counts once, then continues the existing renderer path. The three-file change includes the module, its guarded hook and a short usage document.Counts separate buffer, image, scalar-resource and BVH-node reads/stores/atomics, descriptor-address fetches, source families and unresolved cases. They are not executed accesses, distinct buffers or a physical access-set proof. The physical-owner/index-domain completeness flags remain false. No shader schema or cache-key changes are needed.
The work caps are input-count limits, not a wall-clock guarantee: parsing and SSA construction precede some checks. Analysis can delay the first matching bind. Existing panic-hook and abort/OOM behaviour remains as documented.
How it was tested
On clean main
5fabb46eplus the exact three-file candidate, using pinned Rust 1.98.1, locked dependencies and two jobs:Cargo.lockis unchanged.font.rs:213,260,menu.rs:667, andpanel.rs:602,668. Those files match clean-base CI; #4680 tracks their repair. No authored finding, suppression or UI change is included.The identical analyzer also ran separately in a broader local diagnostic integration. It reported 19 possible heap-origin reads and two heap descriptor-address loads; those aggregate counts do not establish their exact lineage. That run demonstrates analyzer utility. This public normal-renderer hook has source/cfg and compile validation, without a stock-game playthrough or FPS/visual claim. The full workspace suite was not run.
Checked for overlap
picked::stores_pickedsupplies a background conservative write-reachability boolean. This diagnostic exposes static operation/source classes and unknown coverage.View 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.