Repository navigation
Diagnostics/process memory snapshot - #484
Closed
ToxicmaggotRP wants to merge 3 commits into
Closed
ToxicmaggotRP wants to merge 3 commits into
ToxicmaggotRP wants to merge 3 commits into
Conversation
This was referenced Nov 24, 2026
mercuryVM
approved these changes
Nov 24, 2026
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 3b7e1d5 on Windows 11, RTX 5070, MSVC: the workspace passes (264: 195 outside victory-shader, plus victory-shader --lib with --test-threads=1, 69 passed). The first full run timed out on the known parallel VALU GPU-test hang that #433 addresses, which has nothing to do with this change. cargo check -p victory-gpu --features diagnostics is clean.
K32GetProcessMemoryInfowithcb = size_of::<PROCESS_MEMORY_COUNTERS_EX>()and the base-struct pointer cast is the documented way to getPrivateUsage.- Keeping the previous fault sample when the query fails (instead of resetting it) avoids a one-interval spike of lifetime faults.
PrivateUsage(commit) andWorkingSetSize(resident) are the two numbers #471 needs.
Diagnostics only, so release builds are unchanged. No issues found.
AI-assisted (Claude Code).
mercuryVM
added a commit
to mercuryVM/VIctory
that referenced
this pull request
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nazmi
pushed a commit
to nazmi/VIctory
that referenced
this pull request
Nov 24, 2026
Applied as the net diff of upstream PR Marvisak#484 (head 3b7e1d5), 3 commits: 3b7e1d5,3d29e698,d9b14766.
This was referenced Nov 24, 2026
edsuuu
referenced
this pull request
in edsuuu/VI-BR-PORT
Nov 24, 2026
…itives, capture), verified together Merges #124 #119 #515 #934 #484 #143 #1191 #278 #553 #153 #270 #1158 #1204 #1220 #488 #1146 #631 onto main (ffe310e), each head unchanged, no conflicts, no changes of mine. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (372 passed, 8 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
This was referenced Nov 24, 2026
geiyiliyabumo
pushed a commit
to geiyiliyabumo/VIctory
that referenced
this pull request
Nov 25, 2026
A locked or sleeping display used to retry CreateDXGIFactory2 / CreateSwapChainForHwnd on every frame (thousands of WARN lines per minute). Keep a Retry schedule (100 ms doubling to 1 s), name which presenter step failed, and unit-test the backoff math. Refs Marvisak#484. Co-authored-by: JMAN730 <JMAN730@users.noreply.github.com>
geiyiliyabumo
pushed a commit
to geiyiliyabumo/VIctory
that referenced
this pull request
Nov 25, 2026
…-backoff-484-111a GPU: back off swap-chain creation when the desktop cannot present (Marvisak#484)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Diagnostics: report process private and resident memory
Related to #471 (memory growth during world load).
What
The diagnostics copy-stat line already samples process page faults through
K32GetProcessMemoryInfo, but it only requests the basePROCESS_MEMORY_COUNTERSstructure.This change adds the extended counters needed to correlate copy-path measurements with the process's actual memory footprint:
PROCESS_MEMORY_COUNTERS_EX.PrivateUsage(process private commit charge) andWorkingSetSize(resident working set) in GiB.This is process-wide telemetry. It does not attribute memory to individual pools or staging buffers, and it does not fix the memory ceiling by itself. It provides a reliable process-memory series to compare with existing copy statistics and the memory optimisations in #472.
Verification
windows-sys 0.61.2API signature and structure fields.PROCESS_MEMORY_COUNTERS_EX.crates/victory-gpu/src/copystat.rschanges.main, with no upstream commits missing.cargo fmt,cargo check -p victory-gpu --features diagnostics, tests, and a Windows diagnostics run were not performed because Rust/Cargo are unavailable in the development environment.No game assets or proprietary files used.
AI-assisted contribution (ChatGPT).