Launcher: finer host-copy windows on PCs with 16 GB of RAM or less (6.0 -> 5.2 GB of the PC's memory held by the card) #321
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!321
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-321"
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?
@bihanikeshav on GitHub · 2026-11-27 20:59 UTC · original
bihanikeshav:lowspec-windows→main· +10 −0 · 1 files · 1 commits · openWhat
scripts/play-foxhound.ps1setsVICTORY_WINDOW_KB=1024andVICTORY_WINDOW_TAILS=1when the PC has 16 GB of RAM or less. Both switches are already inmain(shadow.rs); no Rust changes.-More @{VICTORY_WINDOW_KB='4096'}gives back the 4 MiB grid.Why
On a 16 GB PC the host copies of title memory are the biggest part of the PC's memory the card holds, and Windows pages the rest of the process out. Most of those copies are windows on the 4 MiB grid, and most of those are asks without a length (root views), which keep the whole 4 MiB cell from its start. With 1 MiB windows and tails, a root view's window begins at its own 256 KiB step.
Measured
RTX 5060 Laptop (8 GB, 32-lane waves), Core Ultra 7 255HX, 16 GB RAM, Windows 11.
main0cef07e9plus #76, #81, #88, #63, #69.play-foxhound.ps1 -SeriesS -Dlss off, the same scripted menu input in every run, the prison's day room.Diagnostics build, memory line, about five minutes in:
Release build: median 16.0 -> 16.4 fps, private memory 20.3 -> 19.3 GB. No visual change seen.
The finer grid costs more copies per frame on bigger machines (a 256 KiB grid doubled copies on another tree), so the launcher sets it only at 16 GB or less, where paging costs more than the copies.
🤖 Generated with Claude Code
@harrisotiropoulos-jpg on GitHub · 2026-11-27 23:00 UTC · original
A data point from a different configuration, with the same two switches (
VICTORY_WINDOW_KB=1024,VICTORY_WINDOW_TAILS=1), set by hand through-More(this PR's launcher change would not set them here, since this PC has 32 GB).Setup: RTX 4080 (16 GB), 32 GB RAM, Windows 11, driver 621.x.
main29d8dbfplus #76, #81, #86, #25, #33, #34, #39, #58, #63, #84, #101. Diagnostics build, Series X at 1440p, DLSS Quality (preset K), DLSS Frame Generation 2x, 30 fps cap, open-world gameplay. One run of about 5 minutes with each setting, in the same area.What happened with the switches on: textures did not load correctly, and some objects flickered with random colours. With the default 4 MiB grid, the same build and route looked right.
Memory line, about five minutes in (12 one-second fps samples each):
So on this configuration the windows did not shrink. There were about 3x as many windows, holding slightly more memory, and the picture broke. This is one pair of runs in moving gameplay, so the private-memory difference is within run-to-run noise. The broken textures and coloured flicker were not subtle, though.
The corruption suggests that, with finer windows, some copies are not brought up to date (the same title memory asked for with different ranges then lies in more than one window, as the
window()comment inshadow.rsnotes). Your measurements were on Series S with DLSS off, in one room, so it may only show up with Series X, DLSS or frame generation, or outdoors. It would be worth a check on those before this goes on by default, even for 16 GB PCs only.🤖 Generated with Claude Code
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.