Series S on an 8 GB laptop GPU: VICTORY_WINDOW_KB=1024 VICTORY_WINDOW_TAILS=1 VICTORY_INPLACE=1 cut memory and fill in more of the first room #580

Open
opened 2026-11-26 03:46:46 +00:00 by github-bot · 1 comment
Owner

@⁠Jonirulah on GitHub · 2026-11-25 02:31 UTC · original

Setup

  • RTX 3070 Laptop GPU (8 GB), Ryzen 7 5800H, 32 GB RAM, Windows 11 LTSC 26100.
  • Release build of main (c96b4f2) plus a few local patches; #188 is needed for Series S.
  • Series S mode (--console series-s), warm pipeline library.
  • Always set: VICTORY_PIPELINE_WAIT_MS=24 VICTORY_LEAN_WINDOWS=1.

Same shot: first room after the cutscene, character at the window. One run each, process numbers sampled every 10 s once the frame rate had settled:

run extra env private dedicated VRAM shared GPU memory fps
A - 18.2-18.7 GB 6.6-6.8 GB ~5.0 GB 2.7-2.9
B WINDOW_KB=1024 WINDOW_TAILS=1 17.8-18.2 GB 6.6-6.9 GB ~4.35 GB 2.8-2.9
C B + INPLACE=1 17.6-17.8 GB 6.8 GB ~4.3 GB 2.8-3.0

Picture

  • A: walls are there, but the room is dark.
  • B: the chain-link mesh over the window appears.
  • C: the left wall shows its block texture, and the posters on the right wall are visible.

With one run each, part of this may simply be how long streaming had to catch up.

What limits INPLACE: in C the inplace line reports 132 windows 188 MB in place and 4185 view memory or not private memory committed whole turned down. Most title memory is the physical-page pool, which xmem creates as a SEC_RESERVE section, and OpenExistingHeapFromFileMapping refuses that. With the shared usage still around 4.3 GB on an 8 GB card, a committed pool section (or another way to open it in place) looks like the remaining big lever. I haven't tried it.

Also relevant on this card: a diag run at the same point showed textures capped at the 90% budget: 6.6 of 7.25 GB, about 9.9k title textures without a host copy, and over 1,100 passes that made no texture for lack of room.

**@⁠Jonirulah** on GitHub · 2026-11-25 02:31 UTC · [original](https://github.com/fxceless/victory-fork/issues/580) **Setup** - RTX 3070 Laptop GPU (8 GB), Ryzen 7 5800H, 32 GB RAM, Windows 11 LTSC 26100. - Release build of `main` (`c96b4f2`) plus a few local patches; #188 is needed for Series S. - Series S mode (`--console series-s`), warm pipeline library. - Always set: `VICTORY_PIPELINE_WAIT_MS=24 VICTORY_LEAN_WINDOWS=1`. **Same shot: first room after the cutscene, character at the window.** One run each, process numbers sampled every 10 s once the frame rate had settled: | run | extra env | private | dedicated VRAM | shared GPU memory | fps | |---|---|---|---|---|---| | A | - | 18.2-18.7 GB | 6.6-6.8 GB | ~5.0 GB | 2.7-2.9 | | B | `WINDOW_KB=1024 WINDOW_TAILS=1` | 17.8-18.2 GB | 6.6-6.9 GB | ~4.35 GB | 2.8-2.9 | | C | B + `INPLACE=1` | 17.6-17.8 GB | 6.8 GB | ~4.3 GB | 2.8-3.0 | **Picture** - A: walls are there, but the room is dark. - B: the chain-link mesh over the window appears. - C: the left wall shows its block texture, and the posters on the right wall are visible. With one run each, part of this may simply be how long streaming had to catch up. **What limits `INPLACE`:** in C the inplace line reports `132 windows 188 MB` in place and `4185 view memory or not private memory committed whole` turned down. Most title memory is the physical-page pool, which xmem creates as a `SEC_RESERVE` section, and `OpenExistingHeapFromFileMapping` refuses that. With the shared usage still around 4.3 GB on an 8 GB card, a committed pool section (or another way to open it in place) looks like the remaining big lever. I haven't tried it. **Also relevant on this card:** a diag run at the same point showed textures capped at the 90% budget: 6.6 of 7.25 GB, about 9.9k title textures without a host copy, and over 1,100 passes that made no texture for lack of room.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:46 +00:00
Author
Owner

@⁠OussamaToumirt on GitHub · 2026-11-25 04:54 UTC · original

Tried the lever from the last paragraph: the page pool made SEC_COMMIT and opened in place. Numbers from one machine, no game data.

Setup

  • AMD Radeon RX 6600 LE 8 GB (RDNA2), driver 32.0.21045.29003; Ryzen 5 5600X; 32 GB RAM; Windows 10 22H2 (19045), so the Agility SDK is loaded through #969 of Marvisak/VIctory merged locally (D3D12Core 618). TdrDelay 10 s. Game on a SATA SSD.
  • Fork main at c6867ca + local changes, release build, Series X profile, opening cutscene, 150 to 180 s of world frames per run (medians of the frame lines).
  • Common switches (the old defaults were faster on this 8 GB card than the new ones): VICTORY_RELAY=0 VICTORY_WIDE_BACK=0 VICTORY_CARD_BUFFERS_MIN_MB=16 VICTORY_CARD_BUFFERS_MB=512 VICTORY_LATE_WAIT=0 VICTORY_PLACED_FILLER=1 VICTORY_EARLY_TEXTURES_MS=0 VICTORY_BAKE_TEXTURES_MS=0.

The change (VICTORY_INPLACE=3, local, about 60 lines)

  • xmem: XMemAllocatePhysicalPages makes its section SEC_COMMIT when VICTORY_INPLACE>=3 (6.1 GiB of commit up front) and reports it committed; commit() returns early as under Wine.
  • inplace::place_for: a Cover::Run(section, offset) is placed in the section itself: the section is opened once with OpenExistingHeapFromFileMapping and kept, and a buffer is placed at the 64 KiB-aligned offset; other views are still turned down.

Results

VICTORY_INPLACE fps (median, best) preparing GPU copying back
unset 0.7–1.0, 1.4 ~255 ms ~420 ms ~295 ms
1 0.5, 1.4 257 ms 1617 ms 291 ms
2 1.2, 2.4 172 ms 415 ms 173 ms
3 0.5, 3.5 157 ms 1521 ms 101 ms

In place 3 report: 85 windows 400 MB, 3422 title buffers 361 MB, 72 refused by the host; no device loss.

What it shows here

  • Copying back falls to about 100 ms and preparing to about 157 ms, as hoped, and single frames reach 3.5 fps.
  • But the median frame gets slower: the GPU side goes from ~415 to ~1,500 ms. The opened section is a custom heap in system memory (L0), so shaders read that memory over PCIe (the RX 6600 has 8 lanes). Level 1 shows the same pattern. On this card, keeping GPU-hot memory in VRAM matters more than skipping the copies.
  • Also measured: with these switches, VICTORY_TEXTURE_ROOM_PERCENT=75 removed the 2–3 s GPU spikes once the card filled (1.3 fps, GPU ~410 ms flat).

Series S on this card (main + #188 + #32, same switches, VICTORY_INPLACE=2): the main targets are 1280x720 (2560x1440 on Series X). GPU 130–300 ms per frame for the first minute and a half (2–2.4 fps), then about 550 ms for the rest; median 1.3 fps over the run, no device loss.

Not tested: NVIDIA, other AMD cards, gameplay past the cutscene, more than one run per setting (run-to-run spread here is about ±0.2 fps).

AI use: Claude Code (Claude Opus 5.5) made the change, ran the builds and runs, and wrote this comment. The runs are from the owner's machine.

**@⁠OussamaToumirt** on GitHub · 2026-11-25 04:54 UTC · [original](https://github.com/fxceless/victory-fork/issues/580#issuecomment-7153275495) Tried the lever from the last paragraph: the page pool made `SEC_COMMIT` and opened in place. Numbers from one machine, no game data. **Setup** - AMD Radeon RX 6600 LE 8 GB (RDNA2), driver 32.0.21045.29003; Ryzen 5 5600X; 32 GB RAM; Windows 10 22H2 (19045), so the Agility SDK is loaded through #969 of Marvisak/VIctory merged locally (D3D12Core 618). `TdrDelay` 10 s. Game on a SATA SSD. - Fork `main` at `c6867ca` + local changes, release build, Series X profile, opening cutscene, 150 to 180 s of world frames per run (medians of the frame lines). - Common switches (the old defaults were faster on this 8 GB card than the new ones): `VICTORY_RELAY=0 VICTORY_WIDE_BACK=0 VICTORY_CARD_BUFFERS_MIN_MB=16 VICTORY_CARD_BUFFERS_MB=512 VICTORY_LATE_WAIT=0 VICTORY_PLACED_FILLER=1 VICTORY_EARLY_TEXTURES_MS=0 VICTORY_BAKE_TEXTURES_MS=0`. **The change (`VICTORY_INPLACE=3`, local, about 60 lines)** - `xmem`: `XMemAllocatePhysicalPages` makes its section `SEC_COMMIT` when `VICTORY_INPLACE>=3` (6.1 GiB of commit up front) and reports it committed; `commit()` returns early as under Wine. - `inplace::place_for`: a `Cover::Run(section, offset)` is placed in the section itself: the section is opened once with `OpenExistingHeapFromFileMapping` and kept, and a buffer is placed at the 64 KiB-aligned offset; other views are still turned down. **Results** | `VICTORY_INPLACE` | fps (median, best) | preparing | GPU | copying back | |---|---|---|---|---| | unset | 0.7–1.0, 1.4 | ~255 ms | ~420 ms | ~295 ms | | 1 | 0.5, 1.4 | 257 ms | 1617 ms | 291 ms | | 2 | 1.2, 2.4 | 172 ms | 415 ms | 173 ms | | 3 | 0.5, **3.5** | **157 ms** | 1521 ms | **101 ms** | In place 3 report: `85 windows 400 MB, 3422 title buffers 361 MB`, `72 refused by the host`; no device loss. **What it shows here** - Copying back falls to about 100 ms and preparing to about 157 ms, as hoped, and single frames reach 3.5 fps. - But the median frame gets slower: the GPU side goes from ~415 to ~1,500 ms. The opened section is a custom heap in system memory (L0), so shaders read that memory over PCIe (the RX 6600 has 8 lanes). Level 1 shows the same pattern. On this card, keeping GPU-hot memory in VRAM matters more than skipping the copies. - Also measured: with these switches, `VICTORY_TEXTURE_ROOM_PERCENT=75` removed the 2–3 s GPU spikes once the card filled (1.3 fps, GPU ~410 ms flat). **Series S on this card** (`main` + #188 + #32, same switches, `VICTORY_INPLACE=2`): the main targets are 1280x720 (2560x1440 on Series X). GPU 130–300 ms per frame for the first minute and a half (2–2.4 fps), then about 550 ms for the rest; median 1.3 fps over the run, no device loss. **Not tested:** NVIDIA, other AMD cards, gameplay past the cutscene, more than one run per setting (run-to-run spread here is about ±0.2 fps). AI use: Claude Code (Claude Opus 5.5) made the change, ran the builds and runs, and wrote this comment. The runs are from the owner's machine.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#580
No description provided.