GPU: windows outside buffers default to the 1 MiB grid with tails #691
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by laptopnotebook on 2026-11-25T04:35:10Z.
Windows 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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.