Add an ignored measurement of snapshot commit per declared range #4515
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!4515
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4514"
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?
@Kerimrode on GitHub · 2026-11-30 21:42 UTC · original
Kerimrode:measure-snapshot-commit→main· +1002 −847 · 32 files · 14 commits · closed without mergingWhat it changes
Adds one
#[ignore]d test,snapshot_commit_per_declared_byte, inshadow.rs. It asserts nothing and changes no runtime code. It builds an unbackedShadowof 256 MiB, declares a 1 MiB range withShadow::writing, and prints the process working set and committed bytes (procmem::process_memory) before and after, then again for a second range far from the first.Run alone, on Windows:
What it shows
On Windows 11, debug build, defaults (wide_back: true, relay: false):
So the snapshot (
pooled(total)) is committed at the length of the whole copy, not of the declared range, while almost none of it is resident. The second range adds nothing: the snapshot is per copy.What it does not show
How much this matters for a real title. That depends on how big the declared ranges are against their copies, and I have no title to run. The snapshot pool reuses buffers, which may soften it. I am not proposing a change to the allocation here, only a number anyone can reproduce, since commit (not RAM) is what docs/windows-memory.md reports as the limit being hit.
How it was tested
cargo clippy -p victory-gpu --all-targets [--all-features] --locked -- -D warnings: cleancargo xtask policy --staged: ok@trustno1-coder on GitHub · 2026-12-01 18:39 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