Hardware report: RTX 3050 6 GB Laptop / 16 GB RAM, Series S: RAM runs out at the world load; what helps (cc9ed86) #97

Open
opened 2026-11-27 00:42:15 +00:00 by github-bot · 9 comments
Owner

@⁠nidscode on GitHub · 2026-11-27 00:38 UTC · original

Vice-Tay on a 16 GB laptop with a 6 GB RTX 3050: test report

Build: Vice-Tay main at cc9ed86 (diag profile, --features diagnostics), Series S profile, windowed.
Date: 2026-11-26.
Purpose: where Vice-Tay stands on lower-end hardware, what fails first, and what helps. All measurements come from short, guarded runs.

1. Test machine

Part Detail
CPU Intel Core i7-13700H (6 P-cores + 8 E-cores, 20 threads)
GPU NVIDIA GeForce RTX 3050 6 GB Laptop GPU (DXGI budget 5,233 MB), Resizable BAR on; Intel Iris Xe iGPU is DXGI adapter 0
RAM 16 GB (16,124 MB visible), system-managed commit limit 57 GB
Storage 1 TB NVMe SSD
OS Windows 11

Vice-Tay picks the RTX 3050 on its own (create_preferred_device, high-performance preference), so it needs no adapter override on this hybrid laptop.

2. Method

  • Shaders were translated ahead with victory.exe shaders and the launcher's VICTORY_WAVE_WIDE_ONLY list: 25,786 in the cache, 199 that do not translate, 304 s.
  • Each run uses scripts\play.ps1 -Console series-s -Windowed, plus -More overrides where listed. Scripted Enter presses (VICTORY_KEYS) reach the story load in about 60–100 s, and the run is stopped after 240 s.
  • An external memory guard stops the game below 400 MB of free RAM (for 1 s, or 3 of 4 samples), below 2 GB of commit left, or at a GPU reset, so the PC never hard-pages to a blue screen. The guard also caps the game's working set at 4.5 GB, which pushes the trimming onto the game's own pages rather than everyone else's. Memory is sampled every ~4 s.
  • "World" means the frame reports with 300 or more draws a frame. Its first report includes the world-load frame.
  • Run-to-run variance is large. On VIctory-NVIDIA, three runs with identical settings gave 263, 131 and 71 world frames in about 180 s. Only effects of about 2× or more show in single runs, so every claim below rests on repeated runs where possible.

3. Results

Run Settings Ended by World time World frames Median ms Lowest free RAM
vt1 -Machine auto (selects the 4090 preset) guard, at the world load (95 s) 12 s 21 584 3 MB
vt2 laptop set (below) time limit (240 s) 110 s 111 819 114 MB
vt3 laptop set (same as vt2) guard, at the world load (108 s) – 5 – 2 MB
vt4 laptop set + RAM throttle (PR) time limit (240 s) 168 s 82 1,764 465 MB
vt5 laptop set + RAM throttle (PR) time limit (240 s) 189 s 132 1,304 428 MB

Laptop set: VICTORY_DSTORAGE_IO=direct, VICTORY_INPLACE=2, VICTORY_WINDOW_KB=64, VICTORY_WINDOW_TAILS=1, VICTORY_WINDOWS_BAR_MB=3072, VICTORY_CARD_BUFFERS_MB=256, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_UPSCALER=6, VICTORY_RENDER_SCALE=0.5, VICTORY_OUTPUT=1920x1080, VICTORY_POKE=71B6330:1. The poke pauses the title's heartbeat watchdog, which otherwise kills a world load that takes more than about 30 s without a frame. A real hang then has to be closed by hand.

RAM throttle (PR): VICTORY_RAM_FLOOR_MB=1500, VICTORY_RAM_WAIT_MS=500, VICTORY_RAM_WAIT_SHARE_MS=900, VICTORY_RAM_FRAME_WAIT_MS=1000, VICTORY_WINDOWS_BAR_PERCENT=92.

4. Findings

F1. On 16 GB, physical RAM runs out at the world load, not during play

In every failed run, free RAM collapses while the world streams in. Within about 20 s, the memory the layer shares with the card goes from under 1 GB to 4–5 GB, faster than Windows can write other pages out. Once the world is up, free RAM holds at 0.5–1.2 GB.

  • Without the throttle, 1 of 2 runs survived the load (lowest free RAM 114 MB and 2 MB).
  • With it (#96), 2 of 2 survived (465 MB and 428 MB).
  • On VIctory-NVIDIA with the same throttle, 6 of 7 runs survived.

The cost: in vt5 the throttle held submissions back for 66.8 s of 240 and made 574 buffers wait 121 s in total. The world's median frame is slower (1.3–1.8 s against 0.8 s for the one unthrottled run that survived). It's a stability-for-speed trade for low-RAM machines, and it's off by default.

F2. -Machine auto gives every NVIDIA card the RTX 4090 preset

On this laptop the auto preset asks for 12 list-translation, 8 memory-update and 6 landing threads, and none of the memory settings above. vt1 then runs out of RAM at the world load. A preset for small NVIDIA PCs, picked automatically under some RAM or VRAM threshold, would let laptop users start from settings that reach the world. A follow-up PR can add this once the throttle settles; the numbers to start from are in section 3.

F3. Where physical RAM goes in the world

Measured on VIctory-NVIDIA (same base) at a snapshot 4 minutes in, with similar numbers on Vice-Tay:

  • The process held 17.6 GB of private commit, but only its 4.5 GB working set was in RAM.
  • Physical RAM went to that working set, Windows' compression store (2.6–6 GB, mostly the game's trimmed pages), and 4.1–5.2 GB of GPU-shared system memory (upload heaps and windows outside buffers, which stay in RAM while the card uses them).
  • Of the private memory, 5.4 GB was write-combined upload heaps (51 × 64 MB and 47 × 32 MB blocks).
  • Host copies of title memory: about 2.8 GB alive, of which 2.0–2.5 GB were windows outside buffers.

GPU-shared memory keeps growing through the world (4.4 → 5.2 GB in 2 minutes on VIctory-NVIDIA). Windows that a descriptor slot still views can't be let go (shadow.rs let_go_idle requires no slot to hold the buffer), so streaming keeps adding them. This looks like the main limit on longer sessions on 16 GB, and likely the same mechanism as #36's "exhausts physical RAM within 10–15 minutes" on 32 GB.

F4. VICTORY_OUTPUT=1920x1080 lowers video memory on a small card

With 1080p output (plus the title's own upscaler at 0.5), the card stood at 4.2 GB of its 5.2 GB budget in the world, with a 4.4 GB peak. On VIctory-NVIDIA, which can't change the output size, the card was full (4.9–5.8 GB), and only 25–660 MB of windows fit there instead of in RAM. VICTORY_DISPLAY_MODE does not change the output, as resolution.rs already notes. Documenting VICTORY_OUTPUT for small cards would help.

F5. Texture size is not the card's main consumer at 540p

In the world, host textures took about 1.3 GB for textures the title fills and about 1.0 GB for targets and others, out of 4.9 GB in use. An experimental cap on texture size (largest level 1024 or 512 texels; not in this PR) cut 120 MB and 750 MB of copies. But the queue of textures picked by index fills the freed memory back up to its 90 % line, and the extra room never reached the windows. Lowering the render scale below 0.5 isn't a lever either: the GPU's share of a world frame was about 110 ms of 0.8–1.4 s.

F6. Two warnings that may be bugs

  • "a texture picked by index changed after its upload with nothing to tell of it": 200 times in vt2 (for example slot=11660 bytes=8294400 frames_after_upload=176 changed=2). It may be related to the texture freshness signals in #88.
  • "a pipeline creation method that is not implemented: the title goes without this pipeline": 29 times in vt2, at slots 0x1c8 (16) and 0x218 (13).

F7. Different builds share one NVIDIA shader cache

NVIDIA's DX cache keys on the executable's name. Every fork builds victory.exe, so they all write the same 1 GiB file in %LOCALAPPDATA%\NVIDIA\DXCache. Running another fork pushed out the pipelines a warmed build used, and dropped draws rose until warm --used ran again. Telling testers to back up that pair of .nvph files, or to rename the executable per build, avoids misleading A/B results.

5. Pull request

#96: Add an opt-in RAM throttle for low-RAM PCs (off by default). The details and these measurements are in the PR's description:

  • VICTORY_RAM_FLOOR_MB: below the floor, the layer's new buffers in the PC's memory wait (VICTORY_RAM_WAIT_MS each, VICTORY_RAM_WAIT_SHARE_MS per second at most).
  • VICTORY_RAM_FRAME_WAIT_MS: the title's submissions wait the same way, at most half the time.
  • VICTORY_WINDOWS_BAR_PERCENT: the share of the card's budget the windows on the card may take (default 80, as before).

6. Suggested next steps

  1. A small-PC preset in play.ps1 (F2), picked automatically under a RAM or VRAM threshold.
  2. Let go of windows that slots still view but no draw has read for a long time (F3): re-point such slots, or move their windows to the card. This is the growth that ends long sessions.
  3. Find out where the "changed after its upload" textures come from (F6).
**@⁠nidscode** on GitHub · 2026-11-27 00:38 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97) # Vice-Tay on a 16 GB laptop with a 6 GB RTX 3050: test report **Build:** Vice-Tay `main` at `cc9ed86` (diag profile, `--features diagnostics`), Series S profile, windowed. **Date:** 2026-11-26. **Purpose:** where Vice-Tay stands on lower-end hardware, what fails first, and what helps. All measurements come from short, guarded runs. ## 1. Test machine | Part | Detail | |---|---| | CPU | Intel Core i7-13700H (6 P-cores + 8 E-cores, 20 threads) | | GPU | NVIDIA GeForce RTX 3050 6 GB Laptop GPU (DXGI budget 5,233 MB), Resizable BAR on; Intel Iris Xe iGPU is DXGI adapter 0 | | RAM | 16 GB (16,124 MB visible), system-managed commit limit 57 GB | | Storage | 1 TB NVMe SSD | | OS | Windows 11 | Vice-Tay picks the RTX 3050 on its own (`create_preferred_device`, high-performance preference), so it needs no adapter override on this hybrid laptop. ## 2. Method - Shaders were translated ahead with `victory.exe shaders` and the launcher's `VICTORY_WAVE_WIDE_ONLY` list: 25,786 in the cache, 199 that do not translate, 304 s. - Each run uses `scripts\play.ps1 -Console series-s -Windowed`, plus `-More` overrides where listed. Scripted Enter presses (`VICTORY_KEYS`) reach the story load in about 60–100 s, and the run is stopped after 240 s. - An external memory guard stops the game below 400 MB of free RAM (for 1 s, or 3 of 4 samples), below 2 GB of commit left, or at a GPU reset, so the PC never hard-pages to a blue screen. The guard also caps the game's working set at 4.5 GB, which pushes the trimming onto the game's own pages rather than everyone else's. Memory is sampled every ~4 s. - "World" means the frame reports with 300 or more draws a frame. Its first report includes the world-load frame. - **Run-to-run variance is large.** On VIctory-NVIDIA, three runs with identical settings gave 263, 131 and 71 world frames in about 180 s. Only effects of about 2× or more show in single runs, so every claim below rests on repeated runs where possible. ## 3. Results | Run | Settings | Ended by | World time | World frames | Median ms | Lowest free RAM | |---|---|---|---|---|---|---| | vt1 | `-Machine auto` (selects the 4090 preset) | guard, at the world load (95 s) | 12 s | 21 | 584 | **3 MB** | | vt2 | laptop set (below) | time limit (240 s) | 110 s | 111 | 819 | 114 MB | | vt3 | laptop set (same as vt2) | guard, at the world load (108 s) | – | 5 | – | **2 MB** | | vt4 | laptop set + RAM throttle (PR) | time limit (240 s) | 168 s | 82 | 1,764 | 465 MB | | vt5 | laptop set + RAM throttle (PR) | time limit (240 s) | 189 s | 132 | 1,304 | 428 MB | **Laptop set:** `VICTORY_DSTORAGE_IO=direct`, `VICTORY_INPLACE=2`, `VICTORY_WINDOW_KB=64`, `VICTORY_WINDOW_TAILS=1`, `VICTORY_WINDOWS_BAR_MB=3072`, `VICTORY_CARD_BUFFERS_MB=256`, `VICTORY_LEVELS_ON_DEMAND=1`, `VICTORY_UPSCALER=6`, `VICTORY_RENDER_SCALE=0.5`, `VICTORY_OUTPUT=1920x1080`, `VICTORY_POKE=71B6330:1`. The poke pauses the title's heartbeat watchdog, which otherwise kills a world load that takes more than about 30 s without a frame. A real hang then has to be closed by hand. **RAM throttle (PR):** `VICTORY_RAM_FLOOR_MB=1500`, `VICTORY_RAM_WAIT_MS=500`, `VICTORY_RAM_WAIT_SHARE_MS=900`, `VICTORY_RAM_FRAME_WAIT_MS=1000`, `VICTORY_WINDOWS_BAR_PERCENT=92`. ## 4. Findings ### F1. On 16 GB, physical RAM runs out at the world load, not during play In every failed run, free RAM collapses while the world streams in. Within about 20 s, the memory the layer shares with the card goes from under 1 GB to 4–5 GB, faster than Windows can write other pages out. Once the world is up, free RAM holds at 0.5–1.2 GB. - Without the throttle, 1 of 2 runs survived the load (lowest free RAM 114 MB and 2 MB). - With it (#96), 2 of 2 survived (465 MB and 428 MB). - On VIctory-NVIDIA with the same throttle, 6 of 7 runs survived. The cost: in vt5 the throttle held submissions back for 66.8 s of 240 and made 574 buffers wait 121 s in total. The world's median frame is slower (1.3–1.8 s against 0.8 s for the one unthrottled run that survived). It's a stability-for-speed trade for low-RAM machines, and it's off by default. ### F2. `-Machine auto` gives every NVIDIA card the RTX 4090 preset On this laptop the auto preset asks for 12 list-translation, 8 memory-update and 6 landing threads, and none of the memory settings above. vt1 then runs out of RAM at the world load. A preset for small NVIDIA PCs, picked automatically under some RAM or VRAM threshold, would let laptop users start from settings that reach the world. A follow-up PR can add this once the throttle settles; the numbers to start from are in section 3. ### F3. Where physical RAM goes in the world Measured on VIctory-NVIDIA (same base) at a snapshot 4 minutes in, with similar numbers on Vice-Tay: - The process held 17.6 GB of private commit, but only its 4.5 GB working set was in RAM. - Physical RAM went to that working set, Windows' compression store (2.6–6 GB, mostly the game's trimmed pages), and **4.1–5.2 GB of GPU-shared system memory** (upload heaps and windows outside buffers, which stay in RAM while the card uses them). - Of the private memory, 5.4 GB was write-combined upload heaps (51 × 64 MB and 47 × 32 MB blocks). - Host copies of title memory: about 2.8 GB alive, of which 2.0–2.5 GB were windows outside buffers. GPU-shared memory **keeps growing** through the world (4.4 → 5.2 GB in 2 minutes on VIctory-NVIDIA). Windows that a descriptor slot still views can't be let go (`shadow.rs` `let_go_idle` requires no slot to hold the buffer), so streaming keeps adding them. This looks like the main limit on longer sessions on 16 GB, and likely the same mechanism as #36's "exhausts physical RAM within 10–15 minutes" on 32 GB. ### F4. `VICTORY_OUTPUT=1920x1080` lowers video memory on a small card With 1080p output (plus the title's own upscaler at 0.5), the card stood at 4.2 GB of its 5.2 GB budget in the world, with a 4.4 GB peak. On VIctory-NVIDIA, which can't change the output size, the card was full (4.9–5.8 GB), and only 25–660 MB of windows fit there instead of in RAM. `VICTORY_DISPLAY_MODE` does not change the output, as `resolution.rs` already notes. Documenting `VICTORY_OUTPUT` for small cards would help. ### F5. Texture size is not the card's main consumer at 540p In the world, host textures took about 1.3 GB for textures the title fills and about 1.0 GB for targets and others, out of 4.9 GB in use. An experimental cap on texture size (largest level 1024 or 512 texels; not in this PR) cut 120 MB and 750 MB of copies. But the queue of textures picked by index fills the freed memory back up to its 90 % line, and the extra room never reached the windows. Lowering the render scale below 0.5 isn't a lever either: the GPU's share of a world frame was about 110 ms of 0.8–1.4 s. ### F6. Two warnings that may be bugs - **"a texture picked by index changed after its upload with nothing to tell of it"**: 200 times in vt2 (for example `slot=11660 bytes=8294400 frames_after_upload=176 changed=2`). It may be related to the texture freshness signals in #88. - **"a pipeline creation method that is not implemented: the title goes without this pipeline"**: 29 times in vt2, at slots `0x1c8` (16) and `0x218` (13). ### F7. Different builds share one NVIDIA shader cache NVIDIA's DX cache keys on the executable's name. Every fork builds `victory.exe`, so they all write the same 1 GiB file in `%LOCALAPPDATA%\NVIDIA\DXCache`. Running another fork pushed out the pipelines a warmed build used, and dropped draws rose until `warm --used` ran again. Telling testers to back up that pair of `.nvph` files, or to rename the executable per build, avoids misleading A/B results. ## 5. Pull request **#96: Add an opt-in RAM throttle for low-RAM PCs** (off by default). The details and these measurements are in the PR's description: - `VICTORY_RAM_FLOOR_MB`: below the floor, the layer's new buffers in the PC's memory wait (`VICTORY_RAM_WAIT_MS` each, `VICTORY_RAM_WAIT_SHARE_MS` per second at most). - `VICTORY_RAM_FRAME_WAIT_MS`: the title's submissions wait the same way, at most half the time. - `VICTORY_WINDOWS_BAR_PERCENT`: the share of the card's budget the windows on the card may take (default 80, as before). ## 6. Suggested next steps 1. A small-PC preset in `play.ps1` (F2), picked automatically under a RAM or VRAM threshold. 2. Let go of windows that slots still view but no draw has read for a long time (F3): re-point such slots, or move their windows to the card. This is the growth that ends long sessions. 3. Find out where the "changed after its upload" textures come from (F6).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:42:15 +00:00
Author
Owner

@⁠akimfomin on GitHub · 2026-11-27 01:15 UTC · original

Your 16 GB report separates load survival from frame time: the throttle finished both trials, and the surviving unthrottled run had a lower median. AnyXboxX has a different open question for the same class of PC: should its window budget include the copies that are still held? I checked AnyXboxX #466 against the current pinned receiving commit. It merges cleanly, and KainanP's new test covers 3,072 MiB held plus 1,536 MiB idle against a 2,048 MiB budget.

If that is interesting to you, PortBridge Lab #109 has the exact commits and one synthetic test your agent can try first. A bounded A/B is useful only if a permitted workload naturally reaches Watch or High. Existing aggregates or the synthetic result alone are welcome, with no need to reproduce the low-headroom run. I can relay a result with your attribution.

**@⁠akimfomin** on GitHub · 2026-11-27 01:15 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207146355) Your 16 GB report separates load survival from frame time: the throttle finished both trials, and the surviving unthrottled run had a lower median. AnyXboxX has a different open question for the same class of PC: should its window budget include the copies that are still held? I checked [AnyXboxX #466](https://github.com/LooperSalty/AnyXboxX/pull/466) against the current pinned receiving commit. It merges cleanly, and KainanP's new test covers 3,072 MiB held plus 1,536 MiB idle against a 2,048 MiB budget. If that is interesting to you, [PortBridge Lab #109](https://github.com/akimfomin/PortBridge/issues/109#issuecomment-7207139616) has the exact commits and one synthetic test your agent can try first. A bounded A/B is useful only if a permitted workload naturally reaches Watch or High. Existing aggregates or the synthetic result alone are welcome, with no need to reproduce the low-headroom run. I can relay a result with your attribution.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:29 UTC · original

@⁠nidscode Thanks for the guarded runs. On this 16 GB laptop the throttle got through both world loads, versus one of two on the laptop settings alone. The two surviving throttled runs also had longer median frames than the surviving unthrottled run. I’ll keep those two results visible while reviewing #96 and #100. I also confirmed that let_go_idle currently considers only windows held by no other shadow user and with no extra host-buffer references. Bytes still held by slots and bytes eligible for eviction would be a useful next split alongside the existing total. @⁠akimfomin, thanks for pointing out the held-copy case in AnyXboxX #466. That synthetic result is a useful comparison for the accounting question.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207324087) @⁠nidscode Thanks for the guarded runs. On this 16 GB laptop the throttle got through both world loads, versus one of two on the laptop settings alone. The two surviving throttled runs also had longer median frames than the surviving unthrottled run. I’ll keep those two results visible while reviewing #96 and #100. I also confirmed that `let_go_idle` currently considers only windows held by no other shadow user and with no extra host-buffer references. Bytes still held by slots and bytes eligible for eviction would be a useful next split alongside the existing total. @⁠akimfomin, thanks for pointing out the held-copy case in AnyXboxX #466. That synthetic result is a useful comparison for the accounting question.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:30 UTC · original

@⁠nidscode @⁠akimfomin I confirmed the held-window accounting gap on Vice-Tay and opened draft #103 with KainanP’s fix from AnyXboxX #466. With 3,072 MiB held and three idle 512 MiB windows, the old eviction function selected nothing at a 2,048 MiB cap. The patched function selects all three idle windows and leaves the held ones alone. That verifies the budget decision in a synthetic test. A guarded game run would tell us how often it makes a difference on 16 GB.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:30 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207346392) @⁠nidscode @⁠akimfomin I confirmed the held-window accounting gap on Vice-Tay and opened draft #103 with KainanP’s fix from AnyXboxX #466. With 3,072 MiB held and three idle 512 MiB windows, the old eviction function selected nothing at a 2,048 MiB cap. The patched function selects all three idle windows and leaves the held ones alone. That verifies the budget decision in a synthetic test. A guarded game run would tell us how often it makes a difference on 16 GB.
Author
Owner

@⁠nidscode on GitHub · 2026-11-27 01:31 UTC · original

Follow-up: where the RAM goes in the world on 16 GB (memory map, VICTORY_MEMORY_MAP=6)

These are diag builds on cc9ed86 with #96 and #100, through -Machine laptop (4.5 GB working-set ceiling). The memory map line ran every 30 s. This is its last sample, about 3 minutes in, in the world:

Kind Committed In memory
the title's heaps (private, console addresses) 3,061 MB 441 MB
views of the title's pages 6,630 MB 1,111 MB
the title's page pool 3,977 MB 0 MB
process heap segments 2,643 MB 688 MB
windows and other 4 MiB allocations 308 MB 172 MB
write-combined (buffers shared with the card) 6,209 MB 1,576 MB
other private allocations of 1 MB and more 3,158 MB 1,221 MB
files and other mappings 5,590 MB 436 MB
  1. The title itself gets about 1.55 GB of RAM. Its heaps and page views hold 441 + 1,111 MB in memory, against about 3.5 GB for the layer and the driver (write-combined, other private, process heap). On 16 GB, every MB the layer gives back goes to the title. The world frame takes 1.3–1.8 s while the GPU's share is 20–200 ms, and the title pages its own memory back in at 35,000–175,000 pages a second.
  2. A group of plain read-write 32 MB allocations grows through the world load. It goes from 1 to 24 (767 MB), then 42 (1,098 MB), then 55 (1,676 MB) over about 3 minutes. It isn't the layer's Rust allocator: the memory line's "our own blocks of 32 MB and more" lists only 251 MB (the title's audio), 82 MB and two of 50 MB. Over the same stretch, "host lists made by the host" goes from 688 to 1,366 and then levels off, about 12 new lists per 32 MB block. My guess is that it's command allocator memory in the driver (one allocator per host list, which keeps its peak size until destroyed), but I haven't proven it.
  3. Write-combined: 107 allocations of 32 MB and 31 of 64 MB (5.1 GB committed, 1.6 GB in memory).
  4. Windows of view memory are copied, not placed. title memory in place shows 92 MB of windows and 148 MB of buffers in place. 18,688 windows were "turned down: view memory or not private memory committed whole", and they make up the 1.9 GB of window copies. The page pool's section is SEC_RESERVE, so OpenExistingHeapFromFileMapping can't take it (inplace.rs's notes). On VIctory-NVIDIA I tried putting it in place as committed sections in pieces: it locked about 1 GB of pool to save 0.2–0.7 GB of copies, because a piece is resident as a whole.

These were ruled out on this laptop:

  • Throttle floor: 900 MB instead of 1,500 lost a run at the world load and didn't make the world faster, since free RAM dips under 900 MB in the world too.
  • Descriptor heaps: only two host heaps exist (the 30 MB view heap and the samplers).
  • Dropped draws: 555 a frame are "shades ray-tracing hits without BVH, left out", by design without -RayTracing.

If the 32 MB group is allocator memory, keeping fewer allocators than lists, or releasing idle lists, could give a gigabyte or more back to the title on 16 GB. I can try that next unless you know a better source for it.

**@⁠nidscode** on GitHub · 2026-11-27 01:31 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207352979) ## Follow-up: where the RAM goes in the world on 16 GB (memory map, `VICTORY_MEMORY_MAP=6`) These are diag builds on `cc9ed86` with #96 and #100, through `-Machine laptop` (4.5 GB working-set ceiling). The memory map line ran every 30 s. This is its last sample, about 3 minutes in, in the world: | Kind | Committed | **In memory** | |---|---|---| | the title's heaps (private, console addresses) | 3,061 MB | **441 MB** | | views of the title's pages | 6,630 MB | **1,111 MB** | | the title's page pool | 3,977 MB | 0 MB | | process heap segments | 2,643 MB | 688 MB | | windows and other 4 MiB allocations | 308 MB | 172 MB | | write-combined (buffers shared with the card) | 6,209 MB | 1,576 MB | | other private allocations of 1 MB and more | 3,158 MB | 1,221 MB | | files and other mappings | 5,590 MB | 436 MB | 1. **The title itself gets about 1.55 GB of RAM.** Its heaps and page views hold 441 + 1,111 MB in memory, against about 3.5 GB for the layer and the driver (write-combined, other private, process heap). On 16 GB, every MB the layer gives back goes to the title. The world frame takes 1.3–1.8 s while the GPU's share is 20–200 ms, and the title pages its own memory back in at 35,000–175,000 pages a second. 2. **A group of plain read-write 32 MB allocations grows through the world load.** It goes from 1 to 24 (767 MB), then 42 (1,098 MB), then 55 (1,676 MB) over about 3 minutes. It isn't the layer's Rust allocator: the memory line's "our own blocks of 32 MB and more" lists only 251 MB (the title's audio), 82 MB and two of 50 MB. Over the same stretch, "host lists made by the host" goes from 688 to 1,366 and then levels off, about 12 new lists per 32 MB block. My guess is that it's command allocator memory in the driver (one allocator per host list, which keeps its peak size until destroyed), but I haven't proven it. 3. **Write-combined:** 107 allocations of 32 MB and 31 of 64 MB (5.1 GB committed, 1.6 GB in memory). 4. **Windows of view memory are copied, not placed.** `title memory in place` shows 92 MB of windows and 148 MB of buffers in place. 18,688 windows were "turned down: view memory or not private memory committed whole", and they make up the 1.9 GB of window copies. The page pool's section is `SEC_RESERVE`, so `OpenExistingHeapFromFileMapping` can't take it (`inplace.rs`'s notes). On VIctory-NVIDIA I tried putting it in place as committed sections in pieces: it locked about 1 GB of pool to save 0.2–0.7 GB of copies, because a piece is resident as a whole. These were ruled out on this laptop: - **Throttle floor:** 900 MB instead of 1,500 lost a run at the world load and didn't make the world faster, since free RAM dips under 900 MB in the world too. - **Descriptor heaps:** only two host heaps exist (the 30 MB view heap and the samplers). - **Dropped draws:** 555 a frame are "shades ray-tracing hits without BVH, left out", by design without `-RayTracing`. If the 32 MB group is allocator memory, keeping fewer allocators than lists, or releasing idle lists, could give a gigabyte or more back to the title on 16 GB. I can try that next unless you know a better source for it.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:33 UTC · original

@⁠nidscode Your memory map narrows this down. The existing memory, what holds it line reports live lists, list scratch and windows held by descriptors or lists. The other line reports cumulative list creations and private bytes measured while creating them. I’d compare both against the 32 MB bucket before treating the allocation size as proof of the driver path. On cc9ed86, an idle recycled list keeps its command allocator. -More @{VICTORY_LIST_POOL='0'} is an existing switch for a guarded comparison from the same checkpoint. It can increase creation time, so please keep your memory guard and compare the live counts, private growth while lists were made, and the 32 MB bucket over the same opening interval. A small D3D12-only run with allocation stacks would isolate it further if the game comparison points that way. D3D12 allocator reset semantics.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:33 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207386275) @⁠nidscode Your memory map narrows this down. The existing `memory, what holds it` line reports live lists, list scratch and windows held by descriptors or lists. The other line reports cumulative list creations and private bytes measured while creating them. I’d compare both against the 32 MB bucket before treating the allocation size as proof of the driver path. On `cc9ed86`, an idle recycled list keeps its command allocator. `-More @{VICTORY_LIST_POOL='0'}` is an existing switch for a guarded comparison from the same checkpoint. It can increase creation time, so please keep your memory guard and compare the live counts, private growth while lists were made, and the 32 MB bucket over the same opening interval. A small D3D12-only run with allocation stacks would isolate it further if the game comparison points that way. [D3D12 allocator reset semantics](https://learn.microsoft.com/windows/win32/api/d3d12/nf-d3d12-id3d12commandallocator-reset).
Author
Owner

@⁠nidscode on GitHub · 2026-11-27 01:42 UTC · original

Corrections to the comment above, after two more checks:

  • Command allocators aren't the 32 MB group. I made 256 allocator-and-list pairs on the RTX 3050 and recorded a little into each: private memory grew about 130 MB (about 0.5 MB a pair), all of it in smaller allocations, and no new 32 MB blocks. Those 0.5 MB still add up: the game's 1,366 host lists plus 868 preludes are about 1.1 GB.
  • shared_buffer is a custom heap with write-back CPU pages in system memory (protection 0x4). So the growing plain read-write 32 MB group is most likely the driver packing shared buffers into 32 MB chunks: window copies that don't fit on the card, and the 16 MB-rounded fetch buffers. That's the memory #96 throttles.
  • The write-combined "in memory" figure may include video memory: windows on the card through Resizable BAR are CPU-mapped write-combined pages, so the 64 MB write-combined group is likely VICTORY_WINDOWS_BAR_MB's, which is on the card, not in RAM.
  • VICTORY_LIST_POOL=0 didn't change the count (1,278 lists alive): the live host lists belong to the title's own lists.
**@⁠nidscode** on GitHub · 2026-11-27 01:42 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207515686) Corrections to the comment above, after two more checks: - **Command allocators aren't the 32 MB group.** I made 256 allocator-and-list pairs on the RTX 3050 and recorded a little into each: private memory grew about 130 MB (about 0.5 MB a pair), all of it in smaller allocations, and no new 32 MB blocks. Those 0.5 MB still add up: the game's 1,366 host lists plus 868 preludes are about 1.1 GB. - **`shared_buffer` is a custom heap with write-back CPU pages in system memory** (protection 0x4). So the growing plain read-write 32 MB group is most likely the driver packing shared buffers into 32 MB chunks: window copies that don't fit on the card, and the 16 MB-rounded fetch buffers. That's the memory #96 throttles. - **The write-combined "in memory" figure may include video memory:** windows on the card through Resizable BAR are CPU-mapped write-combined pages, so the 64 MB write-combined group is likely `VICTORY_WINDOWS_BAR_MB`'s, which is on the card, not in RAM. - **`VICTORY_LIST_POOL=0`** didn't change the count (1,278 lists alive): the live host lists belong to the title's own lists.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:43 UTC · original

@⁠nidscode Thanks for running the 256-pair control and the pool check. That rules out allocator creation as the source of the 32 MB group in your test. I confirmed that shared_buffer requests custom WRITE_BACK memory in pool L0 and both fetch paths round allocations to 16 MiB. The 32 MB bucket fits that explanation, though the memory-map protection alone cannot attribute each block. For a guarded #103 comparison, I’d pair the window-copy and held-window counters with DXGI local/non-local usage. That gives us a way to check whether the sweep reduces the shared-memory footprint even when the CPU mapping totals include BAR-backed pages. Shared buffer allocation.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:43 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7207524180) @⁠nidscode Thanks for running the 256-pair control and the pool check. That rules out allocator creation as the source of the 32 MB group in your test. I confirmed that `shared_buffer` requests custom `WRITE_BACK` memory in pool L0 and both fetch paths round allocations to 16 MiB. The 32 MB bucket fits that explanation, though the memory-map protection alone cannot attribute each block. For a guarded #103 comparison, I’d pair the window-copy and held-window counters with DXGI local/non-local usage. That gives us a way to check whether the sweep reduces the shared-memory footprint even when the CPU mapping totals include BAR-backed pages. [Shared buffer allocation](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/host.rs#L10221-L10233).
Author
Owner

@⁠nidscode on GitHub · 2026-11-27 05:51 UTC · original

Update: what holds the process heap, and a 16 GB setup that holds

I hooked the heap calls in the import tables of the NVIDIA driver, d3d12core and ucrtbase (local diagnostics). The process heap (3.5–3.7 GB committed) is the layer's own ~1.4 GB plus 1.07–1.31 GB live in the NVIDIA driver, which grows through the world. The driver's share halves with VICTORY_LIST_POOL=0: recycled host lists keep their command allocators at their peak.

#100 now sets it. On main + #100 alone, -Machine laptop with the watchdog on, both 240 s runs went through: about 180 s in the world, a 650 ms median frame (about 1.5 fps), and free RAM about 1 GB on average. Details in #100.

**@⁠nidscode** on GitHub · 2026-11-27 05:51 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7211004140) ## Update: what holds the process heap, and a 16 GB setup that holds I hooked the heap calls in the import tables of the NVIDIA driver, `d3d12core` and `ucrtbase` (local diagnostics). The process heap (3.5–3.7 GB committed) is the layer's own ~1.4 GB plus **1.07–1.31 GB live in the NVIDIA driver**, which grows through the world. The driver's share halves with `VICTORY_LIST_POOL=0`: recycled host lists keep their command allocators at their peak. #100 now sets it. On `main` + #100 alone, `-Machine laptop` with the watchdog on, both 240 s runs went through: about 180 s in the world, a 650 ms median frame (about 1.5 fps), and free RAM about 1 GB on average. Details in #100.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 05:53 UTC · original

@⁠nidscode The two 240-second runs with about 1 GB free in the world give us a memory-survival result for this 16 GB setup. The roughly 650 ms frames still put it at about 1.5 FPS.

On current main, -Machine laptop -More @{VICTORY_LIST_POOL='0'} selects that option explicitly. The launcher passes the override to the child process, and list.rs uses it to turn off host-list recycling. The detailed allocation comparison is in #100.

**@⁠TaynanGT** on GitHub · 2026-11-27 05:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/97#issuecomment-7211036740) @⁠nidscode The two 240-second runs with about 1 GB free in the world give us a memory-survival result for this 16 GB setup. The roughly 650 ms frames still put it at about 1.5 FPS. On current `main`, `-Machine laptop -More @{VICTORY_LIST_POOL='0'}` selects that option explicitly. The launcher passes the override to the child process, and `list.rs` uses it to turn off host-list recycling. The detailed allocation comparison is in #100.
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/TaynanGT--Vice-Tay#97
No description provided.