Snapshot for Shadow : writing is committed at the full copy length (256 MiB for a 1 MiB range) #4521
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#4521
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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:48 UTC · original
While reading
shadow.rsI measured what declaring a range withShadow::writingcosts a big copy. Reproducible without a title or a card (test in my PR from Kerimrode:measure-snapshot-commit):Windows 11, debug build, defaults (wide_back: true, relay: false), 256 MiB copy, 1 MiB declared:
writingtakes its snapshot frompooled(total), withtotalthe length of the whole copy, so the commit charge is the copy's size while almost none of it is resident. docs/windows-memory.md reports system commit, not physical RAM, as the limit that ends the process, so this may be a part of it.What I do not know: how big the declared ranges are against their copies in a real title, and how much the snapshot pool's reuse softens it. I have no title to run, so I cannot say whether this matters in practice.
Could someone with a run check it? For example the sum of
pooledcapacities against the sum of declared bytes over a scene load. If that ratio is large, snapshots sized to the declared ranges (or committed per 64 KiB piece) might lower the commit peak. If it is near 1, nothing to do here.I am happy to add a counter for that ratio to the memory line if that would help, many thanks
@github-actions[bot] on GitHub · 2026-11-30 21:49 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@Kerimrode on GitHub · 2026-11-30 21:50 UTC · original
This is not a crash report, so there are no play or crash logs: I have no title to run. The evidence is the reproducible measurement above, which needs no game, card or logs (the ignored test in #4515). The label
needs-logscan be ignored here, or removed.@Raesdf on GitHub · 2026-12-01 11:02 UTC · original · edited 2026-12-01 12:25 UTC
m taking this one — I'll start by reproducing the measurement from #4515 on Windows, then look at sizing the snapshot to the declared ranges. I'll mention #4515 in the PR's Overlap section
EDIT : Reproduced on Windows 11: 256 MiB copy, 1 MiB declared per range — first range committed +256.8 MiB, working set +0.5 MiB; second range +0.0/+0.0 (test from #4515, cherry-picked onto current main). Confirms the snapshot is committed at the full copy length. Now looking at the fix.