GPU: windows outside buffers default to the 1 MiB grid with tails #691
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/fxceless--victory-fork!691
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-691"
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?
@laptopnotebook on GitHub · 2026-11-25 04:35 UTC · original
laptopnotebook:perf/window-grid-1mib→main· +27 −19 · 1 files · 1 commits · openWindows over title memory outside buffers were cut on a 4 MiB grid. The comment on
window()kept that default "until a run with the memory line's window counts has shown what the finer grids give", so here are those runs. This makesVICTORY_WINDOW_KB=1024andVICTORY_WINDOW_TAILS=1the defaults;VICTORY_WINDOW_KB=4096 VICTORY_WINDOW_TAILS=0brings back the old windows.Measured in the first room on an 8 GB card, Windows 11, diagnostics build of
310c6eb, warm shader cache, 312 s in the world each, numbers from the memory line at the end of each run:So about 350-750 MB less of the PC's memory, and no real change on the card. The cost is some frame rate: windows are made and let go about seven times as often (3,368 against 522 over the run). On this machine the PC had about 1 GB of commit left with the old default, so the saving matters here; on a machine with plenty of RAM the old default may be the better trade.
Draw counts differed between runs, but they followed where the camera was pointing rather than the setting, so I'm not claiming anything about the room's geometry. Issue #580 saw a similar saving (~650 MB shared) on another 8 GB card.
The default is checked in the log (
grid 1024 KiBwith no environment set).cargo test --workspace --lockedpasses; the grid test now expects 1 MiB as the default. Clippy currently fails onmainindraw.rsandindirect.rs, which this PR doesn't touch.Windows over title memory outside buffers were cut on a 4 MiB grid, and the comment kept that default until a run with the memory line's window counts showed what the finer grids give. Measured in the first room on an 8 GB card (diagnostics build, warm shader cache, 312 s in the world each), the 1 MiB grid with tails against the old default: 1 MiB (env) 1 MiB (default) 4 MiB windows alive 3,072 MB 2,689 MB 3,440 MB shared with the card 4,734 MB 4,364 MB 5,096 MB private bytes 20,819 MB 20,343 MB 21,164 MB frames a second 1.4 1.5 1.7 About 350-750 MB less of the PC's memory, at some cost in frame rate (windows are made and let go about seven times as often). Draw counts moved with where the camera was and are not compared. Issue #580 saw a similar saving on another 8 GB card. VICTORY_WINDOW_KB=4096 VICTORY_WINDOW_TAILS=0 brings back the old windows.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.