Memory grows through a session on 32 GB PCs and the frame rate halves; pull request #58 fixes it (measured) #191

Closed
opened 2026-11-27 19:29:16 +00:00 by JohnTitor2003 · 19 comments
JohnTitor2003 commented 2026-11-27 19:29:16 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JohnTitor2003 on 2026-11-27T19:29:16Z.


victory-nvidia-issue191-logs.zip

On a 32 GB PC the layer's memory climbs for as long as the game runs, and the frame rate falls with it. Pull request #58 stops it. I'm opening this so it is visible outside the pull request queue, since every release so far ships with the growth.

PC: RTX 5080 16 GB (driver 617.42), Ryzen 9 7950X, 32 GB RAM, Windows 11. Built from source at d12eb1b2. Series X profile, 2560x1440, DLSS Quality, frame generation off, launcher defaults.

Private bytes of victory.exe (typeperf, every 2 s):

Minutes in main (d12eb1b2) with the fix
4 27.5 GB 28.6 GB
8 27.9 GB 28.3 GB
12 28.8 GB 28.3 GB
16 30.8 GB 29.2 GB
20 35.1 GB 29.3 GB
  • On main the frame rate went from 28-29 fps to 19 at 16 minutes and 14 at 20, with Windows reading about 8,800 pages a second back from disk. A restart resets it and the climb starts again.
  • With the fix it stayed level for the whole run (17-19 fps in a heavier area) and free RAM rose instead of falling.
  • One run each, in different places, so the memory curves compare and the fps levels do not.

The fix is Vice-Tay's and project-flamingo's work, submitted here by regiumlepidi as #58 (placed views ignore the padding words; ownerless view entries are capped). I ran those commits plus the one #58 left out because of a conflict (18bc367, the shape index keyed by the shape's hash); the conflict is one hunk and the resolution is described in my comment on #58: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/58#issuecomment-7223674493

As far as I can see nothing on main since d12eb1b2 touches crates/victory-gpu/src/descriptor.rs, so the current release (v2026.11.27.3) still has the growth. On a 32 GB PC that is the difference between about 15 good minutes and a whole session.

Tested and written with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6653228016 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191). Originally posted by [JohnTitor2003](https://github.com/JohnTitor2003) on 2026-11-27T19:29:16Z. --- [victory-nvidia-issue191-logs.zip](https://github.com/user-attachments/files/35528327/victory-nvidia-issue191-logs.zip) On a 32 GB PC the layer's memory climbs for as long as the game runs, and the frame rate falls with it. Pull request #58 stops it. I'm opening this so it is visible outside the pull request queue, since every release so far ships with the growth. **PC:** RTX 5080 16 GB (driver 617.42), Ryzen 9 7950X, 32 GB RAM, Windows 11. Built from source at d12eb1b2. Series X profile, 2560x1440, DLSS Quality, frame generation off, launcher defaults. **Private bytes of victory.exe** (typeperf, every 2 s): | Minutes in | main (d12eb1b2) | with the fix | |---|---|---| | 4 | 27.5 GB | 28.6 GB | | 8 | 27.9 GB | 28.3 GB | | 12 | 28.8 GB | 28.3 GB | | 16 | 30.8 GB | 29.2 GB | | 20 | 35.1 GB | 29.3 GB | - On main the frame rate went from 28-29 fps to 19 at 16 minutes and 14 at 20, with Windows reading about 8,800 pages a second back from disk. A restart resets it and the climb starts again. - With the fix it stayed level for the whole run (17-19 fps in a heavier area) and free RAM rose instead of falling. - One run each, in different places, so the memory curves compare and the fps levels do not. **The fix** is Vice-Tay's and project-flamingo's work, submitted here by regiumlepidi as #58 (placed views ignore the padding words; ownerless view entries are capped). I ran those commits plus the one #58 left out because of a conflict (18bc367, the shape index keyed by the shape's hash); the conflict is one hunk and the resolution is described in my comment on #58: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/58#issuecomment-7223674493 As far as I can see nothing on main since d12eb1b2 touches `crates/victory-gpu/src/descriptor.rs`, so the current release (v2026.11.27.3) still has the growth. On a 32 GB PC that is the difference between about 15 good minutes and a whole session. Tested and written with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
SwitchD3v commented 2026-11-27 19:45:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SwitchD3v on 2026-11-27T19:45:14Z.


Same growth here on another 32 GB PC, with a memory map from the diagnostics build. It suggests the growth has a second part besides the view table that #58 fixes.

PC: RTX 3080 Ti 12 GB (driver 621.14), Ryzen 7 5800X, 32 GB RAM + 32 GB pagefile, Windows 11 26200. Built from source at 0cef07e, diag profile for this run (the release build grows the same way). Series X, 2560x1440, DLSS Quality, no frame generation, launcher defaults.

Growth: private bytes 21.2 -> 26.7 GB over 7.6 min of play (0.73 GB/min) in this run. In an earlier ~50 min release run it went from 25 to 39 GB: the PC's commit charge reached 61-62 of 64 GB and frames fell to 6-8 fps from about 20 while Windows paged. Turning DLSS off didn't change the climb. It stops while the title's pause menu is open.

Memory map, first vs last of the run (copystat: memory map, committed MB with resident MB in brackets):

Kind First Last Grew
write-combined (buffers shared with the card) 1710 (722) 11486 (1874) +9776
other private allocations of 1 MB and more 2268 (2134) 6434 (4935) +4166
windows of title memory and other 4 MiB allocations 19 (7) 2663 (2128) +2644
views of the title's pages 2715 (384) 3964 (2061) +1249
process heap segments 409 (396) 1514 (1143) +1105
the title's heaps + page pool 10856 10973 +117

Biggest groups at the start: 9 x 64 MB write-combined and 14 x 32 MB write-combined. At the end:

  • 86 x 64 MB write-combined (5463 MB)
  • 115 x 32 MB write-combined (3330 MB)
  • 4 x 1024 MB (3096 MB)
  • 39 x 32 MB (1222 MB)

So most of the growth here is 64 MB and 32 MB write-combined buffers: 11.5 GB committed, only 1.9 GB of it resident. They look kept rather than used.

The ~4 GB in "other private allocations of 1 MB and more" may be the view table that #58 caps. The write-combined part seems separate. FlaMeCr0Wn/opti-vicity 93fe207 ("Idle spare send buffers go after 30 s", VICTORY_SEND_IDLE_S) releases idle spare send buffers, but it keeps up to 768 MiB of them, and the growth here is ~10 GB. So something else holds these buffers, or idle buffers aren't being released at all.

Minor: after closing the window, the diag build's process didn't exit within 60 s and had to be ended.

I have the play log (38 memory-map lines over the run), a CSV every 5 s of fps, draws, private/commit memory, CPU/GPU/VRAM, and the system details. Happy to share any of them, or to run a build with #58 (and/or a send-buffer cap) for a before/after. No crashes, no game files.

Tested and written with an AI assistant (Claude Code); the runs were on my machine.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7226837457 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7226837457). Originally posted by [SwitchD3v](https://github.com/SwitchD3v) on 2026-11-27T19:45:14Z. --- Same growth here on another 32 GB PC, with a memory map from the diagnostics build. It suggests the growth has a second part besides the view table that #58 fixes. **PC:** RTX 3080 Ti 12 GB (driver 621.14), Ryzen 7 5800X, 32 GB RAM + 32 GB pagefile, Windows 11 26200. Built from source at 0cef07e, diag profile for this run (the release build grows the same way). Series X, 2560x1440, DLSS Quality, no frame generation, launcher defaults. **Growth:** private bytes 21.2 -> 26.7 GB over 7.6 min of play (0.73 GB/min) in this run. In an earlier ~50 min release run it went from 25 to 39 GB: the PC's commit charge reached 61-62 of 64 GB and frames fell to 6-8 fps from about 20 while Windows paged. Turning DLSS off didn't change the climb. It stops while the title's pause menu is open. **Memory map, first vs last of the run (`copystat: memory map`, committed MB with resident MB in brackets):** | Kind | First | Last | Grew | |---|---:|---:|---:| | write-combined (buffers shared with the card) | 1710 (722) | 11486 (1874) | **+9776** | | other private allocations of 1 MB and more | 2268 (2134) | 6434 (4935) | +4166 | | windows of title memory and other 4 MiB allocations | 19 (7) | 2663 (2128) | +2644 | | views of the title's pages | 2715 (384) | 3964 (2061) | +1249 | | process heap segments | 409 (396) | 1514 (1143) | +1105 | | the title's heaps + page pool | 10856 | 10973 | +117 | Biggest groups at the start: 9 x 64 MB write-combined and 14 x 32 MB write-combined. At the end: - 86 x 64 MB write-combined (5463 MB) - 115 x 32 MB write-combined (3330 MB) - 4 x 1024 MB (3096 MB) - 39 x 32 MB (1222 MB) So most of the growth here is **64 MB and 32 MB write-combined buffers**: 11.5 GB committed, only 1.9 GB of it resident. They look kept rather than used. The ~4 GB in "other private allocations of 1 MB and more" may be the view table that #58 caps. The write-combined part seems separate. FlaMeCr0Wn/opti-vicity 93fe207 ("Idle spare send buffers go after 30 s", `VICTORY_SEND_IDLE_S`) releases idle spare send buffers, but it keeps up to 768 MiB of them, and the growth here is ~10 GB. So something else holds these buffers, or idle buffers aren't being released at all. Minor: after closing the window, the diag build's process didn't exit within 60 s and had to be ended. I have the play log (38 memory-map lines over the run), a CSV every 5 s of fps, draws, private/commit memory, CPU/GPU/VRAM, and the system details. Happy to share any of them, or to run a build with #58 (and/or a send-buffer cap) for a before/after. No crashes, no game files. Tested and written with an AI assistant (Claude Code); the runs were on my machine.
KaV3R commented 2026-11-27 19:46:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by KaV3R on 2026-11-27T19:46:20Z.


Same slowdown here on a PC with plenty of RAM, so paging isn't the whole story. The layer's own timings show where the time goes.

PC: RTX 4070 SUPER 12 GB (driver 621.35), Ryzen 9 9950X3D, 62 GB RAM, Windows 11 26300. Release build at 29d8dbf, Series X, 2560x1440, DLSS Quality, frame generation 2x, launcher defaults.

Frame rate (rendered): 15-17 fps for the first ~20 min, then 11-12, and 7-9 after ~50 min, at similar draw counts (5-7k a frame). Three runs this way, with and without frame generation. A fresh start is back at 15-19.

What grows (frame-rate lines, 19:05 vs 19:40 in the same run):

Per frame 19:05 19:40
Preparing: "putting the title's bytes under flights' writes" (VICTORY_LATE_WAIT=2) 7.2 ms 76.4 ms
Relay: "landing in all" (the frame line's "copying back") 14.7 ms 100 ms
Landing: "waiting for the title's bytes going in" 2-3 ms 94-137 ms
Landing: "which pieces to fetch" 0.7 ms 20-32 ms
Landing: "merging what was fetched" ~3 ms 36-50 ms
Changed runs under flights' writes ~100k 116-170k

The landing threads wait on the shadow's merging lock (land_card / land_back in shadow.rs) while merge_under_writes holds it for writing. Both costs grow over the session, while the amount of work (pieces landed, pages, MB) only grows ~1.3x. It looks like a structure that one of these walks gets longer over time, rather than more work per frame. I couldn't pin down which one by reading the code.

VRAM: the texture queue stays at its line (~8.7 of 8.5 GB with frame generation's reserve).

Next here: a run with VICTORY_LATE_WAIT=1, to see whether the slowdown goes away without the exact merge under writes. I'll post the result. Happy to run #58 too, or a build with extra counters.

AI-assisted (Claude Code): the analysis and this text. The runs were on my machine; no game files.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7226855446 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7226855446). Originally posted by [KaV3R](https://github.com/KaV3R) on 2026-11-27T19:46:20Z. --- Same slowdown here on a PC with plenty of RAM, so paging isn't the whole story. The layer's own timings show where the time goes. **PC:** RTX 4070 SUPER 12 GB (driver 621.35), Ryzen 9 9950X3D, 62 GB RAM, Windows 11 26300. Release build at 29d8dbf, Series X, 2560x1440, DLSS Quality, frame generation 2x, launcher defaults. **Frame rate (rendered):** 15-17 fps for the first ~20 min, then 11-12, and 7-9 after ~50 min, at similar draw counts (5-7k a frame). Three runs this way, with and without frame generation. A fresh start is back at 15-19. **What grows** (frame-rate lines, 19:05 vs 19:40 in the same run): | Per frame | 19:05 | 19:40 | |---|---:|---:| | Preparing: "putting the title's bytes under flights' writes" (`VICTORY_LATE_WAIT=2`) | 7.2 ms | 76.4 ms | | Relay: "landing in all" (the frame line's "copying back") | 14.7 ms | 100 ms | | Landing: "waiting for the title's bytes going in" | 2-3 ms | 94-137 ms | | Landing: "which pieces to fetch" | 0.7 ms | 20-32 ms | | Landing: "merging what was fetched" | ~3 ms | 36-50 ms | | Changed runs under flights' writes | ~100k | 116-170k | The landing threads wait on the shadow's `merging` lock (`land_card` / `land_back` in shadow.rs) while `merge_under_writes` holds it for writing. Both costs grow over the session, while the amount of work (pieces landed, pages, MB) only grows ~1.3x. It looks like a structure that one of these walks gets longer over time, rather than more work per frame. I couldn't pin down which one by reading the code. VRAM: the texture queue stays at its line (~8.7 of 8.5 GB with frame generation's reserve). **Next here:** a run with `VICTORY_LATE_WAIT=1`, to see whether the slowdown goes away without the exact merge under writes. I'll post the result. Happy to run #58 too, or a build with extra counters. AI-assisted (Claude Code): the analysis and this text. The runs were on my machine; no game files.
gilshahar7 commented 2026-11-27 20:05:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by gilshahar7 on 2026-11-27T20:05:19Z.


Can confirm, also getting a slowdown after ~20 mins in the game
32gb ram

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7227162498 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7227162498). Originally posted by [gilshahar7](https://github.com/gilshahar7) on 2026-11-27T20:05:19Z. --- Can confirm, also getting a slowdown after ~20 mins in the game 32gb ram
StebanSchrader commented 2026-11-27 20:37:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-27T20:37:17Z.


A data point from a 16 GB laptop, where the growth ends the run within minutes instead of slowing it down. Here the limit is the memory Windows lets the card use in the PC's RAM, not the commit charge.

PC: RTX 4070 Laptop 8 GB (driver 32.0.16.1091), Ryzen 7 7840HS, 16 GB RAM (2 x 8 GB, not upgradable for me), Windows 11 26200. VIctory-NVIDIA d12eb1b with #58 applied locally (it applies cleanly, the descriptor tests pass). PLAY_FRAMEGEN.cmd 3: Series S, DLSS Quality, frame generation 2x, launcher defaults. Release build for most runs, diag profile for the memory maps.

What happens: every run so far ended after 2 to 8 minutes of play with 0x8007000E (E_OUTOFMEMORY): first thousands of no upload buffer / no shared buffer / no read-back buffer warnings (76,639 in the last run), then a host command list did not close or a device removal. At start the layer reports both budgets at 7180 MB: the card's own and the PC memory shared with the card (half of the RAM). RAM itself was not exhausted: physical_free_mib about 3,000 and available_commit_mib over 20,000 at the time.

Memory map (diag, copystat), start of play -> crash, about 7 minutes:

Kind Start Crash
write-combined (buffers shared with the card) 1923 MB 7841 MB
windows of title memory and other 4 MiB allocations 28 MB 3923 MB
other private allocations of 1 MB and more 1840 MB 5756 MB
  • Most of the write-combined growth is one jump at world entry: 1923 -> 6814 MB in about 40 s, then +1 GB over the next 6 minutes.
  • Size groups at the crash: 57 x 64 MB write-combined (3572 MB) and 90 x 32 MB write-combined (2682 MB), against 13 x 64 MB and 20 x 32 MB at the start. The same pattern SwitchD3v posted above.
  • Windows outside buffers at the crash: 1120 shown by descriptor slots (4688 MB), 1155 held by lists or the heap pass. The sweep let go 95 windows in the whole run (and 1151 texture copies).
  • Host lists alive: 671 -> 1513.

On the card side: the texture queue's line (80 % of the budget) does not hold the card's use: it went to 7.1 GB of a 7.0 GB budget (no room, new textures wait), and the card copies of title buffers went from 850 MB to about 105 MB, so more buffer copies end up in shared memory. Neither VICTORY_TEXTURE_ROOM_PERCENT=70 nor VICTORY_LEVELS_ON_DEMAND=1 changed that (the second also garbled textures on faces).

VICTORY_INPLACE=1: only 87 windows (412 MB) could be opened in place; 1853 were turned down as view memory (the page pool). The run still ran out after about 6 minutes, with the same memory map.

So on 16 GB the shared-memory segment (about 8 GB) is the wall, and the 64/32 MB write-combined buffers plus the window copies fill it with frame generation on. A cap or reuse of those write-combined buffers, or keeping more of the buffer copies on the card, looks like what would make 16 GB PCs playable. Happy to run a build with a cap and post the before/after with the same memory map.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7227681634 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7227681634). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-27T20:37:17Z. --- A data point from a 16 GB laptop, where the growth ends the run within minutes instead of slowing it down. Here the limit is the memory Windows lets the card use in the PC's RAM, not the commit charge. **PC:** RTX 4070 Laptop 8 GB (driver 32.0.16.1091), Ryzen 7 7840HS, 16 GB RAM (2 x 8 GB, not upgradable for me), Windows 11 26200. VIctory-NVIDIA `d12eb1b` with #58 applied locally (it applies cleanly, the descriptor tests pass). `PLAY_FRAMEGEN.cmd 3`: Series S, DLSS Quality, frame generation 2x, launcher defaults. Release build for most runs, diag profile for the memory maps. **What happens:** every run so far ended after 2 to 8 minutes of play with `0x8007000E` (E_OUTOFMEMORY): first thousands of `no upload buffer` / `no shared buffer` / `no read-back buffer` warnings (76,639 in the last run), then `a host command list did not close` or a device removal. At start the layer reports both budgets at 7180 MB: the card's own and the PC memory shared with the card (half of the RAM). RAM itself was not exhausted: `physical_free_mib` about 3,000 and `available_commit_mib` over 20,000 at the time. **Memory map (diag, `copystat`), start of play -> crash, about 7 minutes:** | Kind | Start | Crash | |---|---:|---:| | write-combined (buffers shared with the card) | 1923 MB | 7841 MB | | windows of title memory and other 4 MiB allocations | 28 MB | 3923 MB | | other private allocations of 1 MB and more | 1840 MB | 5756 MB | - Most of the write-combined growth is one jump at world entry: 1923 -> 6814 MB in about 40 s, then +1 GB over the next 6 minutes. - Size groups at the crash: 57 x 64 MB write-combined (3572 MB) and 90 x 32 MB write-combined (2682 MB), against 13 x 64 MB and 20 x 32 MB at the start. The same pattern SwitchD3v posted above. - Windows outside buffers at the crash: 1120 shown by descriptor slots (4688 MB), 1155 held by lists or the heap pass. The sweep let go 95 windows in the whole run (and 1151 texture copies). - Host lists alive: 671 -> 1513. **On the card side:** the texture queue's line (80 % of the budget) does not hold the card's use: it went to 7.1 GB of a 7.0 GB budget (`no room, new textures wait`), and the card copies of title buffers went from 850 MB to about 105 MB, so more buffer copies end up in shared memory. Neither `VICTORY_TEXTURE_ROOM_PERCENT=70` nor `VICTORY_LEVELS_ON_DEMAND=1` changed that (the second also garbled textures on faces). **`VICTORY_INPLACE=1`:** only 87 windows (412 MB) could be opened in place; 1853 were turned down as view memory (the page pool). The run still ran out after about 6 minutes, with the same memory map. So on 16 GB the shared-memory segment (about 8 GB) is the wall, and the 64/32 MB write-combined buffers plus the window copies fill it with frame generation on. A cap or reuse of those write-combined buffers, or keeping more of the buffer copies on the card, looks like what would make 16 GB PCs playable. Happy to run a build with a cap and post the before/after with the same memory map. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
trustno1-coder commented 2026-11-27 20:59:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-27T20:59:22Z.


Thanks for the report. v2026.11.27.6 is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6). Since this was posted, releases from v2026.11.27.4 on include:

  • a fix for memory that kept growing through a session (PR #58), behind late-session slowdowns, full RAM/VRAM and coloured blocks;
  • a fix for very long frames when the low memory range filled up (PR #88).

If you have time, please try .6 and post new numbers or a new log here. It helps to see what changed on your PC.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7228028274 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7228028274). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-27T20:59:22Z. --- Thanks for the report. **v2026.11.27.6** is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6). Since this was posted, releases from v2026.11.27.4 on include: - a fix for memory that kept growing through a session (PR #58), behind late-session slowdowns, full RAM/VRAM and coloured blocks; - a fix for very long frames when the low memory range filled up (PR #88). If you have time, please try .6 and post new numbers or a new log here. It helps to see what changed on your PC.
BlackBookOfficial commented 2026-11-27 21:20:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BlackBookOfficial on 2026-11-27T21:20:12Z.


Just to clarify: these diagnostic results are already from v2026.11.27.6, the version you recommended.

The excessive memory growth is still present with the latest fixes, including PR #58 and PR #88.

During a 6.5-minute diagnostic run:

  • Process private: 10,615 MB → 35,970 MB (+25.4 GB)
  • Working set: 12,880 MB → 27,812 MB
  • Host textures: 873 MB → 12,775 MB
  • Texture-pool blocks: 1,216 MB → 10,944 MB
  • Host copies of title memory: 174 MB → 3,980 MB

A subsequent run reached 38.9 GB private memory and was still increasing when I stopped it.

PR #58 appears to have successfully addressed descriptor retention, with the view table now measuring approximately 18 MB. However, the remaining memory growth is dominated by host texture allocations, shadow copies, staging buffers, and potentially retained guest-section commitments.

The diagnostics also identified approximately 5.15 GB of host texture copies whose title memory was no longer mapped and which had no visible descriptor reference.

An experimental reclamation sweep stabilized private memory around 32 GB, but introduced a performance regression and was reverted.

The issue is therefore still reproducible on v2026.11.27.6 and appears separate from the descriptor leak and ray-tracing arena issue.

I'd appreciate keeping this remaining host-memory retention problem tracked, as it continues to make longer gameplay sessions unstable on a 64 GB RAM system.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7228351715 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7228351715). Originally posted by [BlackBookOfficial](https://github.com/BlackBookOfficial) on 2026-11-27T21:20:12Z. --- Just to clarify: **these diagnostic results are already from v2026.11.27.6, the version you recommended.** The excessive memory growth is still present with the latest fixes, including PR #58 and PR #88. During a 6.5-minute diagnostic run: - Process private: **10,615 MB → 35,970 MB (+25.4 GB)** - Working set: 12,880 MB → 27,812 MB - Host textures: 873 MB → 12,775 MB - Texture-pool blocks: 1,216 MB → 10,944 MB - Host copies of title memory: 174 MB → 3,980 MB A subsequent run reached **38.9 GB private memory and was still increasing** when I stopped it. PR #58 appears to have successfully addressed descriptor retention, with the view table now measuring approximately 18 MB. However, the remaining memory growth is dominated by host texture allocations, shadow copies, staging buffers, and potentially retained guest-section commitments. The diagnostics also identified approximately **5.15 GB of host texture copies whose title memory was no longer mapped and which had no visible descriptor reference**. An experimental reclamation sweep stabilized private memory around 32 GB, but introduced a performance regression and was reverted. **The issue is therefore still reproducible on v2026.11.27.6 and appears separate from the descriptor leak and ray-tracing arena issue.** I'd appreciate keeping this remaining host-memory retention problem tracked, as it continues to make longer gameplay sessions unstable on a 64 GB RAM system.
StebanSchrader commented 2026-11-27 22:52:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-27T22:52:42Z.


Tried it as asked: main at df2daaf (v2026.11.27.6 plus the launch fixes after it), diag profile, same PC (RTX 4070 Laptop 8 GB, Ryzen 7 7840HS, 16 GB RAM), same PLAY_FRAMEGEN.cmd 3 (Series S, DLSS Quality, frame generation 2x), launcher defaults.

Result: same end, about 6.5 minutes after world entry (9 minutes after start): a host command list did not close (0x8007000E). One difference: no no upload buffer / no shared buffer warnings this time (76,639 in the last run on d12eb1b), it went straight to the list that did not close. At that moment the PC memory shared with the card was at 7151 of 7180 MB, the card at 6507 of 7114 MB, and the PC had 290 MB free.

Memory map (diag, copystat), before world entry -> last map before the crash:

Kind Before Crash Last run (d12eb1b + #58)
write-combined (buffers shared with the card) 1577 MB 7861 MB 7841 MB
windows of title memory and other 4 MiB allocations 35 MB 3467 MB 3923 MB
other private allocations of 1 MB and more 1808 MB 5911 MB 5756 MB
  • The write-combined jump is still one step at world entry: 1577 -> 7406 MB in about 34 s, then slowly up to 7861 MB.
  • Size groups at the crash: 56 x 64 MB write-combined (3573 MB) and 96 x 32 MB write-combined (2815 MB), the same as before (57 and 90).
  • Windows outside buffers alive: 1060 (4452 MB); 1045 shown by descriptor slots, 1055 held by lists or the heap pass. 2015 were let go during the run (9412 MB), so they are recycled, but the live set stays at about 4.4 GB.
  • Host lists alive: 1548 (1513 last run). Made so far: 19542 upload buffers (16868 MB) and 34630 shared buffers (16166 MB).
  • Host copies of placed textures whose title memory is no longer mapped: only about 35 MB here, so the large orphan texture copies reported above on 64 GB do not show up on this PC within the time it lasts. Here it is the write-combined buffers and the windows that fill the shared segment.

So v2026.11.27.6 does not change the picture on 16 GB: the shared-memory segment (half the RAM) fills with the 64/32 MB write-combined buffers plus the window copies, with frame generation on. Happy to run a build with a cap on those buffers and post the same map.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7229690970 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7229690970). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-27T22:52:42Z. --- Tried it as asked: main at `df2daaf` (v2026.11.27.6 plus the launch fixes after it), diag profile, same PC (RTX 4070 Laptop 8 GB, Ryzen 7 7840HS, 16 GB RAM), same `PLAY_FRAMEGEN.cmd 3` (Series S, DLSS Quality, frame generation 2x), launcher defaults. **Result:** same end, about 6.5 minutes after world entry (9 minutes after start): `a host command list did not close (0x8007000E)`. One difference: no `no upload buffer` / `no shared buffer` warnings this time (76,639 in the last run on `d12eb1b`), it went straight to the list that did not close. At that moment the PC memory shared with the card was at 7151 of 7180 MB, the card at 6507 of 7114 MB, and the PC had 290 MB free. **Memory map (diag, `copystat`), before world entry -> last map before the crash:** | Kind | Before | Crash | Last run (`d12eb1b` + #58) | |---|---:|---:|---:| | write-combined (buffers shared with the card) | 1577 MB | 7861 MB | 7841 MB | | windows of title memory and other 4 MiB allocations | 35 MB | 3467 MB | 3923 MB | | other private allocations of 1 MB and more | 1808 MB | 5911 MB | 5756 MB | - The write-combined jump is still one step at world entry: 1577 -> 7406 MB in about 34 s, then slowly up to 7861 MB. - Size groups at the crash: 56 x 64 MB write-combined (3573 MB) and 96 x 32 MB write-combined (2815 MB), the same as before (57 and 90). - Windows outside buffers alive: 1060 (4452 MB); 1045 shown by descriptor slots, 1055 held by lists or the heap pass. 2015 were let go during the run (9412 MB), so they are recycled, but the live set stays at about 4.4 GB. - Host lists alive: 1548 (1513 last run). Made so far: 19542 upload buffers (16868 MB) and 34630 shared buffers (16166 MB). - Host copies of placed textures whose title memory is no longer mapped: only about 35 MB here, so the large orphan texture copies reported above on 64 GB do not show up on this PC within the time it lasts. Here it is the write-combined buffers and the windows that fill the shared segment. So v2026.11.27.6 does not change the picture on 16 GB: the shared-memory segment (half the RAM) fills with the 64/32 MB write-combined buffers plus the window copies, with frame generation on. Happy to run a build with a cap on those buffers and post the same map. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
trustno1-coder commented 2026-11-28 00:42:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T00:42:51Z.


Thanks both, that's very useful. v2026.11.27.8 has another fix aimed at this: textures the game let go of are no longer checked every frame, and that check grew with the session. When you have time, please measure again on .8. The numbers in your format are ideal. I'm keeping this open until long sessions stay flat.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231135922 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7231135922). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T00:42:51Z. --- Thanks both, that's very useful. v2026.11.27.8 has another fix aimed at this: textures the game let go of are no longer checked every frame, and that check grew with the session. When you have time, please measure again on .8. The numbers in your format are ideal. I'm keeping this open until long sessions stay flat.
StebanSchrader commented 2026-11-28 01:14:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-28T01:14:44Z.


Measured again on a4d05e7 (v2026.11.27.9, so .8 included), diag profile, same PC (RTX 4070 Laptop 8 GB, Ryzen 7 7840HS, 16 GB RAM), same PLAY_FRAMEGEN.cmd 3 (Series S, DLSS Quality, frame generation 2x).

One difference from what you asked: this run also had three memory switches on, to try them on 16 GB at the same time: VICTORY_WINDOW_KB=1024 and VICTORY_WINDOW_TAILS=1 (what #321 sets on 16 GB PCs) and VICTORY_ALLOCATOR_TRIM=1. So it is not a plain .8 run.

Result: a host command list did not close (0x8007000E) after 7.6 minutes, about 5.5 minutes after world entry (9.3 and 6.5 on .6 without the switches). At the end the PC memory shared with the card was at 7288 of 7180 MB, the card at 5799 of 7021 MB, the PC had 279 MB free.

Memory map (diag, copystat):

Before world entry Last map before the crash .6, no switches, at the crash
write-combined (buffers shared with the card) 1879 MB 7190 MB 7861 MB
windows outside buffers alive (copystat: memory) 4575 MB (3145 windows) 4452 MB (1060 windows)
of them asked for without a length 1802 MB 3220 MB
host lists alive 1460 1548
host copies of title memory 5517 MB 5268 MB
  • The write-combined jump is the same step at world entry: 1879 -> 7206 MB in about 36 s. Size groups at the end: 49 x 64 MB and 96 x 32 MB write-combined.
  • The 1 MiB grid did what #321 says for the windows asked without a length (3220 -> 1802 MB), but the windows alive stayed at about 4.5 GB in all, in three times as many windows.
  • With VICTORY_ALLOCATOR_TRIM=1 the host lists alive went from 1548 to 1460, and the write-combined total did not move much.

So on this PC neither .8's fix nor these three switches keep the shared segment (half of 16 GB) from filling: the write-combined 64/32 MB buffers that appear at world entry take about 7 GB of it on their own. I can run a plain .8/.9 run without the switches if that is more useful to you.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231526647 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7231526647). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-28T01:14:44Z. --- Measured again on `a4d05e7` (v2026.11.27.9, so .8 included), diag profile, same PC (RTX 4070 Laptop 8 GB, Ryzen 7 7840HS, 16 GB RAM), same `PLAY_FRAMEGEN.cmd 3` (Series S, DLSS Quality, frame generation 2x). One difference from what you asked: this run also had three memory switches on, to try them on 16 GB at the same time: `VICTORY_WINDOW_KB=1024` and `VICTORY_WINDOW_TAILS=1` (what #321 sets on 16 GB PCs) and `VICTORY_ALLOCATOR_TRIM=1`. So it is not a plain .8 run. **Result:** `a host command list did not close (0x8007000E)` after 7.6 minutes, about 5.5 minutes after world entry (9.3 and 6.5 on .6 without the switches). At the end the PC memory shared with the card was at 7288 of 7180 MB, the card at 5799 of 7021 MB, the PC had 279 MB free. **Memory map (diag, `copystat`):** | | Before world entry | Last map before the crash | .6, no switches, at the crash | |---|---:|---:|---:| | write-combined (buffers shared with the card) | 1879 MB | 7190 MB | 7861 MB | | windows outside buffers alive (`copystat: memory`) | | 4575 MB (3145 windows) | 4452 MB (1060 windows) | | of them asked for without a length | | 1802 MB | 3220 MB | | host lists alive | | 1460 | 1548 | | host copies of title memory | | 5517 MB | 5268 MB | - The write-combined jump is the same step at world entry: 1879 -> 7206 MB in about 36 s. Size groups at the end: 49 x 64 MB and 96 x 32 MB write-combined. - The 1 MiB grid did what #321 says for the windows asked without a length (3220 -> 1802 MB), but the windows alive stayed at about 4.5 GB in all, in three times as many windows. - With `VICTORY_ALLOCATOR_TRIM=1` the host lists alive went from 1548 to 1460, and the write-combined total did not move much. So on this PC neither .8's fix nor these three switches keep the shared segment (half of 16 GB) from filling: the write-combined 64/32 MB buffers that appear at world entry take about 7 GB of it on their own. I can run a plain .8/.9 run without the switches if that is more useful to you. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
StebanSchrader commented 2026-11-28 01:40:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-28T01:40:38Z.


A correction to my two reports above, with a better count. I said the 64/32 MB write-combined buffers fill the shared segment as if they were their own kind of buffer. They are not: they are how the driver groups our buffers. I added a local diagnostics-only count (not in this repo) to upload_buffer, shared_buffer_now and read_back_buffer in host.rs: each buffer is counted by the line that asked for it (#[track_caller]) until it is released (an object in its private data). Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM), a4d05e7 (v2026.11.27.9), mode 3, no extra switches.

Last count before the crash (0x8007000E, 8 minutes after start; PC memory shared with the card at 7203 of 7180 MB):

Kind / line that asked Alive MB
shared buffers, all 6994 5889
- shadow.rs:5779 (windows of title memory) 1145 4816
- shadow.rs:5455 (lookup) 187 696
- ahead.rs:155 4425 277
upload buffers, all 284 740
- send.rs:152 12 408 (biggest 512 MB)
- host.rs:2312 261 189
- pool.rs:396 (texture staging blocks) 2 128
read-back buffers 4 0

Windows (shadow.rs:5779) over the run:

  • 16 MB before world entry;
  • 3264 MB (782 windows) about 45 s after it;
  • flat at 3.4-3.5 GB (about 830 windows) for 5 minutes;
  • then 4724 MB (1118) in under a minute, and the crash.

So it is not a slow leak here. The windows' working set alone is about half of the 7.2 GB segment, and the next step up does not fit. On this card window_card_most is 0 (budget 7180 MB, under 8 GiB), and the card was at 6.3 of 7.0 GB anyway. What would help 16 GB PCs is fewer bytes per window in shared memory, or windows over title memory without a copy (VICTORY_INPLACE refused the 1,853 that lie in the page pool's views last time).

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231839377 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7231839377). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-28T01:40:38Z. --- A correction to my two reports above, with a better count. I said the 64/32 MB write-combined buffers fill the shared segment as if they were their own kind of buffer. They are not: they are how the driver groups our buffers. I added a local diagnostics-only count (not in this repo) to `upload_buffer`, `shared_buffer_now` and `read_back_buffer` in `host.rs`: each buffer is counted by the line that asked for it (`#[track_caller]`) until it is released (an object in its private data). Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM), `a4d05e7` (v2026.11.27.9), mode 3, no extra switches. **Last count before the crash** (`0x8007000E`, 8 minutes after start; PC memory shared with the card at 7203 of 7180 MB): | Kind / line that asked | Alive | MB | |---|---:|---:| | shared buffers, all | 6994 | 5889 | | - `shadow.rs:5779` (windows of title memory) | 1145 | 4816 | | - `shadow.rs:5455` (`lookup`) | 187 | 696 | | - `ahead.rs:155` | 4425 | 277 | | upload buffers, all | 284 | 740 | | - `send.rs:152` | 12 | 408 (biggest 512 MB) | | - `host.rs:2312` | 261 | 189 | | - `pool.rs:396` (texture staging blocks) | 2 | 128 | | read-back buffers | 4 | 0 | **Windows (`shadow.rs:5779`) over the run:** - 16 MB before world entry; - 3264 MB (782 windows) about 45 s after it; - flat at 3.4-3.5 GB (about 830 windows) for 5 minutes; - then 4724 MB (1118) in under a minute, and the crash. So it is not a slow leak here. The windows' working set alone is about half of the 7.2 GB segment, and the next step up does not fit. On this card `window_card_most` is 0 (budget 7180 MB, under 8 GiB), and the card was at 6.3 of 7.0 GB anyway. What would help 16 GB PCs is fewer bytes per window in shared memory, or windows over title memory without a copy (`VICTORY_INPLACE` refused the 1,853 that lie in the page pool's views last time). Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
JohnTitor2003 commented 2026-11-28 01:43:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JohnTitor2003 on 2026-11-28T01:43:40Z.


Measured on .8 as asked, on the 32 GB PC from the first post. Short version: no growth like before and no slowdown in 32 minutes uncapped; a slow creep is still visible in a 50-minute capped session.

Setup: v2026.11.27.8 built from source at 64d4931, unmodified. RTX 5080 16 GB (driver 617.42), Ryzen 9 7950X, 32 GB RAM, Windows 11. Series S profile, 2560x1440, DLSS Performance (VICTORY_DLSS_PRESET=m), water light off, started through scripts\play-nvidia.ps1. Open-world free roam on foot and by car. Private bytes from typeperf every 2 s; frame figures from the log's frame lines (rendered frames).

Run A: no frame cap, 32 minutes (frame generation switched between off, 2x, 3x and 6x in F1 during the run)

Rendered fps (median) at equal scene load:

Draws a frame 0-10 min 10-20 min 20-30 min
5,000-7,000 23.2 23.4 25.1
7,000-9,000 20.7 21.2 21.1

"Preparing" stayed at 29-32 ms a frame throughout. 311 frame lines in the world, median 21.7 fps, 3 under 12.

Minutes in Private bytes Working set Available RAM
5 22.4 GB 22.4 GB 0.9 GB
15 22.8 GB 19.4 GB 2.1 GB
25 23.3 GB 17.7 GB 1.0 GB
32 23.5 GB 17.3 GB 3.4 GB
  • Driving into new areas adds 0.6-1 GB for about a minute (peaks 24.6 and 24.1 GB, with 6.1 and 3.4 GB of textures uploaded in those minutes, "preparing" up to 36 ms) and it comes back to 23.5 GB both times.
  • Page file use stayed at 0.3 GB; nothing was being written to disk.

Run B: 15 fps cap (VICTORY_FRAME_INTERVAL_US=66667), frame generation 3x, 50 minutes

Minutes in Private bytes
3 21.0 GB
15 21.5 GB
27 23.1 GB
39 23.9 GB
45 25.0 GB (peak)
50 24.2 GB

The cap held in 97% of the frame lines, so the frame rate cannot show a drag here, but the per-frame work can. At 6,000-8,000 draws, by ten-minute block: "preparing" 28.1, 29.6, 36.7, 37.4, 33.8 ms; "copying back" 4.2, 4.3, 6.2, 7.5, 5.1 ms. So a rise of about 9 ms between minutes 20 and 40 that eased afterwards. Run A stopped at 32 minutes, so it does not cover that window uncapped.

For comparison, the same PC on d12eb1b2 (first post, Series X): 27.5 GB at 4 minutes, 35.1 GB at 20, and 28-29 fps falling to 14.

Caveats: one run each; free roam, so the scenes differ between blocks (hence the comparison at equal draw counts); A and B differ in cap and in frame generation.

Two other things seen on .8, not about memory; I can open separate issues with captures if useful:

  • Started through scripts\play-nvidia.ps1 with a fresh cache: first start without Jason's head, second start at a flat 14.0 fps for the whole run, third start normal (the warm-up restart is in victory play only).
  • Under an overcast sky, grey tile-shaped blocks sit around the character (head, arms, hips, legs) and move with him; in direct sun, in the same run and with frame generation off, they are gone. I did not see this on d12eb1b2.

Tested and written with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231875460 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7231875460). Originally posted by [JohnTitor2003](https://github.com/JohnTitor2003) on 2026-11-28T01:43:40Z. --- Measured on .8 as asked, on the 32 GB PC from the first post. Short version: no growth like before and no slowdown in 32 minutes uncapped; a slow creep is still visible in a 50-minute capped session. **Setup:** v2026.11.27.8 built from source at 64d4931, unmodified. RTX 5080 16 GB (driver 617.42), Ryzen 9 7950X, 32 GB RAM, Windows 11. Series S profile, 2560x1440, DLSS Performance (`VICTORY_DLSS_PRESET=m`), water light off, started through `scripts\play-nvidia.ps1`. Open-world free roam on foot and by car. Private bytes from typeperf every 2 s; frame figures from the log's frame lines (rendered frames). **Run A: no frame cap, 32 minutes** (frame generation switched between off, 2x, 3x and 6x in F1 during the run) Rendered fps (median) at equal scene load: | Draws a frame | 0-10 min | 10-20 min | 20-30 min | |---|---|---|---| | 5,000-7,000 | 23.2 | 23.4 | 25.1 | | 7,000-9,000 | 20.7 | 21.2 | 21.1 | "Preparing" stayed at 29-32 ms a frame throughout. 311 frame lines in the world, median 21.7 fps, 3 under 12. | Minutes in | Private bytes | Working set | Available RAM | |---|---|---|---| | 5 | 22.4 GB | 22.4 GB | 0.9 GB | | 15 | 22.8 GB | 19.4 GB | 2.1 GB | | 25 | 23.3 GB | 17.7 GB | 1.0 GB | | 32 | 23.5 GB | 17.3 GB | 3.4 GB | - Driving into new areas adds 0.6-1 GB for about a minute (peaks 24.6 and 24.1 GB, with 6.1 and 3.4 GB of textures uploaded in those minutes, "preparing" up to 36 ms) and it comes back to 23.5 GB both times. - Page file use stayed at 0.3 GB; nothing was being written to disk. **Run B: 15 fps cap (`VICTORY_FRAME_INTERVAL_US=66667`), frame generation 3x, 50 minutes** | Minutes in | Private bytes | |---|---| | 3 | 21.0 GB | | 15 | 21.5 GB | | 27 | 23.1 GB | | 39 | 23.9 GB | | 45 | 25.0 GB (peak) | | 50 | 24.2 GB | The cap held in 97% of the frame lines, so the frame rate cannot show a drag here, but the per-frame work can. At 6,000-8,000 draws, by ten-minute block: "preparing" 28.1, 29.6, 36.7, 37.4, 33.8 ms; "copying back" 4.2, 4.3, 6.2, 7.5, 5.1 ms. So a rise of about 9 ms between minutes 20 and 40 that eased afterwards. Run A stopped at 32 minutes, so it does not cover that window uncapped. **For comparison,** the same PC on d12eb1b2 (first post, Series X): 27.5 GB at 4 minutes, 35.1 GB at 20, and 28-29 fps falling to 14. **Caveats:** one run each; free roam, so the scenes differ between blocks (hence the comparison at equal draw counts); A and B differ in cap and in frame generation. Two other things seen on .8, not about memory; I can open separate issues with captures if useful: - Started through `scripts\play-nvidia.ps1` with a fresh cache: first start without Jason's head, second start at a flat 14.0 fps for the whole run, third start normal (the warm-up restart is in `victory play` only). - Under an overcast sky, grey tile-shaped blocks sit around the character (head, arms, hips, legs) and move with him; in direct sun, in the same run and with frame generation off, they are gone. I did not see this on d12eb1b2. Tested and written with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
StebanSchrader commented 2026-11-28 01:59:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-28T01:59:26Z.


One more data point, in case someone looks at reading the windows in place instead of copying them. Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM), a4d05e7 (v2026.11.27.9), mode 3, diag profile.

What I tried (local change, not a PR): I let renderer port 1's placement (port.rs: our own view of the section, then OpenExistingHeapFromAddress1) take windows outside buffers at any address, not only below 4 GiB. It was behind a switch, opened only the window's own pages, and fell back to a copy when refused. The port and in-place tests pass on WARP, including warp_a_stretch_of_a_reserved_section_is_used_in_place_through_a_view_of_ours.

Result: only 4 windows (16 MB) could be placed. Almost every other window was turned down by stretch() before anything was asked of the host:

  • not one stretch of a section: Holes: views cover only part of the 4 MiB window;
  • not one stretch of a section: None: no view holds its first byte.

At the end there were 1193 windows copied (5040 MB, shadow.rs:5779), and the PC memory shared with the card was at 7433 of 7180 MB. The run ended at 6.5 minutes with a device removal (0x887A0005) rather than 0x8007000E. I cannot tell whether the 4 placed windows played a part, since the shared segment was already over its budget.

So on this game the memory under the windows is mapped page by page (64 KiB), scattered and with holes. A placed buffer over one run of a section cannot show it, and tile mappings into an opened heap remove the device (as inplace.rs says). Reading the windows without a copy would need something other than one placed buffer per window. I have turned the change off on my side.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7232052619 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7232052619). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-28T01:59:26Z. --- One more data point, in case someone looks at reading the windows in place instead of copying them. Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM), `a4d05e7` (v2026.11.27.9), mode 3, diag profile. **What I tried (local change, not a PR):** I let renderer port 1's placement (`port.rs`: our own view of the section, then `OpenExistingHeapFromAddress1`) take windows outside buffers at any address, not only below 4 GiB. It was behind a switch, opened only the window's own pages, and fell back to a copy when refused. The port and in-place tests pass on WARP, including `warp_a_stretch_of_a_reserved_section_is_used_in_place_through_a_view_of_ours`. **Result:** only 4 windows (16 MB) could be placed. Almost every other window was turned down by `stretch()` before anything was asked of the host: - `not one stretch of a section: Holes`: views cover only part of the 4 MiB window; - `not one stretch of a section: None`: no view holds its first byte. At the end there were 1193 windows copied (5040 MB, `shadow.rs:5779`), and the PC memory shared with the card was at 7433 of 7180 MB. The run ended at 6.5 minutes with a device removal (`0x887A0005`) rather than `0x8007000E`. I cannot tell whether the 4 placed windows played a part, since the shared segment was already over its budget. So on this game the memory under the windows is mapped page by page (64 KiB), scattered and with holes. A placed buffer over one run of a section cannot show it, and tile mappings into an opened heap remove the device (as `inplace.rs` says). Reading the windows without a copy would need something other than one placed buffer per window. I have turned the change off on my side. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
StebanSchrader commented 2026-11-28 20:54:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-28T20:54:29Z.


Follow-up for 16 GB PCs: a combination that kept mode 3 under the shared-memory budget. Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM, budget of the PC memory shared with the card 7180 MB), a4d05e7 (v2026.11.27.9), mode 3, diag profile.

Three runs, each to the end of a session

Run Switches Length Most shared memory Out-of-memory warnings
1 VICTORY_WINDOW_KB=256 + VICTORY_WINDOW_TAILS=1 hours 7436 MB ~4,900 (no upload buffer / no shared buffer) from minute 11
2 valve below, 4 MiB windows 37 min 6672 MB 0
3 256 KiB windows + valve 43 min 6547 MB 0

Run 1 no longer crashed, but it kept going without buffers it could not make. Runs 2 and 3 never ran out.

The valve (local change, ~350 lines, off unless VICTORY_WINDOW_VALVE=1; not a PR). Windows outside buffers that only descriptor slots hold are never taken by let_go_idle, since the heap pass keeps their slots. The valve acts only while the shared segment (QueryVideoMemoryInfo NON_LOCAL) is over 92 % of its budget, and stops under 85 %, at most 256 MB a pass. It takes the oldest windows no draw asked for in the last two frames and makes their buffer slots null (unmake, as texture_slot_evicted does). The heap pass then leaves those slots null until the title writes them again (buffer_changes) or a draw's table makes them. A window is retired once nothing but the table holds it.

  • Run 2: opened 3 times, all after minute 30; 335 windows let go (1524 MB), 5395 slots made null, 4842 given back.
  • Run 3: opened once, at minute 40, for 4 seconds; 1612 slots made null but only 3 windows let go (most were still held elsewhere). So with 256 KiB windows the valve is barely needed, but it is not efficient when it does open.

What it risks: a shader that still reads a nulled slot reads zeros. I cannot tell that apart from the rendering bugs below, which were there from the start of each run, before the valve ever opened.

Already there without the valve (screenshots on request): characters missing parts of their body (Jason's head on the pillow with no body at the opening scene, his arms gone later), square patches around characters and objects, black squares on water, and multicoloured block textures. VICTORY_TEXTURE_NO_WAIT=0 did not change them.

Frame rate: 15-18 fps in the world (2x frame generation on top), CPU-bound: about 40 ms a frame preparing (copies 18-24 ms, copying back 10-13 ms) against about 5 ms on the GPU. The 256 KiB windows did not make it slower (copies 18.3 ms on average in run 3, 23.6 in run 2).

I am now on v2026.11.28.03 with the same local change and will report if anything differs.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7245631211 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7245631211). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-28T20:54:29Z. --- Follow-up for 16 GB PCs: a combination that kept mode 3 under the shared-memory budget. Same PC (RTX 4070 Laptop 8 GB, 16 GB RAM, budget of the PC memory shared with the card 7180 MB), `a4d05e7` (v2026.11.27.9), mode 3, diag profile. **Three runs, each to the end of a session** | Run | Switches | Length | Most shared memory | Out-of-memory warnings | |---|---|---:|---:|---:| | 1 | `VICTORY_WINDOW_KB=256` + `VICTORY_WINDOW_TAILS=1` | hours | 7436 MB | ~4,900 (`no upload buffer` / `no shared buffer`) from minute 11 | | 2 | valve below, 4 MiB windows | 37 min | 6672 MB | 0 | | 3 | 256 KiB windows + valve | 43 min | 6547 MB | 0 | Run 1 no longer crashed, but it kept going without buffers it could not make. Runs 2 and 3 never ran out. **The valve (local change, ~350 lines, off unless `VICTORY_WINDOW_VALVE=1`; not a PR).** Windows outside buffers that only descriptor slots hold are never taken by `let_go_idle`, since the heap pass keeps their slots. The valve acts only while the shared segment (`QueryVideoMemoryInfo` NON_LOCAL) is over 92 % of its budget, and stops under 85 %, at most 256 MB a pass. It takes the oldest windows no draw asked for in the last two frames and makes their buffer slots null (`unmake`, as `texture_slot_evicted` does). The heap pass then leaves those slots null until the title writes them again (`buffer_changes`) or a draw's table makes them. A window is retired once nothing but the table holds it. - Run 2: opened 3 times, all after minute 30; 335 windows let go (1524 MB), 5395 slots made null, 4842 given back. - Run 3: opened once, at minute 40, for 4 seconds; 1612 slots made null but only 3 windows let go (most were still held elsewhere). So with 256 KiB windows the valve is barely needed, but it is not efficient when it does open. What it risks: a shader that still reads a nulled slot reads zeros. I cannot tell that apart from the rendering bugs below, which were there from the start of each run, before the valve ever opened. **Already there without the valve** (screenshots on request): characters missing parts of their body (Jason's head on the pillow with no body at the opening scene, his arms gone later), square patches around characters and objects, black squares on water, and multicoloured block textures. `VICTORY_TEXTURE_NO_WAIT=0` did not change them. **Frame rate:** 15-18 fps in the world (2x frame generation on top), CPU-bound: about 40 ms a frame preparing (copies 18-24 ms, copying back 10-13 ms) against about 5 ms on the GPU. The 256 KiB windows did not make it slower (copies 18.3 ms on average in run 3, 23.6 in run 2). I am now on v2026.11.28.03 with the same local change and will report if anything differs. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
StebanSchrader commented 2026-11-29 09:48:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-29T09:48:11Z.


v2026.11.29.01 on a 16 GB PC: it does not reach gameplay. Same PC as above (RTX 4070 Laptop 8 GB, 16 GB RAM, Ryzen 7 7840HS).

Build: 829188e9 (tag v2026.11.29.01), built from source with no local changes, started with the repo's own PLAY_FRAMEGEN.cmd 3 (Series S, DLSS Quality, frame generation 2x). The launcher's own 16 GB setting applied (VICTORY_WINDOW_KB=1024). Pipelines were made beforehand with victory warm --used (4,125 made, 0 failed).

Two runs, both ended about one minute after start, during the load into the world:

Run Length Process memory just before End
1 60 s 15,228 MB private (9,076 MB in memory) no host list for a state prelude after 0x8007000E
2 65 s 19,933 MB private (3,607 MB in memory) a burst of no upload buffer ... 0x8007000E size=262144, then 0x887A0005 (device removed)

physical_free_mib was about 2.8 GB at the start of both runs (host memory pressure warning at frame 2).

For comparison, on the same PC v2026.11.28.03 (with 256 KiB windows and a local valve that lets go of the oldest windows above 92 % of the shared segment, see my earlier comments) plays 40+ minutes without running out. So something in this release raises memory use during the load enough that a 16 GB PC does not get past it.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254005521 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7254005521). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-29T09:48:11Z. --- v2026.11.29.01 on a 16 GB PC: it does not reach gameplay. Same PC as above (RTX 4070 Laptop 8 GB, 16 GB RAM, Ryzen 7 7840HS). **Build:** `829188e9` (tag v2026.11.29.01), built from source with no local changes, started with the repo's own `PLAY_FRAMEGEN.cmd 3` (Series S, DLSS Quality, frame generation 2x). The launcher's own 16 GB setting applied (`VICTORY_WINDOW_KB=1024`). Pipelines were made beforehand with `victory warm --used` (4,125 made, 0 failed). **Two runs, both ended about one minute after start, during the load into the world:** | Run | Length | Process memory just before | End | |---|---:|---|---| | 1 | 60 s | 15,228 MB private (9,076 MB in memory) | `no host list for a state prelude` after `0x8007000E` | | 2 | 65 s | 19,933 MB private (3,607 MB in memory) | a burst of `no upload buffer ... 0x8007000E size=262144`, then `0x887A0005` (device removed) | `physical_free_mib` was about 2.8 GB at the start of both runs (host memory pressure warning at frame 2). For comparison, on the same PC v2026.11.28.03 (with 256 KiB windows and a local valve that lets go of the oldest windows above 92 % of the shared segment, see my earlier comments) plays 40+ minutes without running out. So something in this release raises memory use during the load enough that a 16 GB PC does not get past it. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
nick0451 commented 2026-11-29 11:28:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T11:28:48Z.


Two 30-minute soaks that show what the growth is in at least one case: the texture cache filling the card, and Windows charging system commit for it about one for one.

Setup: RTX 3090 24 GB, i9-14900K, 32 GB RAM, Windows 11, main 829188e9 (+ the 2-line #1625 start fix), Series S, DLSS performance, no FG. A city street save with traffic, standing (a tap every 25 s), sampled every 30 s. Other programs on the PC held ~5.7 GB of the card and most of the commit (15 of 73 GB free before the game).

private (5 min → 30 min) GPU used, whole card layer's card use fps after 10 min: mean / worst
default budget 30.6 → 39.2 GB 18.3 → 23.3 GB 12.6 → 19.5 GB (budget 23.5 → 21.3 GB as other apps took VRAM) 17.7 / 5.8
VICTORY_VRAM_BUDGET_MB=12000 27.3 → 31.6 GB 14.1 → 17.7 GB 8.6 → 12.2 GB, then flat 19.6 / 8.5

From the layer's own process memory: lines (default run):

  • What the layer names (named) stays flat at about 18.5 GB, and so does the title's own memory.
  • All the growth is in host private, unnamed (26.0 → 35.7 GB), and it follows the card's own memory in use: commit +8.2 GB while card use went +6.8 GB (texture copies 4.7 → 11.6 GB).
  • It levels off once the texture queue reaches its line. In both runs, commit ≈ ~18 GB + what the layer holds on the card.

So here it is not an unbounded leak. Filling the card to the budget costs about as much system commit as VRAM, and with other programs on the card it also cost frame rate (lower mean, worse drops). Capping the budget saved ~8 GB of commit and was faster.

Suggestions:

  • Players with 16-32 GB RAM, or with other programs open: try VICTORY_VRAM_BUDGET_MB (e.g. 12000 on a 24 GB card) if memory grows and the frame rate falls.
  • For the layer: size the texture line by what is left to commit (residency::available_commit) as well as by the DXGI budget, so a PC short of commit doesn't fill the card into it. (Low commit also put every driver compile off for good on current main: see #1625.)

Different scenes or longer sessions may still show a real leak elsewhere; these two runs only rule it out for standing in this street.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255139516 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7255139516). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-29T11:28:48Z. --- Two 30-minute soaks that show what the growth is in at least one case: the texture cache filling the card, and Windows charging **system commit** for it about one for one. **Setup:** RTX 3090 24 GB, i9-14900K, 32 GB RAM, Windows 11, main `829188e9` (+ the 2-line #1625 start fix), Series S, DLSS performance, no FG. A city street save with traffic, standing (a tap every 25 s), sampled every 30 s. Other programs on the PC held ~5.7 GB of the card and most of the commit (15 of 73 GB free before the game). | | private (5 min → 30 min) | GPU used, whole card | layer's card use | fps after 10 min: mean / worst | |---|---|---|---|---| | default budget | 30.6 → **39.2 GB** | 18.3 → 23.3 GB | 12.6 → 19.5 GB (budget 23.5 → 21.3 GB as other apps took VRAM) | 17.7 / **5.8** | | `VICTORY_VRAM_BUDGET_MB=12000` | 27.3 → **31.6 GB** | 14.1 → 17.7 GB | 8.6 → 12.2 GB, then flat | **19.6 / 8.5** | From the layer's own `process memory:` lines (default run): - What the layer names (`named`) stays **flat** at about 18.5 GB, and so does the title's own memory. - All the growth is in **host private, unnamed** (26.0 → 35.7 GB), and it follows the card's own memory in use: commit +8.2 GB while card use went +6.8 GB (`texture copies` 4.7 → 11.6 GB). - It **levels off** once the texture queue reaches its line. In both runs, commit ≈ ~18 GB + what the layer holds on the card. So here it is not an unbounded leak. Filling the card to the budget costs about as much **system commit** as VRAM, and with other programs on the card it also cost frame rate (lower mean, worse drops). Capping the budget saved ~8 GB of commit and was faster. **Suggestions:** - Players with 16-32 GB RAM, or with other programs open: try `VICTORY_VRAM_BUDGET_MB` (e.g. 12000 on a 24 GB card) if memory grows and the frame rate falls. - For the layer: size the texture line by what is left to commit (`residency::available_commit`) as well as by the DXGI budget, so a PC short of commit doesn't fill the card into it. (Low commit also put every driver compile off for good on current main: see #1625.) Different scenes or longer sessions may still show a real leak elsewhere; these two runs only rule it out for standing in this street. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sonokweii commented 2026-11-29 12:30:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by sonokweii on 2026-11-29T12:30:48Z.


8 GB card, 32 GB RAM, 829188e: the same growth, and here it ends in an out-of-memory crash within the hour. f4608f0 (+ aee4c45) holds steady on the same PC.

Setup. RTX 5060 8 GB (driver 610.88), Ryzen 7 9700X, 32 GB RAM (27 GB page file, commit limit 58.2 GB), Windows 11. Series S, DLSS Quality to 1080p, DLSS frame generation 3x, release builds, the same save.

829188e (with VICTORY_ALIAS_TARGETS=0 for #1976, which costs about 0.8 GB here):

  • The card's own memory in use went 5,038 → 7,444 → 9,302 → 9,959 MB in ten minutes against a budget of 6.7-7.1 GB. From about 13 minutes in, the GPU time went from 0.1-3.7 ms to 33-224 ms a frame, and the frame rate from 17-20 to 3.5-8 fps (details in #1482).
  • About an hour in, victory.exe had 32.2 GB of private commit (8.6 GB in RAM) and the PC 57.2 of 58.2 GB committed; the log took about 2,000 lines a second of no upload buffer error=Not enough memory resources are available to complete this operation. (0x8007000E), and then host GPU failure: a host command list did not close (Not enough memory resources ... (0x8007000E)).
  • Started again at the mission's autosave, it was at 4-6 fps after about a minute: memory now: committed 22766 MB, the card's own 6611 MB in use of a budget of 6399 MB, the PC's shared with the card 7720 MB in use, with 120-170 ms a frame on the GPU.

That fits nick0451's finding above (the card's texture cache charged to system commit), here with 7.7 GB of it in shared memory from the start.

What we went back to: f4608f0 with aee4c45 (the title watchdog's quit flag) cherry-picked. Same save, same area, over 25 minutes: victory.exe steady at about 20 GB committed, the card at its budget (6,857 MB against 6,811-6,835 MB) without climbing past it, 20-21 fps. A 106-minute f4608f0 session on 28/11 peaked at 6,147 MB on the card.

A lead, not a proof: on this card the card filled much sooner from 32ecacf on (DLSS out of VRAM after 1-3 minutes, against 3-18 on f4608f0; #1482). The 34 main-line commits of f4608f0..32ecacf include #76, which sizes the render targets' room by the peak they have held instead of a flat 3 GiB.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255865853 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7255865853). Originally posted by [sonokweii](https://github.com/sonokweii) on 2026-11-29T12:30:48Z. --- **8 GB card, 32 GB RAM, 829188e: the same growth, and here it ends in an out-of-memory crash within the hour. f4608f0 (+ aee4c45) holds steady on the same PC.** **Setup.** RTX 5060 8 GB (driver 610.88), Ryzen 7 9700X, 32 GB RAM (27 GB page file, commit limit 58.2 GB), Windows 11. Series S, DLSS Quality to 1080p, DLSS frame generation 3x, release builds, the same save. **829188e** (with `VICTORY_ALIAS_TARGETS=0` for #1976, which costs about 0.8 GB here): - The card's own memory in use went 5,038 → 7,444 → 9,302 → 9,959 MB in ten minutes against a budget of 6.7-7.1 GB. From about 13 minutes in, the GPU time went from 0.1-3.7 ms to 33-224 ms a frame, and the frame rate from 17-20 to 3.5-8 fps (details in #1482). - About an hour in, victory.exe had 32.2 GB of private commit (8.6 GB in RAM) and the PC 57.2 of 58.2 GB committed; the log took about 2,000 lines a second of `no upload buffer error=Not enough memory resources are available to complete this operation. (0x8007000E)`, and then `host GPU failure: a host command list did not close (Not enough memory resources ... (0x8007000E))`. - Started again at the mission's autosave, it was at 4-6 fps after about a minute: `memory now: committed 22766 MB, the card's own 6611 MB in use of a budget of 6399 MB, the PC's shared with the card 7720 MB in use`, with 120-170 ms a frame on the GPU. That fits nick0451's finding above (the card's texture cache charged to system commit), here with 7.7 GB of it in shared memory from the start. **What we went back to:** f4608f0 with aee4c45 (the title watchdog's quit flag) cherry-picked. Same save, same area, over 25 minutes: victory.exe steady at about 20 GB committed, the card at its budget (6,857 MB against 6,811-6,835 MB) without climbing past it, 20-21 fps. A 106-minute f4608f0 session on 28/11 peaked at 6,147 MB on the card. **A lead, not a proof:** on this card the card filled much sooner from 32ecacf on (DLSS out of VRAM after 1-3 minutes, against 3-18 on f4608f0; #1482). The 34 main-line commits of f4608f0..32ecacf include #76, which sizes the render targets' room by the peak they have held instead of a flat 3 GiB.
nick0451 commented 2026-11-29 15:21:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T15:21:46Z.


Following up @sonokweii's 8 GB report: the overshoot reproduces on a 24 GB card by capping the layer's budget, which gives anyone with a big card a way to bisect it.

Method: RTX 3090 24 GB, VICTORY_VRAM_BUDGET_MB=6800 (about an 8 GB card's DXGI budget), the same city-street save, standing with a tap every 25 s. The the texture queue's room and memory now lines are sampled over the run, and private bytes every 30 s.

build textures in use room kept for render targets the card's own in use vs budget private
f4608f0 (20 min) ~4.8 → 5.1 GB ~2,000 MB, held within budget 19.2 → 19.7 GB, flat
14e5deda^1 (just before #76, 12 min) ~4.7 → 4.8 GB ~2,090 MB, held within budget 18.9 → 19.1 GB, flat
main 829188e9 (20 min) 6.5 → 7.9 GB ~415-477 MB 7,872 MB of 6,800 at the end 25.0 → 26.8 GB
main, VICTORY_CARD_ROOM_FOR_TARGETS_MB=2560 (flat reserve back, 12 min) 5.9 → 6.8 GB 0 MB after the settle 6,793 of 6,800 and rising 24.3 → 25.3 GB

(main also carries a local 2-line start fix from #1625, unrelated here.)

So:

  • Before #76 the reserve was held (~2.1 GB), textures stopped near 4.8 GB, and the total sat at the budget.
  • On main the reserve is small (#76 sizes it by the peak held). Textures fill past the budget even standing still, which is what turns into paging on a real 8 GB card (your 33-224 ms GPU frames).
  • Putting the flat reserve back on main doesn't restore the old behaviour: the settle gives the room back (0 MB), and textures go to the budget again. Private memory also starts ~5 GB higher than before #76. So #76 looks like part of it, but not all. Something else between 14e5deda and 829188e9 lets the texture queue take the whole budget too.

I couldn't bisect it here: builds in that range crash the compiler on this PC (14e5deda itself three times). The cap above should make it bisectable on any card with ≥12 GB: the signal is the card's own N MB in use of a budget of 6800 MB going past 6,800 within ~15 min, or kept for render targets falling under ~2 GB.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7258028580 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7258028580). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-29T15:21:46Z. --- Following up @sonokweii's 8 GB report: **the overshoot reproduces on a 24 GB card** by capping the layer's budget, which gives anyone with a big card a way to bisect it. **Method:** RTX 3090 24 GB, `VICTORY_VRAM_BUDGET_MB=6800` (about an 8 GB card's DXGI budget), the same city-street save, standing with a tap every 25 s. The `the texture queue's room` and `memory now` lines are sampled over the run, and private bytes every 30 s. | build | textures in use | room kept for render targets | the card's own in use vs budget | private | |---|---|---|---|---| | `f4608f0` (20 min) | ~4.8 → 5.1 GB | **~2,000 MB, held** | within budget | 19.2 → 19.7 GB, flat | | `14e5deda^1` (just before #76, 12 min) | ~4.7 → 4.8 GB | **~2,090 MB, held** | within budget | 18.9 → 19.1 GB, flat | | main `829188e9` (20 min) | 6.5 → **7.9 GB** | ~415-477 MB | **7,872 MB of 6,800** at the end | 25.0 → **26.8 GB** | | main, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=2560` (flat reserve back, 12 min) | 5.9 → 6.8 GB | **0 MB after the settle** | 6,793 of 6,800 and rising | 24.3 → 25.3 GB | (main also carries a local 2-line start fix from #1625, unrelated here.) So: - Before #76 the reserve was **held** (~2.1 GB), textures stopped near 4.8 GB, and the total sat at the budget. - On main the reserve is small (#76 sizes it by the peak held). Textures fill past the budget even standing still, which is what turns into paging on a real 8 GB card (your 33-224 ms GPU frames). - Putting the flat reserve back on main **doesn't restore the old behaviour**: the settle gives the room back (0 MB), and textures go to the budget again. Private memory also starts ~5 GB higher than before #76. So #76 looks like part of it, but not all. Something else between `14e5deda` and `829188e9` lets the texture queue take the whole budget too. I couldn't bisect it here: builds in that range crash the compiler on this PC (`14e5deda` itself three times). The cap above should make it bisectable on any card with ≥12 GB: the signal is `the card's own N MB in use of a budget of 6800 MB` going past 6,800 within ~15 min, or `kept for render targets` falling under ~2 GB. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
StebanSchrader commented 2026-11-29 18:50:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by StebanSchrader on 2026-11-29T18:50:04Z.


v2026.11.29.02 on the same 16 GB PC (RTX 4070 Laptop 8 GB, 16 GB RAM, Ryzen 7 7840HS): still out of memory before the world, 3 runs out of 3.

Build: tag v2026.11.29.02, built from source with no local code changes, mode 3 (Series S, DLSS Quality, frame generation 2x), 256 KiB windows. Pipelines made beforehand with victory warm --used (4,127 made, 3 without a host pipeline, 0 ended their process).

Run Length Process memory just before the end First failure
1 66 s 20,727 MB private (1,984 MB in memory) no shared buffer (0x8007000E)
2 57 s 14,259 MB private (7,070 MB in memory) no shared buffer (0x8007000E)
3 55 s 13,748 MB private (5,624 MB in memory) a host command list did not close (0x8007000E)

physical_free_mib was about 2.9-3.1 GB at the start of each run.

On the same PC, in the same session, v2026.11.28.03 with a few local changes (256 KiB windows, a valve that lets go of the oldest windows above 92 % of the shared segment, #614 and the watchdog fix aee4c45) reaches the world every time and plays at 11-14 fps. So the out-of-memory listed under "Still open" also hits 16 GB PCs, and here it happens during the load, not after an hour.

Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7260795596 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7260795596). Originally posted by [StebanSchrader](https://github.com/StebanSchrader) on 2026-11-29T18:50:04Z. --- v2026.11.29.02 on the same 16 GB PC (RTX 4070 Laptop 8 GB, 16 GB RAM, Ryzen 7 7840HS): still out of memory before the world, 3 runs out of 3. **Build:** tag v2026.11.29.02, built from source with no local code changes, mode 3 (Series S, DLSS Quality, frame generation 2x), 256 KiB windows. Pipelines made beforehand with `victory warm --used` (4,127 made, 3 without a host pipeline, 0 ended their process). | Run | Length | Process memory just before the end | First failure | |---|---:|---|---| | 1 | 66 s | 20,727 MB private (1,984 MB in memory) | `no shared buffer` (0x8007000E) | | 2 | 57 s | 14,259 MB private (7,070 MB in memory) | `no shared buffer` (0x8007000E) | | 3 | 55 s | 13,748 MB private (5,624 MB in memory) | `a host command list did not close` (0x8007000E) | `physical_free_mib` was about 2.9-3.1 GB at the start of each run. On the same PC, in the same session, v2026.11.28.03 with a few local changes (256 KiB windows, a valve that lets go of the oldest windows above 92 % of the shared segment, #614 and the watchdog fix aee4c45) reaches the world every time and plays at 11-14 fps. So the out-of-memory listed under "Still open" also hits 16 GB PCs, and here it happens during the load, not after an hour. Tested with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
trustno1-coder commented 2026-11-29 23:08:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T23:08:32Z.


Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed).

If it still happens on v2026.11.29.05, please open a new issue with the newest play log from %LOCALAPPDATA%\victory\logs\ and crashes.log, and we'll look at it there.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7264229115 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/191#issuecomment-7264229115). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T23:08:32Z. --- Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed). If it still happens on [v2026.11.29.05](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.05), please open a new issue with the newest play log from `%LOCALAPPDATA%\victory\logs\` and `crashes.log`, and we'll look at it there.
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#191
No description provided.