Add optional live memory breakdown to release logs #4085
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!4085
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4085"
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 15:46 UTC · original
john-9474:codex/release-memory-breakdown→main· +37 −0 · 3 files · 1 commits · openRelease memory logs show process commit and cumulative placement totals, which can make old allocation traffic look like storage still retained.
VICTORY_MEMORY_BREAKDOWN=1adds an optional live-storage line to the existing once-per-second memory report, including scratch and its spare subset, other list uploads, idle snapshots, texture staging, system-memory GPU copies and CPU mirrors. It is off by default and works without the diagnostics feature.The existing counters keep their meanings. These categories overlap and do not reconcile all process commit; file-backed mirror capacity is not private commit, and idle snapshots exclude snapshots held by submissions. The snapshot helper only samples capacity under the existing pool lock. Allocation, reclamation, synchronization and rendering policies are unchanged.
Validation on release main
c71899d9/v2026.11.30.01:ec96efc816bf748fa448cca1000882d51b56873c07a7214a0a56042aa5949a11). A native Series X opt-in probe emitted the fields and helped distinguish a large private-memory total from the much smaller idle snapshot/scratch pools. That build also had local background audio, native file-backing and depth-fix test support, which are excluded from this PR.cargo check --locked -p victory-gpu --libpassed. A freshxtaskbuilt from that tree passedpolicy --stagedfor all three changed files;git diff --cached --checkalso passed. The normal check reports the pre-existing unusedShadow::rangedwarning.VICTORY_MEMORY_BREAKDOWN=0emitted zero breakdown events and 12 ordinary memory reports, then ended at its timer. The startup header confirmed the disabled flag.cargo testsuite was not run for this reporting-only change. No FPS, memory-saving or gameplay-rendering improvement is claimed for the diagnostic.The Windows CI check stopped at workspace Clippy before diagnostics or tests ran: unused
Lowered::loop_caps, two missingcard_passcapture arguments, and unusedShadow::ranged. The clean release-main check reports the same four errors. The affected shader file, GPU test and function bodies/signature are unchanged fromc71899d9; #4018 already addresses the missing test arguments. These upstream failures remain visible rather than being bundled into this reporting change.Overlap checked:
Only the two source files and the short
docs/windows-memory.mdexplanation are included. No game data, vendor binaries, local launch configuration or dependency changes are included.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.