Repository navigation
Reuse enclosing title buffers and offer 256 KiB loose windows on macOS - #165
Conversation
Backport the enclosing lookup and smaller-copy experiments from Marvisak/VIctory#402 and #2088. The 256 KiB setting is opt-in on macOS because prologue measurements show a lower footprint and mixed frame times. Co-authored-by: KaiserBloo <kaiserbloo@protonmail.com> Co-authored-by: desp <me@desp.lol> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. Three requests. First, the new shadow tests that call |
|
I merged main in (no conflicts). The overlapping windows test calls writing, copy_back and loose, so it now holds the submission lock the way the mark tests from #150 do. I also added a note on the cost of the enclosing lookup: it walks the entries starting within the longest buffer's length below the address, where the old search stopped after 64. CI passed and the PR is merged. |
Backport of Marvisak/VIctory #402 and #2088, with a macOS switch for the window size. A lookup can now find a registered parent buffer past more than 64 smaller children. A request outside those buffers can reuse a loose window covering its full byte range. Creating a new window requires a committed first byte.
Set
VICTORY_SMALL_LOOSE_WINDOWS=1for 256 KiB loose windows. The default is 4 MiB. Smaller windows can reduce retained host memory while increasing the number of D3D12 resource views. Either size uses the corrected enclosing-buffer lookup.On an M5 Max, two integration builds started from copies of the same prologue checkpoint and initial cache under CrossOver Preview / D3DMetal. The control used the previous lookup and 4 MiB windows. The backport used 256 KiB windows. Both reached world frame +90 at 720p.
These are single runs. The observed benefit was lower memory use. The frame-rate result varied by interval.
On the public backport, the full debug Windows GPU suite under CrossOver passed 234 tests with one ignored. All 14 release shadow tests passed separately at each window size. The full release GPU suite had two failures. The UAV vtable function-address assertion also failed on the unmodified upstream GPU source in release mode. The frame-timing assertion passed on an isolated retry. The native GPU suite passed 79 tests with one ignored, and the staged asset check passed.