One owner for the whole card budget, for any card near its memory limit (measured on 8 GB; a plan in small steps) #4463

Open
opened 2026-11-30 20:41:23 +00:00 by github-bot · 36 comments
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-30 20:36 UTC · original

What changed in v12

The maintainer's texture and video-memory rework is on main (merge 415f3d854; main at b97efa767 when this was written). This version re-reads the plan against it.

  • Problem restated on the new main. What the rework fixed on our 8 GB card is credited first.
  • Two launch paths on 8 GB cards are named, because they now behave differently.
  • Step 1 split into 1a-1d and rewritten: the owner works with the park, not instead of it.
  • Steps 2-6 updated to what main has now. Several PRs this plan pointed at were closed today with a request to rewrite them on the new main; their state is in "Related work".
  • New: our 8 GB port and what is left of it on main.
  • Next measurements replace "Are you working on a fix?"'s old list.

What you would like

One owner for the whole card budget, so a card near its memory budget has one figure for "in use" and one line to keep under. We measured on 8 GB cards. 12 GB cards report memory pressure too (#3200, Series X profile: 10.9 of 12 GB in use with heavy stutter, with DLSS frame generation on; #3197: a crash report titled "exceeding 12GB VRAM", no figures given). Ray tracing, frame generation and higher resolutions may reach the budget sooner on any card (not measured).

I'm proposing to build it in small steps, each behind its own switch and each its own PR. The aim of this issue is to coordinate, so memory PRs point the same way. Where main or an open PR already does a step, the step is to test that, not to write our own. I update this post as measurements come in.

What the rework fixed on our 8 GB card. Upstream's test build v2026.12.01.01-test, victory play, one 28-minute session (our post on #4987), against one 31-minute session of the old main's memory defaults on our fork's build. Not like for like: a different exe, and the test build started with an empty pipeline cache.

  • The card never went over its budget: 0 % of 916 memory lines, at least 501 MB under. Before: over in 10 % of 1,097 lines, by up to 314 MB.
  • First-upload refusals fell from 20.3 million to 45,000 (20,346,515 to 45,324).
  • Textures with no card room are now made whole in PC memory ("parked", VICTORY_TEX_PARK=1) instead of being held behind a gray stand-in. At the end 1,290 MB of textures were parked.
  • What it costs: card texture blocks stopped at 46 (2,944 MB) three minutes in and stayed there. 79,859 card blocks were refused over 36 park periods, all while the card was under its budget. The texture queue's line (80 % of the budget with frame generation, 5.4-5.6 GB) said "no room" in all 288 of its lines in the world.

Why one owner is still needed (our reading of main). There is still no single owner.

  • About 15 separate lines decide card room: the texture queue (80/86 % or B − max(768 MiB, B/20)), first uploads (#4005's B − 512 MiB and two more bounds), buffer copies (97 % or the queue line), windows (80 %), buffers made ahead (70 %, 95 % in the script launcher), slot eviction (85 %), spare blocks (85 %), the UAV pool (88/95 %), the park target, the render-target reserve and more.
  • Each reads DXGI itself. Host::video_memory asks DXGI twice (local and shared) on every call, with no cache. It has 45 call sites in 22 files.
  • Each measures "use" differently. The queue weighs DXGI use minus free space in texture blocks plus the room kept for buffers and render targets. Buffer copies, the park and compaction weigh raw DXGI use. So two parts of the code can disagree about whether the card is full.
  • cardledger.rs now counts every card allocation by kind, frees included. Its header says "It only counts and logs; nothing is decided from it", and it is off by default (VICTORY_CARD_LEDGER=1).

Two launch paths on cards with a budget of 8 GiB or less. They no longer behave alike:

  • victory play (the menu launcher): the park is on, tiled levels are off (LEVELS_ON_DEMAND=0). A texture with no room is parked whole.
  • scripts/play-nvidia.ps1 (the script launcher): LEVELS_ON_DEMAND=auto turns tiled levels on at this budget. That switches off the park, SMALL_WHEN_FULL and TEXTURE_QUALITY for those textures. A refused texture is held about 4 s behind a gray stand-in and asked again, as before the rework. #4005's 512 MB cap still refuses there, and its log line still calls it "refused by an explicit byte limit".

Every result below says which path it used.

Earlier numbers (old main, our settings). Our 28-minute table in v11 was taken with our launcher's memory settings, not main's (POOL_SMALL=0, SLOT_EVICT=0, TEXTURE_KEEP_FREE_MB=0, ROOM_BY_BLOCKS=1, CARD_ROOM_FOR_TARGETS_MB=1280). On the old main's defaults the card went over its budget at about 3 minutes, in 10 % of readings, by at most 314 MB (comment). @⁠CuteBooty's RTX 3070 8 GB stayed under its budget, but the margin fell from 869 MB to 22 MB over a 28-minute mission (comment). Neither is on the new main.

What others do (re-checked 2026-12-01; links in our comment of that date). One count of what is held, with one line below the OS budget: Dawn caps at 95 % of the budget, Unreal's DX12 back end takes 90 % (forum quotes of its source). D3D12MA and VMA estimate use between DXGI readings from what they made and freed, and read again about once a frame (D3D12MA also after 30 allocations or frees). Empty heaps are freed with one spare kept (D3D12MA, DXVK). Over budget, Unreal lowers texture detail one level at a time, least recently seen first, and DXVK falls back to system memory. The rework's park is the DXVK answer, and its DEMOTE is the Unreal one.

Proposed steps (revised for v12). A ticked item exists on main and was checked in the code; each item says where.

  • Step 0. Count first.
    • cardledger.rs on main: per-kind card bytes, frees counted (VICTORY_CARD_LEDGER=1, off). This was #2910's ledger. Step 1 would make it the owner's ledger.
    • Our per-block census: our fork only, a diagnostic for measuring here.
  • Step 1. One owner that works with the park, not instead of it. It does not replace the park, DEMOTE or slot eviction. It gives them one figure and one line.
    • 1a. One shared reading. A new PR replacing #4745 (closed today, to be rewritten on the new main), written on main's video_memory. It folds in @⁠andrewpozdnakov7-jpg's race fix and his follow-up 820c696f, with his authorship. Off by default.
    • 1b. One line T from the card's own budget. Main's park target now does this: nine tenths of the budget, of the player's limit where that is lower (b97efa767; it was a fixed 9,600 MB, maintainer's post). T should be that same figure, not a second one. Our earlier T (B − max(512 MiB, B/16), about 93 % on 8 GB) gives way to it.
    • 1c. Fresh readings. Mostly moot on main: the texture pass reads DXGI again every 32 MiB uploaded, and the park takes 64 MiB off its headroom per card block made between readings. What is left is counting frees, which the ledger already does.
    • 1d. Every class asks the owner, and the owner drains on the same figure it admits on. That figure is the sum the texture queue and slot eviction already weigh: DXGI use, minus free space in texture blocks, plus the room kept for buffers and render targets. The park today admits on that sum but moves textures on raw DXGI use against its target. We hit the same split in our own owner on the old main: it refused textures about 350 MB under its line, because admission counted the kept room and the drain didn't.
    • Same-sum drain, measured (our fork, old source, 8 GB, one session, 2026-12-01). The drain was on, at 6,127 MB against T 6,123 MB, when we looked at 18:47:10Z, and stayed on to the end of the log. Refusals had begun at 18:45:54Z, and the drain had switched on and off before that. In the 41 s after 18:47:10Z, slot eviction (with SAMPLED_EVICT=pressure) let go 677 more textures, but only 49 MB, and card use stayed at 5,840-5,873 MB. No idle render-target copy was free to go: about 100 were idle (280-400 MB), all held by a list or a slot. Textures stayed refused (118,000-187,000 refused asks per line at first, 9,000-94,000 in the last three lines), and the white stand-ins stayed. So one line and a same-sum drain are needed but not enough: the owner also needs a drain that moves whole textures, including ones shaders pick by index, without the use marks.
    • Draining goes through what main has, so on main the owner sets the line and drives the park's moves: TEX_PARK=2 (moves the least-used card copies to PC memory, emptiest block first, and back when there is room) and DEMOTE (two levels fewer for long-unused textures). TEX_PARK=2 works without the texture-use marks. DEMOTE works without them too, but then keeps textures shaders pick by index. The marks cost about 10 ms a frame on an RTX 3090 at 1440p (62.8 against 52.1 ms, play.rs), so victory play has them off. Not #4581 as it was: it needs the marks.
  • Step 2. Render-target copies under the same line. On main, render targets are still made with no room test; the texture queue keeps room for them instead (targets_room_kept, up to 2.5 GiB on a budget of 8 GiB or less). Unchanged by the rework.
    • #2361's reclaim is on (every 5 s, not tied to the budget).
    • The slot-pinned path of #2361 still frees nothing. The slot is made null through retire_resource, which keeps a COM reference until running lists finish, and the same call then demands references(&host.texture) == 1 (resource.rs:5027; descriptor/host.rs:5248). That is bug 1 of #4737. Two of #4737's other fixes are partly on main.
    • Shared render targets (ALIAS_TARGETS=2, about 0.8 GB) were on in the test build and are off again on main after testers saw streaks and halos (c7f736c06, maintainer's post). This class has no other lever on main.
    • Idle copies a command list or slot still holds: still the open part (347 MB of 1,523 MB on the old main's defaults).
  • Steps 3 and 4. Release and pack by block.
    • #4582's first part is on main and on by default (COMPACT_SPARSE, merge 8dd9dad2a). It acts only when DXGI use is over the budget or PC commit is short, and our 8 GB run with the park never went over the budget, so that trigger never fired.
    • #4582's whole-block rule (COMPACT_WHOLE) is not on main. TEX_PARK=2 already picks the emptiest block first.
    • #4581's pressure mode needs SAMPLED_MARKS=1, which victory play now sets to 0, so as written it would do nothing there.
    • Both were closed today with a request to rewrite them on the new main. Whether to do that is @⁠mcozcan's call.
    • Reuse a released piece only after the last submission that used it has finished (was #4714). Main rests a piece 2.5 s instead.
  • Step 5. Degrade, never refuse. Done in victory play by the park (a whole copy in PC memory, never small, never gray). Still open on the script launcher's tiled path on 8 GB, where a refused texture shows gray for about 4 s.
  • Step 6. Fewer levels for cold textures. VICTORY_DEMOTE=1 exists and is off; test it before building anything. TEXTURE_QUALITY is not this step: it cuts levels from large textures for the whole run, whether used or not, and does nothing under tiled levels.

Our 8 GB port (warpGTAIV/VIctory-8GB's policy, ported on our fork). Mostly not on main: 64 MiB texture blocks only (no 16 MiB), no 1 GiB card windows below an 8,192 MiB budget, no budget/3 texture line, no buffers-first rule. Its textures-outside-blocks mode works against the park, which only places pool textures. Its loading-crash fix is superseded by upstream's stricter one (console_insn.rs). If any of it goes upstream, it goes as fresh single PRs on main.

Related work. These steps build on what is merged (#4005, slot eviction, #2361, #1491, the park), not replace it.

  • Open: #2910 (@⁠Remorce; its ledger is on main as cardledger.rs), #4340 (idle sweep and the dynamic reserve), #1968 and #1562 (block size), #4603 (keep the shown texture; KEEP_SHOWN=2 is on in victory play), #4713 (early-Z with sampled marks).
  • Closed today without merge, with a request to rewrite on the new main: #4745 (ours, step 1a), #4737 (step 2), #4581 and #4582 (steps 3-4), #4714 (piece reuse), #4738 (spare and buffer blocks), #4433 (slot eviction backoff), #4464 (host-written records; an earlier version of its first commit is on main), #4289 (the commit floor; already on main through merge b0335dff8), #3754 (free space counted as room, ROOM_BY_BLOCKS; step 1d's figure settles it), #3828 (pool bounds), #4205 (the PC-memory line). What each still means for this plan is in our comment.
  • Discussion #4774 (Remorce): a tested collection of memory PRs and switches.
  • Discussion #4987: feedback on the rework's test build.

Spec dependence

  • Likely general: one figure and one line for every class, and the same sum for admitting and draining, should help any card whose use reaches its budget.
  • May depend on our specs: every number above is from one RTX 2070 SUPER 8 GB (Turing), driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation.
  • Untested: AMD, 12-16 GB cards on the new main, ray tracing, the script launcher's path on the new main.

Are you working on a fix?

Yes. Next on our side, on main and our 8 GB card, each run naming its launch path (victory play and scripts/play-nvidia.ps1):

  1. Main as it is, both paths, to replace the test-build numbers above.
  2. The new 1a PR, with the owner off, reading only, and acting (once 1b-1d are ported to main).

If someone is already on one of the steps, please say so here so we don't duplicate it. Runs on other 8 GB cards are very welcome.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-30 20:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462) ### What changed in v12 The maintainer's texture and video-memory rework is on main (merge 415f3d854; main at b97efa767 when this was written). This version re-reads the plan against it. - **Problem** restated on the new main. What the rework fixed on our 8 GB card is credited first. - **Two launch paths** on 8 GB cards are named, because they now behave differently. - **Step 1** split into 1a-1d and rewritten: the owner works with the park, not instead of it. - **Steps 2-6** updated to what main has now. Several PRs this plan pointed at were closed today with a request to rewrite them on the new main; their state is in "Related work". - **New:** our 8 GB port and what is left of it on main. - **Next measurements** replace "Are you working on a fix?"'s old list. ### What you would like One owner for the whole card budget, so a card near its memory budget has one figure for "in use" and one line to keep under. We measured on 8 GB cards. 12 GB cards report memory pressure too (#3200, Series X profile: 10.9 of 12 GB in use with heavy stutter, with DLSS frame generation on; #3197: a crash report titled "exceeding 12GB VRAM", no figures given). Ray tracing, frame generation and higher resolutions may reach the budget sooner on any card (not measured). I'm proposing to build it in small steps, each behind its own switch and each its own PR. The aim of this issue is to coordinate, so memory PRs point the same way. Where main or an open PR already does a step, the step is to test that, not to write our own. I update this post as measurements come in. **What the rework fixed on our 8 GB card.** Upstream's test build v2026.12.01.01-test, `victory play`, one 28-minute session ([our post on #4987](https://github.com/trustno1-coder/VIctory-NVIDIA/discussions/4986#discussioncomment-20060114)), against one 31-minute session of the old main's memory defaults on our fork's build. Not like for like: a different exe, and the test build started with an empty pipeline cache. - The card never went over its budget: 0 % of 916 memory lines, at least 501 MB under. Before: over in 10 % of 1,097 lines, by up to 314 MB. - First-upload refusals fell from 20.3 million to 45,000 (20,346,515 to 45,324). - Textures with no card room are now made whole in PC memory ("parked", `VICTORY_TEX_PARK=1`) instead of being held behind a gray stand-in. At the end 1,290 MB of textures were parked. - What it costs: card texture blocks stopped at 46 (2,944 MB) three minutes in and stayed there. 79,859 card blocks were refused over 36 park periods, all while the card was under its budget. The texture queue's line (80 % of the budget with frame generation, 5.4-5.6 GB) said "no room" in all 288 of its lines in the world. **Why one owner is still needed (our reading of main).** There is still no single owner. - About 15 separate lines decide card room: the texture queue (80/86 % or B − max(768 MiB, B/20)), first uploads (#4005's B − 512 MiB and two more bounds), buffer copies (97 % or the queue line), windows (80 %), buffers made ahead (70 %, 95 % in the script launcher), slot eviction (85 %), spare blocks (85 %), the UAV pool (88/95 %), the park target, the render-target reserve and more. - Each reads DXGI itself. `Host::video_memory` asks DXGI twice (local and shared) on every call, with no cache. It has 45 call sites in 22 files. - Each measures "use" differently. The queue weighs DXGI use minus free space in texture blocks plus the room kept for buffers and render targets. Buffer copies, the park and compaction weigh raw DXGI use. So two parts of the code can disagree about whether the card is full. - `cardledger.rs` now counts every card allocation by kind, frees included. Its header says "It only counts and logs; nothing is decided from it", and it is off by default (`VICTORY_CARD_LEDGER=1`). **Two launch paths on cards with a budget of 8 GiB or less.** They no longer behave alike: - `victory play` (the menu launcher): the park is on, tiled levels are off (`LEVELS_ON_DEMAND=0`). A texture with no room is parked whole. - `scripts/play-nvidia.ps1` (the script launcher): `LEVELS_ON_DEMAND=auto` turns tiled levels on at this budget. That switches off the park, `SMALL_WHEN_FULL` and `TEXTURE_QUALITY` for those textures. A refused texture is held about 4 s behind a gray stand-in and asked again, as before the rework. #4005's 512 MB cap still refuses there, and its log line still calls it "refused by an explicit byte limit". Every result below says which path it used. **Earlier numbers (old main, our settings).** Our 28-minute table in v11 was taken with our launcher's memory settings, not main's (`POOL_SMALL=0`, `SLOT_EVICT=0`, `TEXTURE_KEEP_FREE_MB=0`, `ROOM_BY_BLOCKS=1`, `CARD_ROOM_FOR_TARGETS_MB=1280`). On the old main's defaults the card went over its budget at about 3 minutes, in 10 % of readings, by at most 314 MB ([comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463)). @⁠CuteBooty's RTX 3070 8 GB stayed under its budget, but the margin fell from 869 MB to 22 MB over a 28-minute mission ([comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463)). Neither is on the new main. **What others do** (re-checked 2026-12-01; links in our comment of that date). One count of what is held, with one line below the OS budget: Dawn caps at 95 % of the budget, Unreal's DX12 back end takes 90 % (forum quotes of its source). D3D12MA and VMA estimate use between DXGI readings from what they made and freed, and read again about once a frame (D3D12MA also after 30 allocations or frees). Empty heaps are freed with one spare kept (D3D12MA, DXVK). Over budget, Unreal lowers texture detail one level at a time, least recently seen first, and DXVK falls back to system memory. The rework's park is the DXVK answer, and its `DEMOTE` is the Unreal one. **Proposed steps** (revised for v12). A ticked item exists on main and was checked in the code; each item says where. - **Step 0. Count first.** - [x] `cardledger.rs` on main: per-kind card bytes, frees counted (`VICTORY_CARD_LEDGER=1`, off). This was #2910's ledger. Step 1 would make it the owner's ledger. - [x] Our per-block census: our fork only, a diagnostic for measuring here. - **Step 1. One owner that works with the park, not instead of it.** It does not replace the park, `DEMOTE` or slot eviction. It gives them one figure and one line. - [ ] **1a. One shared reading.** A new PR replacing #4745 (closed today, to be rewritten on the new main), written on main's `video_memory`. It folds in @⁠andrewpozdnakov7-jpg's race fix and his follow-up [820c696f](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/820c696f903cd3904dd32c647074ba568d2e3044), with his authorship. Off by default. - [ ] **1b. One line T from the card's own budget.** Main's park target now does this: nine tenths of the budget, of the player's limit where that is lower (b97efa767; it was a fixed 9,600 MB, [maintainer's post](https://github.com/trustno1-coder/VIctory-NVIDIA/discussions/4986#discussioncomment-20061087)). T should be that same figure, not a second one. Our earlier T (B − max(512 MiB, B/16), about 93 % on 8 GB) gives way to it. - [ ] **1c. Fresh readings.** Mostly moot on main: the texture pass reads DXGI again every 32 MiB uploaded, and the park takes 64 MiB off its headroom per card block made between readings. What is left is counting frees, which the ledger already does. - [ ] **1d. Every class asks the owner, and the owner drains on the same figure it admits on.** That figure is the sum the texture queue and slot eviction already weigh: DXGI use, minus free space in texture blocks, plus the room kept for buffers and render targets. The park today admits on that sum but moves textures on raw DXGI use against its target. We hit the same split in our own owner on the old main: it refused textures about 350 MB under its line, because admission counted the kept room and the drain didn't. - **Same-sum drain, measured** (our fork, old source, 8 GB, one session, 2026-12-01). The drain was on, at 6,127 MB against T 6,123 MB, when we looked at 18:47:10Z, and stayed on to the end of the log. Refusals had begun at 18:45:54Z, and the drain had switched on and off before that. In the 41 s after 18:47:10Z, slot eviction (with `SAMPLED_EVICT=pressure`) let go 677 more textures, but only 49 MB, and card use stayed at 5,840-5,873 MB. No idle render-target copy was free to go: about 100 were idle (280-400 MB), all held by a list or a slot. Textures stayed refused (118,000-187,000 refused asks per line at first, 9,000-94,000 in the last three lines), and the white stand-ins stayed. So one line and a same-sum drain are needed but not enough: the owner also needs a drain that moves whole textures, including ones shaders pick by index, without the use marks. - [ ] Draining goes through what main has, so on main the owner sets the line and drives the park's moves: `TEX_PARK=2` (moves the least-used card copies to PC memory, emptiest block first, and back when there is room) and `DEMOTE` (two levels fewer for long-unused textures). `TEX_PARK=2` works without the texture-use marks. `DEMOTE` works without them too, but then keeps textures shaders pick by index. The marks cost about 10 ms a frame on an RTX 3090 at 1440p (62.8 against 52.1 ms, play.rs), so `victory play` has them off. Not #4581 as it was: it needs the marks. - **Step 2. Render-target copies under the same line.** On main, render targets are still made with no room test; the texture queue keeps room for them instead (`targets_room_kept`, up to 2.5 GiB on a budget of 8 GiB or less). Unchanged by the rework. - [x] #2361's reclaim is on (every 5 s, not tied to the budget). - [ ] The slot-pinned path of #2361 still frees nothing. The slot is made null through `retire_resource`, which keeps a COM reference until running lists finish, and the same call then demands `references(&host.texture) == 1` (resource.rs:5027; descriptor/host.rs:5248). That is bug 1 of #4737. Two of #4737's other fixes are partly on main. - [ ] Shared render targets (`ALIAS_TARGETS=2`, about 0.8 GB) were on in the test build and are off again on main after testers saw streaks and halos (c7f736c06, [maintainer's post](https://github.com/trustno1-coder/VIctory-NVIDIA/discussions/4986#discussioncomment-20061091)). This class has no other lever on main. - [ ] Idle copies a command list or slot still holds: still the open part (347 MB of 1,523 MB on the old main's defaults). - **Steps 3 and 4. Release and pack by block.** - [x] #4582's first part is on main and on by default (`COMPACT_SPARSE`, merge 8dd9dad2a). It acts only when DXGI use is over the budget or PC commit is short, and our 8 GB run with the park never went over the budget, so that trigger never fired. - [ ] #4582's whole-block rule (`COMPACT_WHOLE`) is not on main. `TEX_PARK=2` already picks the emptiest block first. - [ ] #4581's pressure mode needs `SAMPLED_MARKS=1`, which `victory play` now sets to 0, so as written it would do nothing there. - Both were closed today with a request to rewrite them on the new main. Whether to do that is @⁠mcozcan's call. - [ ] Reuse a released piece only after the last submission that used it has finished (was #4714). Main rests a piece 2.5 s instead. - **Step 5. Degrade, never refuse.** Done in `victory play` by the park (a whole copy in PC memory, never small, never gray). Still open on the script launcher's tiled path on 8 GB, where a refused texture shows gray for about 4 s. - **Step 6. Fewer levels for cold textures.** `VICTORY_DEMOTE=1` exists and is off; test it before building anything. `TEXTURE_QUALITY` is not this step: it cuts levels from large textures for the whole run, whether used or not, and does nothing under tiled levels. **Our 8 GB port** (warpGTAIV/VIctory-8GB's policy, ported on our fork). Mostly not on main: 64 MiB texture blocks only (no 16 MiB), no 1 GiB card windows below an 8,192 MiB budget, no budget/3 texture line, no buffers-first rule. Its textures-outside-blocks mode works against the park, which only places pool textures. Its loading-crash fix is superseded by upstream's stricter one (console_insn.rs). If any of it goes upstream, it goes as fresh single PRs on main. **Related work.** These steps build on what is merged (#4005, slot eviction, #2361, #1491, the park), not replace it. - Open: #2910 (@⁠Remorce; its ledger is on main as `cardledger.rs`), #4340 (idle sweep and the dynamic reserve), #1968 and #1562 (block size), #4603 (keep the shown texture; `KEEP_SHOWN=2` is on in `victory play`), #4713 (early-Z with sampled marks). - Closed today without merge, with a request to rewrite on the new main: #4745 (ours, step 1a), #4737 (step 2), #4581 and #4582 (steps 3-4), #4714 (piece reuse), #4738 (spare and buffer blocks), #4433 (slot eviction backoff), #4464 (host-written records; an earlier version of its first commit is on main), #4289 (the commit floor; already on main through merge b0335dff8), #3754 (free space counted as room, `ROOM_BY_BLOCKS`; step 1d's figure settles it), #3828 (pool bounds), #4205 (the PC-memory line). What each still means for this plan is in [our comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463). - Discussion #4774 (Remorce): a tested collection of memory PRs and switches. - Discussion #4987: feedback on the rework's test build. **Spec dependence** - Likely general: one figure and one line for every class, and the same sum for admitting and draining, should help any card whose use reaches its budget. - May depend on our specs: every number above is from one RTX 2070 SUPER 8 GB (Turing), driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation. - Untested: AMD, 12-16 GB cards on the new main, ray tracing, the script launcher's path on the new main. ### Are you working on a fix? Yes. Next on our side, on main and our 8 GB card, each run naming its launch path (`victory play` and `scripts/play-nvidia.ps1`): 1. Main as it is, both paths, to replace the test-build numbers above. 2. The new 1a PR, with the owner off, reading only, and acting (once 1b-1d are ported to main). If someone is already on one of the steps, please say so here so we don't duplicate it. Runs on other 8 GB cards are very welcome. Drafted with AI assistance (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 20:41:23 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 20:36 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 20:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7291197364) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠Remorce on GitHub · 2026-11-30 21:13 UTC · original

Added the block detail to #2910's line: #2910

**@⁠Remorce** on GitHub · 2026-11-30 21:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7292104743) Added the block detail to #2910's line: https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/2910
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-30 21:18 UTC · original

Thanks @⁠Remorce, that covers what I offered. The steps here will read from #2910's card memory by owner: line instead of a second counter. Our own counter stays on our fork as a local diagnostic.

For the bot: this is an enhancement, not a crash, so there is no crash log. Below are the play-log lines behind the table in the first post, from the same session:

  • the four card ledger lines the table rows come from, each with the block histogram just before it;
  • the last ledger and histogram lines (the "about 0.9 GB over" and "22 of 64 blocks" figures);
  • the last "made from their small levels" line;
  • the launch switches and the Streamline line.

Removed: colour codes, file paths and a few header tokens, our counter's broken bury-delay gauge, and the small-levels line after 260 characters. The ledger lines come from our fork's counter (VICTORY_CARD_LEDGER), not from main.

Setup as in the first post: RTX 2070 SUPER 8 GB, driver 621.40, Windows 11, Series S, DLSS Performance, FSR 3 frame generation x2.

Play log excerpt (13 lines)
console=series-s build=release VICTORY_ALLOCATOR_TRIM=1 VICTORY_AMBIENT=1 VICTORY_AMBIENT_AIR=1.5 VICTORY_AMBIENT_LEAN=7 VICTORY_AMBIENT_SPECULAR=1 VICTORY_BUDGET_PACK=1 VICTORY_BUFFER_COPY_IDLE_S=30 VICTORY_BUFFERS_AHEAD=512 VICTORY_BVH_MISS=1 VICTORY_CARD_BREAKDOWN=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_LEDGER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280 VICTORY_CARD_STEPS=2 VICTORY_CLOSE_LEAN=2 VICTORY_COMPILE_MEMORY=0 VICTORY_DEAD_RT_SMALL_POOL=1 VICTORY_DLSS=1 VICTORY_DLSS_MODE=performance VICTORY_DLSS_PLANES_ORDER=1 VICTORY_DLSS_PRESET=k VICTORY_DOF=0 VICTORY_EARLY_DEPTH=1 VICTORY_FIRST_UPLOAD_BUDGET_RULE=1 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_FRAMEGEN_ROOM_RESERVE=1 VICTORY_FRAMEGEN_X=2 VICTORY_FSR_FG_SNAPSHOT=1 VICTORY_FSR_FRAMEGEN=1 VICTORY_FSR_PACING=hybrid,fence VICTORY_HEAP_PENDING_FREE=1 VICTORY_HEAP_SYNC_AT_SUBMIT=1 VICTORY_HEAP_SYNC_FIRST=1 VICTORY_HELPER_PRIORITY=1 VICTORY_HOST_TEXTURE_SWEEP=0 VICTORY_INDIRECT_BATCH=2 VICTORY_INDIRECT_WINDOW=1 VICTORY_JOIN_COPIES=1 VICTORY_JOIN_PARTS=8 VICTORY_KEY_STICK_MENU=0.4 VICTORY_LAND_BATCH=1 VICTORY_LEAK_FIXES=1 VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298 VICTORY_LENS_FLARE=0 VICTORY_LEVELS_ON_DEMAND=0 VICTORY_LIMITED_HOST_POOLS=1 VICTORY_MAP_THREADS=1 VICTORY_MENU_ARGS=-Exe VICTORY_MENU_CONSOLE=series-s VICTORY_MENU_DLSS=performance VICTORY_MENU_FG_TYPE=fsr VICTORY_MENU_FPS=1000 VICTORY_MENU_FRAMEGEN=2 VICTORY_MENU_RES=1440 VICTORY_MENU_RETIRE=0 VICTORY_MNK=1 VICTORY_MNK_NATIVE_BINDINGS=1 VICTORY_MOUSE_CAPTURE=1 VICTORY_MOUSE_WARP=1 VICTORY_MOVIE_GATE=1 VICTORY_NAN_SCRUB=1 VICTORY_OOM_PRESSURE_LOG=1 VICTORY_PACK_HASHES=1 VICTORY_PASSES_HOT=1 VICTORY_PIPELINE_BOOK=1 VICTORY_PIPELINE_LOWEST=0 VICTORY_PIPELINE_SLOW=0 VICTORY_PIPELINE_WAIT_ALL=0 VICTORY_PIPELINE_WORKERS=4 VICTORY_POOL_SMALL=0 VICTORY_PRELUDE_UPLOADS=1 VICTORY_PROCESS_MEMORY=0 VICTORY_PROMPTS=keys VICTORY_PROMPTS_FROM_BINDINGS=1 VICTORY_PROMPTS_WITH_BINDINGS=1 VICTORY_QUEUE_HOST_TEXTURES=0 VICTORY_QUEUE_POST=1 VICTORY_READ_BACK_LOCK_SHORT=1 VICTORY_REFRESH_LONGEST=1 VICTORY_RELAY_COPY=1 VICTORY_REMAP_COMPACT=0 VICTORY_RIPE_BLOCKS=0 VICTORY_ROOM_BY_BLOCKS=1 VICTORY_SAMPLED_MARKS=1 VICTORY_SHARPEN=0.5 VICTORY_SHARPEN_HDR=0 VICTORY_SHOW_AFTER=1 VICTORY_SHOW_NEW_LATER=1 VICTORY_SKIP_BINK=0 VICTORY_SLOT_EVICT=0 VICTORY_SOFT_VIEWS=copies VICTORY_SPANS_QUICK=1 VICTORY_SPARE_LOW_WATER=1 VICTORY_STATE_SANITISE=1 VICTORY_SWEEP_BACKGROUND=1 VICTORY_SWEEP_CAPPED=1 VICTORY_SWEEP_HAS_MADE=1 VICTORY_SYNC_FINE=1 VICTORY_SYNC_IN_PLACE=1 VICTORY_TABLED_REREAD=1 VICTORY_TARGETS_IDLE_PRIORITY=1 VICTORY_TARGETS_REUSED_DROP=1 VICTORY_TEXBACK_SAME=1 VICTORY_TEXSPK_PASS_MS=8 VICTORY_TEXTURE_CATCHUP=0 VICTORY_TEXTURE_KEEP_FREE_MB=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_TEXTURE_POOL=1 VICTORY_TEXTURE_ROOM_PERCENT=80 VICTORY_TEXTURE_STAGE_MS=32 VICTORY_TEXTURE_TURN_SPREAD=1 VICTORY_THIN=1 VICTORY_TITLE_FPS=off VICTORY_UPLOAD_AHEAD=1 VICTORY_UPLOAD_EXACT=1 VICTORY_UPLOAD_POOL_MB=128 VICTORY_VIGNETTE=0 VICTORY_WATER_LIGHT=0 VICTORY_WAVE_FOLDED=1 VICTORY_WC_NO_BACK=1 VICTORY_WC_NO_BACK_MIN_KB=1024 VICTORY_WHEEL_HOLD=1 VICTORY_WIDE_BACK=1 
2026-11-30T20:01:02.942551Z  INFO victory_gpu::streamline: Streamline: DLSS Super Resolution is supported on this GPU requirements="OS 10.0.26320 (needs 10.0.0), driver 621.40.0 (needs 512.15.0)"
2026-11-30T20:05:01.491863Z  INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 3712 (free 300, resting 38), title textures own 0, targets 1007, twins 131, buffer copies 983, alias chunks 0, scratch 107 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6049; DXGI in use 6651 of budget 7026; ledger - DXGI -601
2026-11-30T20:04:56.186536Z  INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 58 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 1 (63 MB free), 25-50 % 0 (0 MB free), 50-75 % 7 (155 MB free), 75-99 % 8 (89 MB free), 100 % 42 (0 MB free)
2026-11-30T20:10:05.249053Z  INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 3968 (free 738, resting 0), title textures own 0, targets 1314, twins 179, buffer copies 980, alias chunks 0, scratch 121 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6671; DXGI in use 7413 of budget 6945; ledger - DXGI -742
2026-11-30T20:09:19.534490Z  INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 62 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 1 (49 MB free), 25-50 % 3 (100 MB free), 50-75 % 18 (411 MB free), 75-99 % 33 (178 MB free), 100 % 7 (0 MB free)
2026-11-30T20:19:27.751503Z  INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4032 (free 875, resting 6), title textures own 0, targets 1499, twins 200, buffer copies 975, alias chunks 0, scratch 133 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6947; DXGI in use 7770 of budget 7054; ledger - DXGI -822
2026-11-30T20:18:59.683327Z  INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 63 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (112 MB free), 25-50 % 5 (189 MB free), 50-75 % 13 (335 MB free), 75-99 % 2 (13 MB free), 100 % 41 (0 MB free)
2026-11-30T20:25:05.856516Z  INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4096 (free 812, resting 0), title textures own 0, targets 1501, twins 211, buffer copies 974, alias chunks 0, scratch 132 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 7024; DXGI in use 7871 of budget 7054; ledger - DXGI -847
2026-11-30T20:24:49.222576Z  INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 64 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (102 MB free), 25-50 % 10 (430 MB free), 50-75 % 7 (210 MB free), 75-99 % 1 (4 MB free), 100 % 44 (0 MB free)
2026-11-30T20:29:02.208047Z  INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4096 (free 869, resting 52), title textures own 0, targets 1534, twins 226, buffer copies 973, alias chunks 0, scratch 134 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 7072; DXGI in use 7926 of budget 7007; ledger - DXGI -854
2026-11-30T20:28:35.234975Z  INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 64 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (107 MB free), 25-50 % 2 (69 MB free), 50-75 % 22 (545 MB free), 75-99 % 10 (121 MB free), 100 % 28 (0 MB free)
2026-11-30T20:29:02.221797Z  INFO victory_gpu::host: textures made from their small levels for want of room (VICTORY_SMALL_WHEN_FULL), since the start: 106402, grown to their levels since 106402, gone before they grew 0; waiting to grow now 0; not made small: 

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-30 21:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7292215689) Thanks @⁠Remorce, that covers what I offered. The steps here will read from #2910's `card memory by owner:` line instead of a second counter. Our own counter stays on our fork as a local diagnostic. For the bot: this is an enhancement, not a crash, so there is no crash log. Below are the play-log lines behind the table in the first post, from the same session: - the four `card ledger` lines the table rows come from, each with the block histogram just before it; - the last ledger and histogram lines (the "about 0.9 GB over" and "22 of 64 blocks" figures); - the last "made from their small levels" line; - the launch switches and the Streamline line. Removed: colour codes, file paths and a few header tokens, our counter's broken bury-delay gauge, and the small-levels line after 260 characters. The ledger lines come from our fork's counter (`VICTORY_CARD_LEDGER`), not from main. Setup as in the first post: RTX 2070 SUPER 8 GB, driver 621.40, Windows 11, Series S, DLSS Performance, FSR 3 frame generation x2. <details><summary>Play log excerpt (13 lines)</summary> ``` console=series-s build=release VICTORY_ALLOCATOR_TRIM=1 VICTORY_AMBIENT=1 VICTORY_AMBIENT_AIR=1.5 VICTORY_AMBIENT_LEAN=7 VICTORY_AMBIENT_SPECULAR=1 VICTORY_BUDGET_PACK=1 VICTORY_BUFFER_COPY_IDLE_S=30 VICTORY_BUFFERS_AHEAD=512 VICTORY_BVH_MISS=1 VICTORY_CARD_BREAKDOWN=1 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_LEDGER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280 VICTORY_CARD_STEPS=2 VICTORY_CLOSE_LEAN=2 VICTORY_COMPILE_MEMORY=0 VICTORY_DEAD_RT_SMALL_POOL=1 VICTORY_DLSS=1 VICTORY_DLSS_MODE=performance VICTORY_DLSS_PLANES_ORDER=1 VICTORY_DLSS_PRESET=k VICTORY_DOF=0 VICTORY_EARLY_DEPTH=1 VICTORY_FIRST_UPLOAD_BUDGET_RULE=1 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_FRAMEGEN_ROOM_RESERVE=1 VICTORY_FRAMEGEN_X=2 VICTORY_FSR_FG_SNAPSHOT=1 VICTORY_FSR_FRAMEGEN=1 VICTORY_FSR_PACING=hybrid,fence VICTORY_HEAP_PENDING_FREE=1 VICTORY_HEAP_SYNC_AT_SUBMIT=1 VICTORY_HEAP_SYNC_FIRST=1 VICTORY_HELPER_PRIORITY=1 VICTORY_HOST_TEXTURE_SWEEP=0 VICTORY_INDIRECT_BATCH=2 VICTORY_INDIRECT_WINDOW=1 VICTORY_JOIN_COPIES=1 VICTORY_JOIN_PARTS=8 VICTORY_KEY_STICK_MENU=0.4 VICTORY_LAND_BATCH=1 VICTORY_LEAK_FIXES=1 VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298 VICTORY_LENS_FLARE=0 VICTORY_LEVELS_ON_DEMAND=0 VICTORY_LIMITED_HOST_POOLS=1 VICTORY_MAP_THREADS=1 VICTORY_MENU_ARGS=-Exe VICTORY_MENU_CONSOLE=series-s VICTORY_MENU_DLSS=performance VICTORY_MENU_FG_TYPE=fsr VICTORY_MENU_FPS=1000 VICTORY_MENU_FRAMEGEN=2 VICTORY_MENU_RES=1440 VICTORY_MENU_RETIRE=0 VICTORY_MNK=1 VICTORY_MNK_NATIVE_BINDINGS=1 VICTORY_MOUSE_CAPTURE=1 VICTORY_MOUSE_WARP=1 VICTORY_MOVIE_GATE=1 VICTORY_NAN_SCRUB=1 VICTORY_OOM_PRESSURE_LOG=1 VICTORY_PACK_HASHES=1 VICTORY_PASSES_HOT=1 VICTORY_PIPELINE_BOOK=1 VICTORY_PIPELINE_LOWEST=0 VICTORY_PIPELINE_SLOW=0 VICTORY_PIPELINE_WAIT_ALL=0 VICTORY_PIPELINE_WORKERS=4 VICTORY_POOL_SMALL=0 VICTORY_PRELUDE_UPLOADS=1 VICTORY_PROCESS_MEMORY=0 VICTORY_PROMPTS=keys VICTORY_PROMPTS_FROM_BINDINGS=1 VICTORY_PROMPTS_WITH_BINDINGS=1 VICTORY_QUEUE_HOST_TEXTURES=0 VICTORY_QUEUE_POST=1 VICTORY_READ_BACK_LOCK_SHORT=1 VICTORY_REFRESH_LONGEST=1 VICTORY_RELAY_COPY=1 VICTORY_REMAP_COMPACT=0 VICTORY_RIPE_BLOCKS=0 VICTORY_ROOM_BY_BLOCKS=1 VICTORY_SAMPLED_MARKS=1 VICTORY_SHARPEN=0.5 VICTORY_SHARPEN_HDR=0 VICTORY_SHOW_AFTER=1 VICTORY_SHOW_NEW_LATER=1 VICTORY_SKIP_BINK=0 VICTORY_SLOT_EVICT=0 VICTORY_SOFT_VIEWS=copies VICTORY_SPANS_QUICK=1 VICTORY_SPARE_LOW_WATER=1 VICTORY_STATE_SANITISE=1 VICTORY_SWEEP_BACKGROUND=1 VICTORY_SWEEP_CAPPED=1 VICTORY_SWEEP_HAS_MADE=1 VICTORY_SYNC_FINE=1 VICTORY_SYNC_IN_PLACE=1 VICTORY_TABLED_REREAD=1 VICTORY_TARGETS_IDLE_PRIORITY=1 VICTORY_TARGETS_REUSED_DROP=1 VICTORY_TEXBACK_SAME=1 VICTORY_TEXSPK_PASS_MS=8 VICTORY_TEXTURE_CATCHUP=0 VICTORY_TEXTURE_KEEP_FREE_MB=0 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_TEXTURE_POOL=1 VICTORY_TEXTURE_ROOM_PERCENT=80 VICTORY_TEXTURE_STAGE_MS=32 VICTORY_TEXTURE_TURN_SPREAD=1 VICTORY_THIN=1 VICTORY_TITLE_FPS=off VICTORY_UPLOAD_AHEAD=1 VICTORY_UPLOAD_EXACT=1 VICTORY_UPLOAD_POOL_MB=128 VICTORY_VIGNETTE=0 VICTORY_WATER_LIGHT=0 VICTORY_WAVE_FOLDED=1 VICTORY_WC_NO_BACK=1 VICTORY_WC_NO_BACK_MIN_KB=1024 VICTORY_WHEEL_HOLD=1 VICTORY_WIDE_BACK=1 2026-11-30T20:01:02.942551Z INFO victory_gpu::streamline: Streamline: DLSS Super Resolution is supported on this GPU requirements="OS 10.0.26320 (needs 10.0.0), driver 621.40.0 (needs 512.15.0)" 2026-11-30T20:05:01.491863Z INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 3712 (free 300, resting 38), title textures own 0, targets 1007, twins 131, buffer copies 983, alias chunks 0, scratch 107 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6049; DXGI in use 6651 of budget 7026; ledger - DXGI -601 2026-11-30T20:04:56.186536Z INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 58 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 1 (63 MB free), 25-50 % 0 (0 MB free), 50-75 % 7 (155 MB free), 75-99 % 8 (89 MB free), 100 % 42 (0 MB free) 2026-11-30T20:10:05.249053Z INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 3968 (free 738, resting 0), title textures own 0, targets 1314, twins 179, buffer copies 980, alias chunks 0, scratch 121 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6671; DXGI in use 7413 of budget 6945; ledger - DXGI -742 2026-11-30T20:09:19.534490Z INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 62 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 1 (49 MB free), 25-50 % 3 (100 MB free), 50-75 % 18 (411 MB free), 75-99 % 33 (178 MB free), 100 % 7 (0 MB free) 2026-11-30T20:19:27.751503Z INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4032 (free 875, resting 6), title textures own 0, targets 1499, twins 200, buffer copies 975, alias chunks 0, scratch 133 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 6947; DXGI in use 7770 of budget 7054; ledger - DXGI -822 2026-11-30T20:18:59.683327Z INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 63 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (112 MB free), 25-50 % 5 (189 MB free), 50-75 % 13 (335 MB free), 75-99 % 2 (13 MB free), 100 % 41 (0 MB free) 2026-11-30T20:25:05.856516Z INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4096 (free 812, resting 0), title textures own 0, targets 1501, twins 211, buffer copies 974, alias chunks 0, scratch 132 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 7024; DXGI in use 7871 of budget 7054; ledger - DXGI -847 2026-11-30T20:24:49.222576Z INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 64 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (102 MB free), 25-50 % 10 (430 MB free), 50-75 % 7 (210 MB free), 75-99 % 1 (4 MB free), 100 % 44 (0 MB free) 2026-11-30T20:29:02.208047Z INFO victory_gpu::ledger: card ledger (VICTORY_CARD_LEDGER=1, MB): texture blocks 4096 (free 869, resting 52), title textures own 0, targets 1534, twins 226, buffer copies 973, alias chunks 0, scratch 134 (idle spares 0), ahead 0, placed 0, streamline 54, descriptors 30, other 21; sum 7072; DXGI in use 7926 of budget 7007; ledger - DXGI -854 2026-11-30T20:28:35.234975Z INFO victory_gpu::ledger: card ledger blocks (VICTORY_CARD_LEDGER=1): 64 texture blocks by fill: 0 % 0 (0 MB free), 1-25 % 2 (107 MB free), 25-50 % 2 (69 MB free), 50-75 % 22 (545 MB free), 75-99 % 10 (121 MB free), 100 % 28 (0 MB free) 2026-11-30T20:29:02.221797Z INFO victory_gpu::host: textures made from their small levels for want of room (VICTORY_SMALL_WHEN_FULL), since the start: 106402, grown to their levels since 106402, gone before they grew 0; waiting to grow now 0; not made small: ``` </details> Drafted with AI assistance (Claude Code).
Author
Owner

@⁠eipastel on GitHub · 2026-11-30 21:31 UTC · original

Another 8 GB data point, in case it helps the plan: RTX 5060 8 GB (Blackwell), Ryzen 5 7600X, 32 GB RAM, Windows 11, main at c71899d9 (30/11), release, Series S, DLSS Performance, no frame generation. Prison scene from the same save, about 60 s in the world, one run per row.

setting fps DXGI in use / budget (MB)
default 16.2 7010 / 6363 (over)
VICTORY_VRAM_BUDGET_MB=5500 7.0 5881 / 5500 (over)
VICTORY_VRAM_BUDGET_MB=5000 + VICTORY_TEXTURE_ROOM_PERCENT=75 6.6 5335 / 5000 (over)
VICTORY_TEXTURE_BUDGET_MB=2000 17.6 5654 / 6472 (under)
  • Only the texture cap brought use under the budget, and it was also the fastest. Lowering the overall budget made it worse, because use still went over it.
  • In longer diag sessions without a cap, use was 8.6–9.3 GB against a ~6.9 GB budget (1.6–2.4 GB over), with another 7.0–7.8 GB in shared memory, and only 0.3–2.5 GB of the 32 GB RAM free.
  • When over the budget, card costs are uneven: the same compute pipelines went from ~0.9 ms to 5–9 ms per dispatch, and one went to 36 ms in an older run. Under the cap they stayed at ~0.9 ms.
  • With the cap on, removing shaders, dropping to DLSS Ultra Performance or a 256 MB texture budget did not change the fps: the card is no longer the limit there (the submit thread is).

Single runs per setting, so treat the fps as indicative; the over/under split was the same in every run.

**@⁠eipastel** on GitHub · 2026-11-30 21:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7292535761) Another 8 GB data point, in case it helps the plan: RTX 5060 8 GB (Blackwell), Ryzen 5 7600X, 32 GB RAM, Windows 11, `main` at `c71899d9` (30/11), release, Series S, DLSS Performance, no frame generation. Prison scene from the same save, about 60 s in the world, one run per row. | setting | fps | DXGI in use / budget (MB) | |---|---:|---| | default | 16.2 | 7010 / 6363 (over) | | `VICTORY_VRAM_BUDGET_MB=5500` | 7.0 | 5881 / 5500 (over) | | `VICTORY_VRAM_BUDGET_MB=5000` + `VICTORY_TEXTURE_ROOM_PERCENT=75` | 6.6 | 5335 / 5000 (over) | | `VICTORY_TEXTURE_BUDGET_MB=2000` | 17.6 | 5654 / 6472 (under) | - Only the texture cap brought use under the budget, and it was also the fastest. Lowering the overall budget made it worse, because use still went over it. - In longer diag sessions without a cap, use was 8.6–9.3 GB against a ~6.9 GB budget (1.6–2.4 GB over), with another 7.0–7.8 GB in shared memory, and only 0.3–2.5 GB of the 32 GB RAM free. - When over the budget, card costs are uneven: the same compute pipelines went from ~0.9 ms to 5–9 ms per dispatch, and one went to 36 ms in an older run. Under the cap they stayed at ~0.9 ms. - With the cap on, removing shaders, dropping to DLSS Ultra Performance or a 256 MB texture budget did not change the fps: the card is no longer the limit there (the submit thread is). Single runs per setting, so treat the fps as indicative; the over/under split was the same in every run.
Author
Owner

@⁠Remorce on GitHub · 2026-11-30 21:38 UTC · original

@⁠Jesper-Andersson I expanded the ledger a bit more, initially I was just going off your bullet point note and didn't pull in everything. I went and folded most of it in now, per your recommendation.

**@⁠Remorce** on GitHub · 2026-11-30 21:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7292697503) @⁠Jesper-Andersson I expanded the ledger a bit more, initially I was just going off your bullet point note and didn't pull in everything. I went and folded most of it in now, per your recommendation.
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-30 23:09 UTC · original · edited 2026-11-30 23:15 UTC

@⁠Jesper-Andersson a second 8 GB data set for the plan, from the cases your post lists as untested: Ampere instead of Turing, DLSS frame generation instead of FSR 3, and a session past 30 minutes. RTX 3070 8 GB, Ryzen 7 5800X3D, 32 GB RAM, Windows 11, Series S, 1080p, DLSS Performance. Upstream's play settings plus VICTORY_SAMPLED_EVICT=1. Normal play, not repeatable. The counts come from the existing log lines (memory in blocks, free in texture blocks, the host-copy census from #3420). There is no per-class ledger like yours, so there are no buffer-copy figures.

v2026.11.29.05, frame generation off, 65 minutes:

min DXGI in use / budget (MB) texture blocks (free inside) render-target copies
10 6956 / 7175 3520 (1472) 1484
20 7588 / 7183 3968 (1612) 1591
30 8312 / 7183 4608 (1279) 1631
40 8814 / 7183 5056 (2932) 1671
50 9056 / 7183 5248 (1792) 1690
60 9997 / 7183 6144 (2854) 1719
65 10296 / 7183 6400 (2871) 1768
  • The card went over its budget at minute 11 and nothing brought it back. It was 3.1 GB over at the end.
  • Render-target copies level off after about 30 minutes, at about 1.7 GB.
  • What keeps growing after that is the texture blocks: 4.6 to 6.4 GB, with 1.1 to 2.9 GB of it free space inside blocks. That is your step 4.

v2026.11.30.01, frame generation on (x2), VICTORY_RESIDENCY_PRIORITY=1, 28 minutes:

min DXGI in use / budget (MB) texture blocks (free inside) render-target copies
5 6192 / 7053 3008 (1469) 1112
10 6344 / 7062 2752 (1282) 1429
20 6433 / 7104 2496 (416) 1679
28 6745 / 7062 2688 (1340) 1740
  • On this release the texture blocks stayed at 2.5 to 3.0 GB, and the card stayed under budget for the whole session.
  • The class that grew steadily was render-target copies: 1.1 to 1.74 GB, about the margin that was left (317 MB under at minute 28). On this release, then, step 2 is the step that matters most for this card.
  • About half of the texture blocks were still free space inside blocks.

When the steps arrive as PRs with their switches, I can run each one on this card with frame generation on, in sessions past 30 minutes, and post the same table here.

Edit: this end note isn’t from my Claude, it’s directly from me. I’m excited about this plan, and in conjunction with the CPU work, should make this very playable on mid tier hardware. Let me know what I can do to help without getting in your way

**@⁠CuteBooty** on GitHub · 2026-11-30 23:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7294790265) · edited 2026-11-30 23:15 UTC @⁠Jesper-Andersson a second 8 GB data set for the plan, from the cases your post lists as untested: Ampere instead of Turing, DLSS frame generation instead of FSR 3, and a session past 30 minutes. RTX 3070 8 GB, Ryzen 7 5800X3D, 32 GB RAM, Windows 11, Series S, 1080p, DLSS Performance. Upstream's play settings plus `VICTORY_SAMPLED_EVICT=1`. Normal play, not repeatable. The counts come from the existing log lines (`memory in blocks`, `free in texture blocks`, the host-copy census from #3420). There is no per-class ledger like yours, so there are no buffer-copy figures. **v2026.11.29.05, frame generation off, 65 minutes:** | min | DXGI in use / budget (MB) | texture blocks (free inside) | render-target copies | |---:|---|---|---:| | 10 | 6956 / 7175 | 3520 (1472) | 1484 | | 20 | 7588 / 7183 | 3968 (1612) | 1591 | | 30 | 8312 / 7183 | 4608 (1279) | 1631 | | 40 | 8814 / 7183 | 5056 (2932) | 1671 | | 50 | 9056 / 7183 | 5248 (1792) | 1690 | | 60 | 9997 / 7183 | 6144 (2854) | 1719 | | 65 | 10296 / 7183 | 6400 (2871) | 1768 | - The card went over its budget at minute 11 and nothing brought it back. It was 3.1 GB over at the end. - Render-target copies level off after about 30 minutes, at about 1.7 GB. - What keeps growing after that is the texture blocks: 4.6 to 6.4 GB, with 1.1 to 2.9 GB of it free space inside blocks. That is your step 4. **v2026.11.30.01, frame generation on (x2), `VICTORY_RESIDENCY_PRIORITY=1`, 28 minutes:** | min | DXGI in use / budget (MB) | texture blocks (free inside) | render-target copies | |---:|---|---|---:| | 5 | 6192 / 7053 | 3008 (1469) | 1112 | | 10 | 6344 / 7062 | 2752 (1282) | 1429 | | 20 | 6433 / 7104 | 2496 (416) | 1679 | | 28 | 6745 / 7062 | 2688 (1340) | 1740 | - On this release the texture blocks stayed at 2.5 to 3.0 GB, and the card stayed under budget for the whole session. - The class that grew steadily was render-target copies: 1.1 to 1.74 GB, about the margin that was left (317 MB under at minute 28). On this release, then, step 2 is the step that matters most for this card. - About half of the texture blocks were still free space inside blocks. When the steps arrive as PRs with their switches, I can run each one on this card with frame generation on, in sessions past 30 minutes, and post the same table here. Edit: this end note isn’t from my Claude, it’s directly from me. I’m excited about this plan, and in conjunction with the CPU work, should make this very playable on mid tier hardware. Let me know what I can do to help without getting in your way
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 01:24 UTC · original · edited 2026-12-01 01:33 UTC

I've revised the step list in the post above after two more long sessions and a second round of reading. Same card and settings as in the post: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation, our fork's build on upstream v2026.11.30.02 with opt-in ports. Thanks @⁠CuteBooty, @⁠eipastel and @⁠Remorce for the data and the ledger work.

What changed in the steps

  • Step 3 now works by block. DXGI charges whole heaps, so letting a texture go only helps when it empties a block.
  • Step 2 splits render-target copies into three cases: copies a newer target has fully taken over (let go, no save), idle copies (Evict(), contents kept by the OS), and depth/MSAA/shared copies (left alone).
  • Step 5 now says "degrade, never refuse": a slot keeps real content (a hole, fewer levels, or what it showed before), never a stand-in.
  • Step 0 points at #2910's line, plus one measurement still to make: per block, what could go now and what holds it.

Why: two sessions (single sessions, not repeated; GPU clocks at default in the first, not recorded in the second)

  1. Compaction with #4582 ported (35 minutes, no texture cap):

    • The texture blocks were exactly 3968 MB in every one of the 640 ledger samples from minute 3 to the end. Free space inside them was up to 1.7 GB.
    • Over the same time the compaction let 4,299 idle textures (557 MB) go in 150 looks. No block was freed.
    • Many blocks were under #4582's limit (35 %, or 50 % while the card is over budget, as it was here; in the last block histogram about 1.0 of the 1.5 GB free was in blocks 1–25 % full, earlier ones about 0.1–0.65 GB), yet none was freed. We don't know yet what holds them; that is the per-block measurement in step 0. I'll ask @⁠mcozcan on #4582, since it's their design.
  2. VICTORY_TEXTURE_BUDGET_MB=2500 (52 minutes):

    • The cap is compared with all host textures already on the card (4,631 MB at the end), so once they passed it, first uploads past the line were refused: no log window showed any allowed, and the last window alone counted 154,114 refused by the explicit limit.
    • White and black textures were seen on screen in that session. Refused first uploads are the likely cause, not proven.
    • Card use was still 8,638 MB against a 7,080 MB budget at the end, and the texture blocks still grew from 3,072 to 4,608 MB.
    • @⁠eipastel's 5060 result (60 s in the world, no frame generation, where a 2000 MB cap kept use under budget and was fastest) is a different setup. A possible reading, untested: in a short run the textures on the card are still under the cap, and in a long one they pass it, after which the cap refuses instead of trading.

@⁠CuteBooty's two tables fit the same picture: with frame generation on, render-target copies are the class that grows (step 2). In the 65-minute session without it, the texture blocks grow with 1.1–2.9 GB free inside them (steps 3 and 4).

Next on our side

  • A step-2 test with switches we already have on our fork: letting taken-over copies go and lowering idle ones' residency priority. Before/after pairs of 25+ minutes, posted here in the same table format.
  • The per-block measurement from step 0, which decides whether step 4 needs to move live copies.
  • Nothing in steps 1–6 is built for upstream yet. If someone is already on one of them, please say so here.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 01:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7297461904) · edited 2026-12-01 01:33 UTC I've revised the step list in the post above after two more long sessions and a second round of reading. Same card and settings as in the post: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation, our fork's build on upstream v2026.11.30.02 with opt-in ports. Thanks @⁠CuteBooty, @⁠eipastel and @⁠Remorce for the data and the ledger work. **What changed in the steps** - Step 3 now works **by block**. DXGI charges whole heaps, so letting a texture go only helps when it empties a block. - Step 2 splits render-target copies into three cases: copies a newer target has fully taken over (let go, no save), idle copies (`Evict()`, contents kept by the OS), and depth/MSAA/shared copies (left alone). - Step 5 now says "degrade, never refuse": a slot keeps real content (a hole, fewer levels, or what it showed before), never a stand-in. - Step 0 points at #2910's line, plus one measurement still to make: per block, what could go now and what holds it. **Why: two sessions** (single sessions, not repeated; GPU clocks at default in the first, not recorded in the second) 1. Compaction with #4582 ported (35 minutes, no texture cap): - The texture blocks were exactly 3968 MB in every one of the 640 ledger samples from minute 3 to the end. Free space inside them was up to 1.7 GB. - Over the same time the compaction let 4,299 idle textures (557 MB) go in 150 looks. No block was freed. - Many blocks were under #4582's limit (35 %, or 50 % while the card is over budget, as it was here; in the last block histogram about 1.0 of the 1.5 GB free was in blocks 1–25 % full, earlier ones about 0.1–0.65 GB), yet none was freed. We don't know yet what holds them; that is the per-block measurement in step 0. I'll ask @⁠mcozcan on #4582, since it's their design. 2. `VICTORY_TEXTURE_BUDGET_MB=2500` (52 minutes): - The cap is compared with all host textures already on the card (4,631 MB at the end), so once they passed it, first uploads past the line were refused: no log window showed any allowed, and the last window alone counted 154,114 refused by the explicit limit. - White and black textures were seen on screen in that session. Refused first uploads are the likely cause, not proven. - Card use was still 8,638 MB against a 7,080 MB budget at the end, and the texture blocks still grew from 3,072 to 4,608 MB. - @⁠eipastel's 5060 result (60 s in the world, no frame generation, where a 2000 MB cap kept use under budget and was fastest) is a different setup. A possible reading, untested: in a short run the textures on the card are still under the cap, and in a long one they pass it, after which the cap refuses instead of trading. @⁠CuteBooty's two tables fit the same picture: with frame generation on, render-target copies are the class that grows (step 2). In the 65-minute session without it, the texture blocks grow with 1.1–2.9 GB free inside them (steps 3 and 4). **Next on our side** - A step-2 test with switches we already have on our fork: letting taken-over copies go and lowering idle ones' residency priority. Before/after pairs of 25+ minutes, posted here in the same table format. - The per-block measurement from step 0, which decides whether step 4 needs to move live copies. - Nothing in steps 1–6 is built for upstream yet. If someone is already on one of them, please say so here. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 01:36 UTC · original

@⁠CuteBooty thank you, that means a lot. Your two tables already shaped the plan: they showed that with frame generation the render-target copies are what grows, which is why step 2 is the first thing we'll test on our fork.

You're not in the way at all. Two things would help most:

  • Now, only if you'd like to and it's no hassle: a long session (30+ minutes) with the latest commit on #4582. It's @⁠mcozcan's draft and may still change, and it needs a build from source, so skip it if that's a bother. That commit logs the texture blocks actually released to Windows (TEXTURES_LET_GO). In our 35-minute run no block was freed; our port is older and lacks that counter, and the new counter should show whether compaction ever hands one back. Compaction acts when the card is over its budget or the PC is short of commit; your 65-minute run was over budget from minute 11 with 1.3–2.9 GB free inside blocks, so it's a good case. The compaction log line plus the same table would be ideal.
  • Later: if a step-2 PR goes up (render-target copies), a frame-generation session on your 3070 in the same table format. A frame-generation session past 30 minutes looks like where step 2 should show. If it goes up, I'll mention you there.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 01:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7297688266) @⁠CuteBooty thank you, that means a lot. Your two tables already shaped the plan: they showed that with frame generation the render-target copies are what grows, which is why step 2 is the first thing we'll test on our fork. You're not in the way at all. Two things would help most: - **Now, only if you'd like to and it's no hassle:** a long session (30+ minutes) with the latest commit on #4582. It's @⁠mcozcan's draft and may still change, and it needs a build from source, so skip it if that's a bother. That commit logs the texture blocks actually released to Windows (`TEXTURES_LET_GO`). In our 35-minute run no block was freed; our port is older and lacks that counter, and the new counter should show whether compaction ever hands one back. Compaction acts when the card is over its budget or the PC is short of commit; your 65-minute run was over budget from minute 11 with 1.3–2.9 GB free inside blocks, so it's a good case. The compaction log line plus the same table would be ideal. - **Later:** if a step-2 PR goes up (render-target copies), a frame-generation session on your 3070 in the same table format. A frame-generation session past 30 minutes looks like where step 2 should show. If it goes up, I'll mention you there. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 01:54 UTC · original

A correction to step 2 in the issue body (now edited to match): its first case was already on main. #2361 (@⁠nidea1, merged 2026-11-30) lets go of render-target copies that a newer target at the same address has taken over, unmapped ones, and dead ones held only by stale slots that have been idle for 10 s, aren't in a draw table and aren't marked sampled. I missed it when I revised the steps.

Our builds are on upstream v2026.11.30.02, which includes #2361, and in both sessions from my last comment the owner line "render targets and written textures" still grew, from about 1.3 GB at ~5 minutes to about 1.5–1.6 GB by ~35 minutes (the longer session peaked at 1.65 GB at ~42 minutes). So #2361 did not stop the growth here; what the growth is, that line can't say. @⁠CuteBooty's numbers in #3420 point the same way: copies taken over by a newer target were 3–6 % of the bytes, and no copy idle for 30 s was held by nothing. Their reading, not yet tested, is that most are copies the title still touches or keeps in a slot.

So step 2 is now:

  • Idle copies held by nothing: handed back with Evict() while over the target and made resident again before their next use. Built on our fork behind a default-off switch (VICTORY_TARGET_COPIES=count|evict, 5 s idle), not yet run in game. Its count line splits the copies by what holds them, so the first session shows whether this class is empty here too.
  • Copies still held by a live slot, or recently used, or in a draw table: an open design question. Shaders read slots by index, so the CPU has no point before a submission where it knows a slot's copy is needed. Ideas are welcome.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 01:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7298028564) A correction to step 2 in the issue body (now edited to match): its first case was already on main. #2361 (@⁠nidea1, merged 2026-11-30) lets go of render-target copies that a newer target at the same address has taken over, unmapped ones, and dead ones held only by stale slots that have been idle for 10 s, aren't in a draw table and aren't marked sampled. I missed it when I revised the steps. Our builds are on upstream v2026.11.30.02, which includes #2361, and in both sessions from my last comment the owner line "render targets and written textures" still grew, from about 1.3 GB at ~5 minutes to about 1.5–1.6 GB by ~35 minutes (the longer session peaked at 1.65 GB at ~42 minutes). So #2361 did not stop the growth here; what the growth is, that line can't say. @⁠CuteBooty's numbers in #3420 point the same way: copies taken over by a newer target were 3–6 % of the bytes, and no copy idle for 30 s was held by nothing. Their reading, not yet tested, is that most are copies the title still touches or keeps in a slot. So step 2 is now: - **Idle copies held by nothing:** handed back with `Evict()` while over the target and made resident again before their next use. Built on our fork behind a default-off switch (`VICTORY_TARGET_COPIES=count|evict`, 5 s idle), not yet run in game. Its `count` line splits the copies by what holds them, so the first session shows whether this class is empty here too. - **Copies still held by a live slot, or recently used, or in a draw table:** an open design question. Shaders read slots by index, so the CPU has no point before a submission where it knows a slot's copy is needed. Ideas are welcome. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠CuteBooty on GitHub · 2026-12-01 01:59 UTC · original

@⁠Jesper-Andersson thanks. One more session from tonight, in the same format, for step 2: 42 minutes of free roam (police chases through the city, open water, dense foliage, a lot of fast driving). RTX 3070 8 GB, v2026.11.30.01, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus VICTORY_SAMPLED_EVICT=1, shader cache already built.

min DXGI in use / budget (MB) texture blocks (free inside) render-target copies
5 6526 / 7250 3072 (1136) 1245
10 6568 / 7236 2944 (1459) 1346
20 6796 / 7239 2752 (758) 1715
30 6972 / 7236 2816 (537) 1758
35 7049 / 7236 2880 (1255) 1779
42 7002 / 7236 2816 (1250) 1779
  • Render-target copies grew from 1.25 to 1.78 GB, then stayed flat from minute 35. That is about where yours peaked (1.65 GB at ~42 minutes).
  • At the end the census line read: 1,080 copies, 1,779 MB; 0 of them were unused for 30 s and held by no list and no slot. So on this card, too, the class VICTORY_TARGET_COPIES=evict targets looks empty. The growth is in copies a slot or list still holds.
  • On .01 the card stayed under its budget for the whole session, except touching it (by 9 MB at most) for about 100 s around minute 32. Commit left never went below 26.8 GB. So #4582 as written would hardly ever trigger here, which matches what @⁠mcozcan saw once sampled eviction kept the card under budget.

About the #4582 session: on this PC its trigger would not fire on its own. To still see whether compaction ever hands a block back, I could run it with VICTORY_COMPACT_COMMIT_FLOOR_MB set above the commit left, so it looks every 5 s while 512 MiB or more is free inside the blocks. That tests the mechanism, not the trigger. I'm building it now on top of .01 and will post the same table, with the compaction lines, after a 30+ minute session. Tell me if forcing it would mislead.

**@⁠CuteBooty** on GitHub · 2026-12-01 01:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7298105699) @⁠Jesper-Andersson thanks. One more session from tonight, in the same format, for step 2: 42 minutes of free roam (police chases through the city, open water, dense foliage, a lot of fast driving). RTX 3070 8 GB, v2026.11.30.01, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus `VICTORY_SAMPLED_EVICT=1`, shader cache already built. | min | DXGI in use / budget (MB) | texture blocks (free inside) | render-target copies | |---:|---|---|---:| | 5 | 6526 / 7250 | 3072 (1136) | 1245 | | 10 | 6568 / 7236 | 2944 (1459) | 1346 | | 20 | 6796 / 7239 | 2752 (758) | 1715 | | 30 | 6972 / 7236 | 2816 (537) | 1758 | | 35 | 7049 / 7236 | 2880 (1255) | 1779 | | 42 | 7002 / 7236 | 2816 (1250) | 1779 | - Render-target copies grew from 1.25 to 1.78 GB, then stayed flat from minute 35. That is about where yours peaked (1.65 GB at ~42 minutes). - At the end the census line read: 1,080 copies, 1,779 MB; 0 of them were unused for 30 s and held by no list and no slot. So on this card, too, the class `VICTORY_TARGET_COPIES=evict` targets looks empty. The growth is in copies a slot or list still holds. - On .01 the card stayed under its budget for the whole session, except touching it (by 9 MB at most) for about 100 s around minute 32. Commit left never went below 26.8 GB. So #4582 as written would hardly ever trigger here, which matches what @⁠mcozcan saw once sampled eviction kept the card under budget. About the #4582 session: on this PC its trigger would not fire on its own. To still see whether compaction ever hands a block back, I could run it with `VICTORY_COMPACT_COMMIT_FLOOR_MB` set above the commit left, so it looks every 5 s while 512 MiB or more is free inside the blocks. That tests the mechanism, not the trigger. I'm building it now on top of .01 and will post the same table, with the compaction lines, after a 30+ minute session. Tell me if forcing it would mislead.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 02:05 UTC · original

@⁠CuteBooty thanks for the table. Forcing the floor is fine for what you want to see, as long as the post says it was forced (floor set above the commit left), so readers take it as a test of whether a block ever comes back, not of when #4582 would trigger. With the floor forced and your card under budget, #4582 uses its 35 % line (blocks under 35 % full); its 50 % line is only for while the card is over its budget.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 02:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7298219597) @⁠CuteBooty thanks for the table. Forcing the floor is fine for what you want to see, as long as the post says it was forced (floor set above the commit left), so readers take it as a test of whether a block ever comes back, not of when #4582 would trigger. With the floor forced and your card under budget, #4582 uses its 35 % line (blocks under 35 % full); its 50 % line is only for while the card is over its budget. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠Remorce on GitHub · 2026-12-01 02:15 UTC · original

Two PRs that bear on steps 1, 4 and 5:

  • #4289: on NVIDIA the card's own memory is mapped into the process write-combined and counts in private bytes one for one. So free space inside texture blocks costs RAM too, not only card room, and compaction (step 4) gives back commit. Here texture blocks held 300–800 MB free inside, mostly in ½–¾ full blocks.
  • #4289 also adds VICTORY_TEXTURE_COMMIT_FLOOR_MB, which lowers the texture line while the PC's commit left is under the floor. Forced on a 4070 Ti, it held the card about 1.1 GB lower and private about 0.9 GB lower. It overlaps your steps 1 and 5 (one target, back-pressure), so worth lining up with.
  • #4205: a one-line fix to the process line. Without it, console section views counted as named private bytes and hid about 10 GB of unnamed.
**@⁠Remorce** on GitHub · 2026-12-01 02:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7298415259) Two PRs that bear on steps 1, 4 and 5: - #4289: on NVIDIA the card's own memory is mapped into the process write-combined and counts in private bytes one for one. So free space inside texture blocks costs RAM too, not only card room, and compaction (step 4) gives back commit. Here texture blocks held 300–800 MB free inside, mostly in ½–¾ full blocks. - #4289 also adds `VICTORY_TEXTURE_COMMIT_FLOOR_MB`, which lowers the texture line while the PC's commit left is under the floor. Forced on a 4070 Ti, it held the card about 1.1 GB lower and private about 0.9 GB lower. It overlaps your steps 1 and 5 (one target, back-pressure), so worth lining up with. - #4205: a one-line fix to the process line. Without it, console section views counted as named private bytes and hid about 10 GB of unnamed.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 02:33 UTC · original

Results from a per-block census on our fork, for steps 3 and 4. One 24-minute session: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation (FSR's, not DLSS's), GPU clocks not recorded, our fork's diag build with #4582 ported (its compaction lines are in the log). Every ~5 s it sorts what lives in each texture block by what holds it.

  • The card was over its budget for most of the session (7,956 MB in use of 6,980 MB at the end). Texture blocks were 4,032 MB from minute ~2 to the end, with up to 1.7 GB free inside them.
  • Live textures in the blocks, median from minute 6 to the end (about 3.1 GB): held by a title descriptor slot 2.1 GB (1.9–2.5), idle and free to go by compaction's own tests 0.75 GB (0.2–1.3), written by the host GPU 69 MB, used in the last 3 s 16 MB, held by a command list about 0.
  • In every census line, no block would have emptied even if every free-to-go texture had gone. Some blocks were more than half free-to-go (up to 21 after minute 6), but none was fully free-to-go, and at most 1 of the 25–75 % full blocks was over 90 %.
  • Compaction let 6,776 textures (721 MB) go in 150 looks: 0 blocks emptied, 0 released. New pieces cut into blocks under 25 % full were near 0, so refilling isn't what keeps them alive here.
  • Render-target, depth and UAV host copies at the end: taken over 46 MB, idle for 1 s and not taken over 563 MB, live 466 MB, depth/MSAA/shared 592 MB.

What it means for the plan (one session, one card): here the blocks are kept alive by textures a slot still holds. Evicting by block (step 3) can't empty a block on its own, and step 4's first stage (let a block go only when all its residents can go) would find no block either. The work moves to the slot-held textures: releasing them (#4581's SAMPLED_EVICT=pressure aims at the index-picked part of this: textures in slots shaders pick by index that no shader has read for 1,800 frames, while the card is at 95 % of its budget or more; measured by its author on a 12 GB card, not yet tested here; the census doesn't say how much of the 2.1 GB that part is) or moving them (step 4's live moves). That fits @⁠CuteBooty's render-target finding. Next on our side: #4581 on this card.

@⁠Remorce thanks. #4289's commit floor fits as one input to step 1's single target, and with card memory counted in private bytes, step 4 would give back commit as well. #4698 (RTX 5060 Laptop 8 GB, out-of-memory crash at 6.9–7.1 GB used of a ~6.7 GB budget) is another 8 GB case for this issue.

The census takes 38 ms per pass (median), so it stays a diagnostic on our fork.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 02:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7298746522) Results from a per-block census on our fork, for steps 3 and 4. One 24-minute session: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation (FSR's, not DLSS's), GPU clocks not recorded, our fork's diag build with #4582 ported (its compaction lines are in the log). Every ~5 s it sorts what lives in each texture block by what holds it. - The card was over its budget for most of the session (7,956 MB in use of 6,980 MB at the end). Texture blocks were 4,032 MB from minute ~2 to the end, with up to 1.7 GB free inside them. - Live textures in the blocks, median from minute 6 to the end (about 3.1 GB): **held by a title descriptor slot 2.1 GB** (1.9–2.5), idle and free to go by compaction's own tests 0.75 GB (0.2–1.3), written by the host GPU 69 MB, used in the last 3 s 16 MB, held by a command list about 0. - In every census line, **no block would have emptied even if every free-to-go texture had gone**. Some blocks were more than half free-to-go (up to 21 after minute 6), but none was fully free-to-go, and at most 1 of the 25–75 % full blocks was over 90 %. - Compaction let 6,776 textures (721 MB) go in 150 looks: 0 blocks emptied, 0 released. New pieces cut into blocks under 25 % full were near 0, so refilling isn't what keeps them alive here. - Render-target, depth and UAV host copies at the end: taken over 46 MB, idle for 1 s and not taken over 563 MB, live 466 MB, depth/MSAA/shared 592 MB. **What it means for the plan** (one session, one card): here the blocks are kept alive by textures a slot still holds. Evicting by block (step 3) can't empty a block on its own, and step 4's first stage (let a block go only when all its residents can go) would find no block either. The work moves to the slot-held textures: releasing them (#4581's `SAMPLED_EVICT=pressure` aims at the index-picked part of this: textures in slots shaders pick by index that no shader has read for 1,800 frames, while the card is at 95 % of its budget or more; measured by its author on a 12 GB card, not yet tested here; the census doesn't say how much of the 2.1 GB that part is) or moving them (step 4's live moves). That fits @⁠CuteBooty's render-target finding. Next on our side: #4581 on this card. @⁠Remorce thanks. #4289's commit floor fits as one input to step 1's single target, and with card memory counted in private bytes, step 4 would give back commit as well. #4698 (RTX 5060 Laptop 8 GB, out-of-memory crash at 6.9–7.1 GB used of a ~6.7 GB budget) is another 8 GB case for this issue. The census takes 38 ms per pass (median), so it stays a diagnostic on our fork. Drafted with AI assistance (Claude Code).
github-bot changed title from memory NVIDIA: one owner for the whole card budget on 8 GB cards (measurements and a plan in small steps) to One owner for the whole card budget on 8 GB cards (measurements and a plan in small steps) 2026-12-01 02:52:54 +00:00
Author
Owner

@⁠CuteBooty on GitHub · 2026-12-01 02:50 UTC · original

@⁠Jesper-Andersson @⁠mcozcan the #4582 session, as promised. Both commits (including the counter, 09eecc874) cherry-picked onto v2026.11.30.01. RTX 3070 8 GB, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus VICTORY_SAMPLED_EVICT=1, VICTORY_POOL_STATS=1, and VICTORY_COMPACT_COMMIT_FLOOR_MB=99999 so it looked every 5 s (the card stays under budget here, so it would not trigger by itself). 34 minutes of free roam, mostly fast driving in the city. Closed normally, no driver events.

min DXGI in use / budget (MB) texture blocks (free inside) compaction let go (total MB) blocks released to Windows since the first look render-target copies
5 6648 / 7250 2944 (1406) 144 9 (576 MB) 1485
10 6601 / 7250 2816 (1271) 256 11 (704 MB) 1564
15 6595 / 7250 2752 (1062) 322 12 (768 MB) 1577
20 6639 / 7250 2752 (551) 419 12 1607
25 6735 / 7250 2752 (771) 507 12 1656
30 6760 / 7250 2752 (59) 545 12 1648
34 6989 / 7250 2944 (827) 654 12 1698
  • In 34 minutes it looked 270 times and let go 5,514 idle textures (654 MB), mostly 0-13 MB a look.
  • The counter shows 12 blocks (768 MB) released to Windows. Nine came in the first ~4 minutes, and the last at ~12 minutes. Nothing more in the last 22 minutes, although compaction let go another ~330 MB over that time. The counter also includes blocks the sweep emptied, so 12 is an upper bound.
  • The texture blocks themselves never shrank: 2.75-2.94 GB, 43-46 blocks, all session. Released blocks were replaced by new ones.
  • POOL_STATS showed blocks under a quarter full all session: 17 at minute 7, 14 at 14, 6 at 21, 10 at 29. So the sparse blocks are there, but what is in them is not idle or not unheld. That is the per-block "what holds it" question from step 0.
  • No cost I could see: median frame 53.4 ms and 9 frames over 100 ms a minute, against 53.4 ms and 10 in last night's 42-minute session without it.

So on this card compaction gives back a few blocks early on, then nothing. The sparse blocks that stay are held.

**@⁠CuteBooty** on GitHub · 2026-12-01 02:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299053880) @⁠Jesper-Andersson @⁠mcozcan the #4582 session, as promised. Both commits (including the counter, 09eecc874) cherry-picked onto v2026.11.30.01. RTX 3070 8 GB, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus `VICTORY_SAMPLED_EVICT=1`, `VICTORY_POOL_STATS=1`, and `VICTORY_COMPACT_COMMIT_FLOOR_MB=99999` so it looked every 5 s (the card stays under budget here, so it would not trigger by itself). 34 minutes of free roam, mostly fast driving in the city. Closed normally, no driver events. | min | DXGI in use / budget (MB) | texture blocks (free inside) | compaction let go (total MB) | blocks released to Windows since the first look | render-target copies | |---:|---|---|---:|---|---:| | 5 | 6648 / 7250 | 2944 (1406) | 144 | 9 (576 MB) | 1485 | | 10 | 6601 / 7250 | 2816 (1271) | 256 | 11 (704 MB) | 1564 | | 15 | 6595 / 7250 | 2752 (1062) | 322 | 12 (768 MB) | 1577 | | 20 | 6639 / 7250 | 2752 (551) | 419 | 12 | 1607 | | 25 | 6735 / 7250 | 2752 (771) | 507 | 12 | 1656 | | 30 | 6760 / 7250 | 2752 (59) | 545 | 12 | 1648 | | 34 | 6989 / 7250 | 2944 (827) | 654 | 12 | 1698 | - In 34 minutes it looked 270 times and let go 5,514 idle textures (654 MB), mostly 0-13 MB a look. - The counter shows 12 blocks (768 MB) released to Windows. Nine came in the first ~4 minutes, and the last at ~12 minutes. Nothing more in the last 22 minutes, although compaction let go another ~330 MB over that time. The counter also includes blocks the sweep emptied, so 12 is an upper bound. - The texture blocks themselves never shrank: 2.75-2.94 GB, 43-46 blocks, all session. Released blocks were replaced by new ones. - `POOL_STATS` showed blocks under a quarter full all session: 17 at minute 7, 14 at 14, 6 at 21, 10 at 29. So the sparse blocks are there, but what is in them is not idle or not unheld. That is the per-block "what holds it" question from step 0. - No cost I could see: median frame 53.4 ms and 9 frames over 100 ms a minute, against 53.4 ms and 10 in last night's 42-minute session without it. So on this card compaction gives back a few blocks early on, then nothing. The sparse blocks that stay are held.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 02:54 UTC · original · edited 2026-12-01 02:55 UTC

A correction to my census comment above, a comparison with @⁠CuteBooty's run, and what a second round of reading changed in the steps (post edited).

Correction. In our census session slot eviction was off (VICTORY_SLOT_EVICT=0 in our launcher, off since 11-30 because of its pass cost) and VICTORY_SAMPLED_EVICT was not set. So nothing could release a texture a slot held. The 2.1 GB is what slots held, not what could not go. The census also didn't separate slots a draw table reads from slots shaders pick by index, or recently read from cold.

@⁠CuteBooty's run had both on (SLOT_EVICT=1 from upstream's play settings, plus SAMPLED_EVICT=1): 12 blocks came back in the first ~12 minutes (their counter includes blocks the sweep emptied, so 12 is an upper bound), then none for 22 minutes, while between 6 and 17 blocks under a quarter full stayed all session. That fits sparse blocks held by slots that are still read, but it doesn't say how much is cold. Next on our side: the same census with the slot class split by kind and by last read (sampled marks on, release still off, to size it first), on this card.

What changed in the steps (sources: Microsoft's residency and descriptor docs, the Titanfall 2, Horizon Zero Dawn and AMD/Avalanche memory talks, DXVK's relocation code, Xenia and Ryujinx):

  • Step 1: on our card DXGI moved the budget every 2–30 s after loading, 95 % of the moves under 100 MB (79 sessions). The dead band is sized from that.
  • Step 2: lower the residency priority of idle copies first; Evict() is documented only as allowing page-out, so its effect on DXGI's count is to be measured before anything counts on it.
  • Step 3: release rules from the talks and DXVK (age counter, a few frames' wait, ~16 MB a frame, only while the room is needed, one spare block).
  • Step 4: moving live copies is now the last resort. Shaders read the mirrored heaps by index, and D3D12 doesn't allow rewriting a descriptor a submitted list may still read, so a move needs a level of indirection on the GPU side.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 02:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299112855) · edited 2026-12-01 02:55 UTC A correction to my census comment above, a comparison with @⁠CuteBooty's run, and what a second round of reading changed in the steps (post edited). **Correction.** In our census session slot eviction was off (`VICTORY_SLOT_EVICT=0` in our launcher, off since 11-30 because of its pass cost) and `VICTORY_SAMPLED_EVICT` was not set. So nothing could release a texture a slot held. The 2.1 GB is what slots held, not what could not go. The census also didn't separate slots a draw table reads from slots shaders pick by index, or recently read from cold. **@⁠CuteBooty's run** had both on (`SLOT_EVICT=1` from upstream's play settings, plus `SAMPLED_EVICT=1`): 12 blocks came back in the first ~12 minutes (their counter includes blocks the sweep emptied, so 12 is an upper bound), then none for 22 minutes, while between 6 and 17 blocks under a quarter full stayed all session. That fits sparse blocks held by slots that are still read, but it doesn't say how much is cold. Next on our side: the same census with the slot class split by kind and by last read (sampled marks on, release still off, to size it first), on this card. **What changed in the steps** (sources: Microsoft's residency and descriptor docs, the Titanfall 2, Horizon Zero Dawn and AMD/Avalanche memory talks, DXVK's relocation code, Xenia and Ryujinx): - Step 1: on our card DXGI moved the budget every 2–30 s after loading, 95 % of the moves under 100 MB (79 sessions). The dead band is sized from that. - Step 2: lower the residency priority of idle copies first; `Evict()` is documented only as allowing page-out, so its effect on DXGI's count is to be measured before anything counts on it. - Step 3: release rules from the talks and DXVK (age counter, a few frames' wait, ~16 MB a frame, only while the room is needed, one spare block). - Step 4: moving live copies is now the last resort. Shaders read the mirrored heaps by index, and D3D12 doesn't allow rewriting a descriptor a submitted list may still read, so a move needs a level of indirection on the GPU side. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠guyansong24 on GitHub · 2026-12-01 03:00 UTC · original

One more 8 GB data point: Ampere laptop, two builds, frame generation off

RTX 4060 Laptop 8 GB (8188 MiB), Ryzen 9 7845HX, 32 GB RAM, Windows 11 22631, driver 621.40.
Series S, DLSS Performance, frame generation off, shaders and pipelines preloaded with
play --preload before each session (made=0 loaded=3886 during play, so nothing was being made
while it ran). Driving the downtown streets, not a fixed route.

Same card, two builds:

build min DXGI in use / budget (MB) texture copies (MB) how it ended
v2026.11.29.01 16 7755 / 7093 290 -> 4449 command list close 0x80070057
v2026.11.29.01 28 9281 / 7084 265 -> 5722 4-5 fps, no exit
v2026.11.29.05 40 9753 / 7087 265 -> 5892 command list close 0x80070057

The v2026.11.29.05 session, minute by minute:

min in use / budget (MB)
0 597 / 7188
3 7134 / 7025
9 7771 / 7091
18 8555 / 7132
26 9306 / 7068
37 9687 / 7127
40 9753 / 7087

Total use climbs 71-119 MB/min and texture copies alone 141-260 MB/min. Monotonic in all three
sessions, nothing brings it back down, and the budget does not move. v2026.11.29.05 is about a
40% slower drift than v2026.11.29.01 and lasts 40 minutes instead of 16-28, but the shape is the
same and it ends the same way.

Eviction on the same v2026.11.29.05 run

textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start:
0 textures (0 MB), 0 slots put back to waiting, 0 made again (0 of them within 2 s,
away 0.0 s on average), 0 given up as a draw used them meanwhile;
the last look: evicting, of 46508 idle-looking textures 0 kept as a table showed them lately
and 23440 not to be taken (a slot shaders pick by index shows them)

texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM): 49481 marked over the last
30 frames; slot eviction's last pass: of 23301 textures shown by a slot shaders pick by index,
20143 were marked by no shader within its idle time (1711 MB)

20143 of those 23301 were marked by no shader within the idle time - the case
crates/victory-gpu/src/descriptor.rs:1979 says VICTORY_SAMPLED_EVICT=1 lets go - and they were
held anyway, because it defaults to 0. 1711 MB, against a 2666 MB overshoot at the end of that
run.
That is the one number I would most like to see move in step 2 or 3.

The stop, identical on both builds

ERROR victory_gpu::host: a host command list did not close (0x80070057):
a command recorded into it was invalid

Always after the card has been 400-2600 MB over its budget. With frame generation 2x on
v2026.11.29.01 the same streets ended in host GPU device removed ... (0x887A0006) instead, which
is the 0x887a0006 (hung) case in docs/dlss.md item 11. Twice the whole machine locked up with
no TDR, no minidump and no WHEA event, and the play log simply stops mid-line.

Two questions

  1. VICTORY_TEXTURE_BUDGET_MB from @⁠eipastel's table: is that main only, or in a release?
    It is not in v2026.11.30.03 - I looked through that build's source and only
    VICTORY_TEXTURE_ROOM_PERCENT is there (default 80 with frame generation on, 86 with it off).
    The log reports the line as 90.0 % of a budget of 7089 MB, and use went to 137% of the budget,
    so on this card that line is not holding anything back. If the MB cap is what actually works,
    I would rather run the build that has it than guess at a percentage.

  2. VICTORY_SAMPLED_EVICT=1: @⁠CuteBooty's two runs (65 and 42 minutes, fast driving) show no
    deadlock, while descriptor/host.rs:4302 still records that it deadlocked an RTX 5070 Ti twice
    three minutes into a drive on 2026-11-28 - although the code now takes try_lock instead of
    waiting, which is the step that removed the mutual wait. If that is considered settled, I will
    run with it on and add the eviction counters here; if not, say so and I will leave it alone.

Play logs for all three sessions are available if you want them (the 40-minute one is 30.5 MB
uncompressed; it zips to 3.5 MB), with memory now:, texture queue's room: and
textures let go with their slots at about one line a second.

**@⁠guyansong24** on GitHub · 2026-12-01 03:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299227490) **One more 8 GB data point: Ampere laptop, two builds, frame generation off** RTX 4060 Laptop 8 GB (8188 MiB), Ryzen 9 7845HX, 32 GB RAM, Windows 11 22631, driver 621.40. Series S, DLSS Performance, **frame generation off**, shaders and pipelines preloaded with `play --preload` before each session (`made=0 loaded=3886` during play, so nothing was being made while it ran). Driving the downtown streets, not a fixed route. Same card, two builds: | build | min | DXGI in use / budget (MB) | texture copies (MB) | how it ended | |-----------------|---:|---|---:|---| | v2026.11.29.01 | 16 | 7755 / 7093 | 290 -> 4449 | command list close 0x80070057 | | v2026.11.29.01 | 28 | 9281 / 7084 | 265 -> 5722 | 4-5 fps, no exit | | v2026.11.29.05 | 40 | 9753 / 7087 | 265 -> 5892 | command list close 0x80070057 | The v2026.11.29.05 session, minute by minute: | min | in use / budget (MB) | |---:|---| | 0 | 597 / 7188 | | 3 | 7134 / 7025 | | 9 | 7771 / 7091 | | 18 | 8555 / 7132 | | 26 | 9306 / 7068 | | 37 | 9687 / 7127 | | 40 | 9753 / 7087 | Total use climbs 71-119 MB/min and texture copies alone 141-260 MB/min. Monotonic in all three sessions, nothing brings it back down, and the budget does not move. v2026.11.29.05 is about a 40% slower drift than v2026.11.29.01 and lasts 40 minutes instead of 16-28, but the shape is the same and it ends the same way. **Eviction on the same v2026.11.29.05 run** ``` textures let go with their slots under pressure (VICTORY_SLOT_EVICT), since the start: 0 textures (0 MB), 0 slots put back to waiting, 0 made again (0 of them within 2 s, away 0.0 s on average), 0 given up as a draw used them meanwhile; the last look: evicting, of 46508 idle-looking textures 0 kept as a table showed them lately and 23440 not to be taken (a slot shaders pick by index shows them) texture slots shaders sampled (VICTORY_SAMPLED_MARKS=1, VRAM): 49481 marked over the last 30 frames; slot eviction's last pass: of 23301 textures shown by a slot shaders pick by index, 20143 were marked by no shader within its idle time (1711 MB) ``` 20143 of those 23301 were marked by no shader within the idle time - the case `crates/victory-gpu/src/descriptor.rs:1979` says `VICTORY_SAMPLED_EVICT=1` lets go - and they were held anyway, because it defaults to 0. **1711 MB, against a 2666 MB overshoot at the end of that run.** That is the one number I would most like to see move in step 2 or 3. **The stop, identical on both builds** ``` ERROR victory_gpu::host: a host command list did not close (0x80070057): a command recorded into it was invalid ``` Always after the card has been 400-2600 MB over its budget. With frame generation 2x on v2026.11.29.01 the same streets ended in `host GPU device removed ... (0x887A0006)` instead, which is the `0x887a0006 (hung)` case in `docs/dlss.md` item 11. Twice the whole machine locked up with no TDR, no minidump and no WHEA event, and the play log simply stops mid-line. <!-- Failed to upload "crashes.log" --> <!-- Failed to upload "play-20261129-153026-9092-28min.zip" --> <!-- Failed to upload "play-20261130-093618-26388-40min.zip" --> **Two questions** 1. **`VICTORY_TEXTURE_BUDGET_MB`** from @⁠eipastel's table: is that main only, or in a release? It is not in v2026.11.30.03 - I looked through that build's source and only `VICTORY_TEXTURE_ROOM_PERCENT` is there (default 80 with frame generation on, 86 with it off). The log reports the line as `90.0 % of a budget of 7089 MB`, and use went to 137% of the budget, so on this card that line is not holding anything back. If the MB cap is what actually works, I would rather run the build that has it than guess at a percentage. 2. **`VICTORY_SAMPLED_EVICT=1`**: @⁠CuteBooty's two runs (65 and 42 minutes, fast driving) show no deadlock, while `descriptor/host.rs:4302` still records that it deadlocked an RTX 5070 Ti twice three minutes into a drive on 2026-11-28 - although the code now takes `try_lock` instead of waiting, which is the step that removed the mutual wait. If that is considered settled, I will run with it on and add the eviction counters here; if not, say so and I will leave it alone. Play logs for all three sessions are available if you want them (the 40-minute one is 30.5 MB uncompressed; it zips to 3.5 MB), with `memory now:`, `texture queue's room:` and `textures let go with their slots` at about one line a second.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 03:06 UTC · original

@⁠guyansong24 thanks, that's the number we were after. 20,143 of 23,301 index-picked textures unmarked within the idle time (1,711 MB) is the cold part our census couldn't separate yet. Our next session on the 2070 SUPER splits the same slot class by kind and by last read, so we can compare.

  1. VICTORY_TEXTURE_BUDGET_MB is in the v2026.11.30.03 tag: texture_budget_limit() in crates/victory-gpu/src/resource.rs, around line 2441. A caution from our 52-minute run with it at 2500 on our RTX 2070 SUPER 8 GB (Series S + DLSS Performance, in this earlier comment): the cap is compared with all host textures already on the card, so once those passed it, first uploads were refused. We saw white and black textures (refused uploads are the likely cause, not proven), and use was still 1.5 GB over the budget at the end. In our one long run it refused first uploads and did not bring use down.
  2. VICTORY_SAMPLED_EVICT=1: I can't say whether the 2026-11-28 deadlock is settled; that's for the author of the try_lock change. We haven't tested =1 on 8 GB. #4581 (open, not in a release yet, so it needs a build that includes it) adds VICTORY_SAMPLED_EVICT=pressure: it lets the same class of textures go only while the card is at 95 % of its budget or more and only after 1,800 frames unread, so it takes a colder subset of your 1,711 MB. Its author measured it on a 12 GB card, so what it frees on 8 GB isn't known yet.

Your logs and the overshoot-before-stop pattern are useful here too. Please also add them to #4693 or #3911, which track the 0x80070057 stop itself.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 03:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299333392) @⁠guyansong24 thanks, that's the number we were after. 20,143 of 23,301 index-picked textures unmarked within the idle time (1,711 MB) is the cold part our census couldn't separate yet. Our next session on the 2070 SUPER splits the same slot class by kind and by last read, so we can compare. 1. **`VICTORY_TEXTURE_BUDGET_MB`** is in the v2026.11.30.03 tag: `texture_budget_limit()` in `crates/victory-gpu/src/resource.rs`, around line 2441. A caution from our 52-minute run with it at 2500 on our RTX 2070 SUPER 8 GB (Series S + DLSS Performance, in [this earlier comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463)): the cap is compared with all host textures already on the card, so once those passed it, first uploads were refused. We saw white and black textures (refused uploads are the likely cause, not proven), and use was still 1.5 GB over the budget at the end. In our one long run it refused first uploads and did not bring use down. 2. **`VICTORY_SAMPLED_EVICT=1`**: I can't say whether the 2026-11-28 deadlock is settled; that's for the author of the `try_lock` change. We haven't tested `=1` on 8 GB. #4581 (open, not in a release yet, so it needs a build that includes it) adds `VICTORY_SAMPLED_EVICT=pressure`: it lets the same class of textures go only while the card is at 95 % of its budget or more and only after 1,800 frames unread, so it takes a colder subset of your 1,711 MB. Its author measured it on a 12 GB card, so what it frees on 8 GB isn't known yet. Your logs and the overshoot-before-stop pattern are useful here too. Please also add them to #4693 or #3911, which track the `0x80070057` stop itself. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠nidea1 on GitHub · 2026-12-01 03:14 UTC · original

@⁠Jesper-Andersson Thanks for tracking #2361 accurately under Step 2 — confirmed that #2361 only targets superseded, unmapped, and stale-slot-only dead RT copies, leaving live-slot copies as an open Step 2 design area.

To help coordinate across 8 GB work and avoid duplicate PRs, here are our active MERGEABLE memory/rendering PRs:

  • #4433 — honour slot eviction backoff on the aside path and keep fast sampled readback while evicted slots wait to wake
  • #4464 — keep placed views out of HOST_WRITTEN_AT and clear host-written ranges on remap
  • #4713 — restore early-Z on SLOT_SAMPLED-only pixel shaders and batch wave-uniform sampled marks (lowers VICTORY_SAMPLED_MARKS=1 GPU cost without disabling eviction tracking)
  • #4714 — route reused pooled textures off COPY-queue ahead onto the DIRECT aliasing barrier and fence-gate Pool::reclaim() rest (VICTORY_POOL_SMALL remains opt-in)
  • #4715 — clean up orphaned cache/cpu-mirrors/*.tmp* files on startup
  • #4716 — prune idle unreferenced exact views below EXACT_MANY in ExactStore::trim() under host memory pressure

@⁠guyansong24 On your VICTORY_SAMPLED_EVICT=1 question (comment #16), here is an 8 GB Ampere data point from our RTX 3060 Ti 8 GB (ReBAR off, driver 621.40) / 32 GB RAM system (Series S, DLSS Quality, FSR 3 FG):

  • In a 12-minute (720.7 s in-world, 16,447 frames) uncontested live soak on 7d93ee0759 with VICTORY_SAMPLED_EVICT=1 + VICTORY_WINDOW_GROW=1 + #4432/#4463/#4712..#4715 (VICTORY_POOL_SMALL=0, VICTORY_RIPE_BLOCKS=12): 0 deadlocks, 0 crashes, 0 Victory errors, HERO LEAD = 0, UPLOAD OVER HOST WRITE = 0.
  • Final VICTORY_SAMPLED_EVICT=1 counters: 36,543 nulled, 3,912 requeued (10.71%), 32,631 null at end; 0 <2 s eviction remakes after minute 3 and 0 >100 ms hitches across the final 8.7 minutes.
  • Steady-state memory (M03–M13): VRAM 6,035 / 6,862 MB (-827 MB below budget), Shared GPU RAM 5,837 MB (-2.1 GB vs baseline), PrivateBytes 21,683 MB (-2.7 GB vs baseline).

(Note this was a 12-minute soak on our combined stack rather than extended fast driving, so it adds an 8 GB stability data point alongside @⁠CuteBooty's runs rather than proving every driving path.)

**@⁠nidea1** on GitHub · 2026-12-01 03:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299490146) @⁠Jesper-Andersson Thanks for tracking #2361 accurately under Step 2 — confirmed that #2361 only targets superseded, unmapped, and stale-slot-only dead RT copies, leaving live-slot copies as an open Step 2 design area. To help coordinate across 8 GB work and avoid duplicate PRs, here are our active `MERGEABLE` memory/rendering PRs: - #4433 — honour slot eviction backoff on the aside path and keep fast sampled readback while evicted slots wait to wake - #4464 — keep placed views out of `HOST_WRITTEN_AT` and clear host-written ranges on remap - #4713 — restore early-Z on `SLOT_SAMPLED`-only pixel shaders and batch wave-uniform sampled marks (lowers `VICTORY_SAMPLED_MARKS=1` GPU cost without disabling eviction tracking) - #4714 — route reused pooled textures off COPY-queue `ahead` onto the DIRECT aliasing barrier and fence-gate `Pool::reclaim()` rest (`VICTORY_POOL_SMALL` remains opt-in) - #4715 — clean up orphaned `cache/cpu-mirrors/*.tmp*` files on startup - #4716 — prune idle unreferenced exact views below `EXACT_MANY` in `ExactStore::trim()` under host memory pressure @⁠guyansong24 On your `VICTORY_SAMPLED_EVICT=1` question (comment #16), here is an 8 GB Ampere data point from our RTX 3060 Ti 8 GB (ReBAR off, driver 621.40) / 32 GB RAM system (Series S, DLSS Quality, FSR 3 FG): - In a 12-minute (`720.7 s` in-world, `16,447` frames) uncontested live soak on `7d93ee0759` with `VICTORY_SAMPLED_EVICT=1` + `VICTORY_WINDOW_GROW=1` + `#4432`/`#4463`/`#4712..#4715` (`VICTORY_POOL_SMALL=0`, `VICTORY_RIPE_BLOCKS=12`): **0** deadlocks, **0** crashes, **0** Victory errors, `HERO LEAD = 0`, `UPLOAD OVER HOST WRITE = 0`. - Final `VICTORY_SAMPLED_EVICT=1` counters: `36,543` nulled, `3,912` requeued (`10.71%`), `32,631` null at end; **0** `<2 s` eviction remakes after minute 3 and **0** `>100 ms` hitches across the final `8.7` minutes. - Steady-state memory (M03–M13): VRAM `6,035 / 6,862 MB` (**-827 MB** below budget), Shared GPU RAM `5,837 MB` (**-2.1 GB** vs baseline), PrivateBytes `21,683 MB` (**-2.7 GB** vs baseline). (Note this was a 12-minute soak on our combined stack rather than extended fast driving, so it adds an 8 GB stability data point alongside @⁠CuteBooty's runs rather than proving every driving path.)
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 03:37 UTC · original

Results from tonight's session, for steps 0 to 4 (post edited to match). One ~28-minute session, not repeated: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation, our fork's diag build (census with the new slot split, #4581 by @⁠mcozcan ported, step 1's shared reading, step 2's copy count). SLOT_EVICT was off, so nothing released slot-held textures: the cold figures below are what could go, not what went.

Slot-held textures

  • The card was over its budget from about 2 minutes into the world to the end (7,973 MB in use of 6,892 MB at the end).
  • Slot-held textures were a median 1.9 GB, and nearly all of them were in slots shaders pick by index. Slots read through a draw's table held at most 14 MB.
  • Medians over the 47 census lines taken while over budget (one every 30 s):
cold = unread for cold, picked by index hot blocks that would empty*
3 s 1.58 GB 0.55 GB 2 (4 or more in 18 of 47 lines)
60 s 1.06 GB 0.89 GB 1 (4 or more in 4 of 47)
1,800 frames 1.11 GB 0.80 GB 1 (4 or more in 10 of 47)

* if every idle unheld texture and every cold index-picked texture went at once.

  • Hot slot bytes in blocks under half full: a median of 28–60 MB, depending on the cutoff.

So about half the slot bytes are cold, but they share blocks with hot ones. Releasing all of them would empty about one 64 MiB block.

Menus. In a few periods 40–53 blocks (2.5–3.4 GB) would have emptied, because hot bytes fell to 33–59 MB. These were times in menus (confirmed by the player): no shader reads, so everything looks cold. Releasing then would make it all again on resume, so a release rule has to ignore periods with no draws. These lines are in the medians above. Leaving out the 10 lines with menu time, the 60 s median is 0 blocks and no line reaches 4.

Step 2. At the end: 897 render-target copies, 1,628 MB. In use 590 MB, idle but held by a command list or a slot 555 MB, idle and held by nothing 0 MB, kept whole (depth, MSAA, twins, aliased, tiled) 482 MB. As on @⁠CuteBooty's 3070, the class Evict() was for is empty here, so that part is parked. The open part is the 555 MB a list or slot holds.

Step 1. The shared reading followed DXGI (worst error in any period 337 MB), but it isn't one reading per frame yet: the budget-change event fired 157,490 times in the session. Each wake-up forced a new reading. A fix (at most one extra reading per frame, 250 ms apart) is built on our fork with unit tests passing (75); it has not run in the game yet. It goes into the next session, before any PR.

What it changes in the plan. On this card, release alone frees little, because cold and hot textures are mixed in the same blocks. Steps 3 and 4 now add temperature-aware placement (recently read textures in their own blocks, so cold ones collect in blocks that can empty) before any live moves, and a release rule that ignores no-draw periods.

@⁠nidea1 thanks for the list, it saves duplicate work. Our next test build will carry three of them:

  • #4714, because whole-block release must not reuse a piece before the last submission that used it has finished;
  • #4433, because releasing cold index-picked textures (#4581) depends on slot eviction backing off as it should;
  • #4464, because stale host-written ranges pin blocks in our census.

#4713 we'll test as its own arm. With early-Z back, a texture read only by pixels that end up hidden is no longer marked. That's right for what's on screen, but it raises our cold count, and a release could then let go a texture that becomes visible on the next camera turn (gray until the next read). So we'll compare the census split with and without it, with screenshots. #4715 and #4716 aren't in this build: #4715 is outside card memory, and #4716 (RAM) we'll look at with the RAM side of this issue.

Your stack ran 827 MB under its budget with SAMPLED_EVICT=1. That's a different card and stack (3060 Ti, DLSS Quality, 12 minutes), and we haven't run release on ours yet. Our census only says that here the cold bytes sit in the same blocks as hot ones, so release alone would empty few blocks on this card. An A/B on our card with release on is next.

Spec dependence. All numbers are from one card (RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11) with Series S, DLSS Performance and FSR 3 frame generation, on our fork's diag build with several ports. Likely general: the slot split by kind, step 1's event flood, and the empty Evict() class (also seen on a 3070). May depend on our setup: how cold bytes mix within blocks, and the budget and over-budget sizes. Untested: other GPU generations, AMD, 12–16 GB cards, Series X, ray tracing.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 03:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7299896281) Results from tonight's session, for steps 0 to 4 (post edited to match). One ~28-minute session, not repeated: RTX 2070 SUPER 8 GB, Series S, DLSS Performance, FSR 3 frame generation, our fork's diag build (census with the new slot split, #4581 by @⁠mcozcan ported, step 1's shared reading, step 2's copy count). `SLOT_EVICT` was off, so nothing released slot-held textures: the cold figures below are what could go, not what went. **Slot-held textures** - The card was over its budget from about 2 minutes into the world to the end (7,973 MB in use of 6,892 MB at the end). - Slot-held textures were a median 1.9 GB, and nearly all of them were in slots shaders pick by index. Slots read through a draw's table held at most 14 MB. - Medians over the 47 census lines taken while over budget (one every 30 s): | cold = unread for | cold, picked by index | hot | blocks that would empty* | |---|---:|---:|---| | 3 s | 1.58 GB | 0.55 GB | 2 (4 or more in 18 of 47 lines) | | 60 s | 1.06 GB | 0.89 GB | 1 (4 or more in 4 of 47) | | 1,800 frames | 1.11 GB | 0.80 GB | 1 (4 or more in 10 of 47) | \* if every idle unheld texture and every cold index-picked texture went at once. - Hot slot bytes in blocks under half full: a median of 28–60 MB, depending on the cutoff. So about half the slot bytes are cold, but they share blocks with hot ones. Releasing all of them would empty about one 64 MiB block. **Menus.** In a few periods 40–53 blocks (2.5–3.4 GB) would have emptied, because hot bytes fell to 33–59 MB. These were times in menus (confirmed by the player): no shader reads, so everything looks cold. Releasing then would make it all again on resume, so a release rule has to ignore periods with no draws. These lines are in the medians above. Leaving out the 10 lines with menu time, the 60 s median is 0 blocks and no line reaches 4. **Step 2.** At the end: 897 render-target copies, 1,628 MB. In use 590 MB, idle but held by a command list or a slot 555 MB, idle and held by nothing 0 MB, kept whole (depth, MSAA, twins, aliased, tiled) 482 MB. As on @⁠CuteBooty's 3070, the class `Evict()` was for is empty here, so that part is parked. The open part is the 555 MB a list or slot holds. **Step 1.** The shared reading followed DXGI (worst error in any period 337 MB), but it isn't one reading per frame yet: the budget-change event fired 157,490 times in the session. Each wake-up forced a new reading. A fix (at most one extra reading per frame, 250 ms apart) is built on our fork with unit tests passing (75); it has not run in the game yet. It goes into the next session, before any PR. **What it changes in the plan.** On this card, release alone frees little, because cold and hot textures are mixed in the same blocks. Steps 3 and 4 now add temperature-aware placement (recently read textures in their own blocks, so cold ones collect in blocks that can empty) before any live moves, and a release rule that ignores no-draw periods. @⁠nidea1 thanks for the list, it saves duplicate work. Our next test build will carry three of them: - #4714, because whole-block release must not reuse a piece before the last submission that used it has finished; - #4433, because releasing cold index-picked textures (#4581) depends on slot eviction backing off as it should; - #4464, because stale host-written ranges pin blocks in our census. #4713 we'll test as its own arm. With early-Z back, a texture read only by pixels that end up hidden is no longer marked. That's right for what's on screen, but it raises our cold count, and a release could then let go a texture that becomes visible on the next camera turn (gray until the next read). So we'll compare the census split with and without it, with screenshots. #4715 and #4716 aren't in this build: #4715 is outside card memory, and #4716 (RAM) we'll look at with the RAM side of this issue. Your stack ran 827 MB under its budget with `SAMPLED_EVICT=1`. That's a different card and stack (3060 Ti, DLSS Quality, 12 minutes), and we haven't run release on ours yet. Our census only says that here the cold bytes sit in the same blocks as hot ones, so release alone would empty few blocks on this card. An A/B on our card with release on is next. **Spec dependence.** All numbers are from one card (RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11) with Series S, DLSS Performance and FSR 3 frame generation, on our fork's diag build with several ports. Likely general: the slot split by kind, step 1's event flood, and the empty `Evict()` class (also seen on a 3070). May depend on our setup: how cold bytes mix within blocks, and the budget and over-budget sizes. Untested: other GPU generations, AMD, 12–16 GB cards, Series X, ray tracing. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 04:24 UTC · original

Results from a second session, for step 1 and for placement in steps 3 and 4. One ~25-minute session in the world, not repeated, closed normally. Same PC and settings as the last one: RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation; GPU clocks not recorded. Our fork's diag build on upstream v2026.11.30.02 with @⁠nidea1's #4714, #4433 and #4464 ported, the step 1 debounce (our branch up-card-read, b734f52f0) and a new census line for placement. Slot eviction was off (VICTORY_SLOT_EVICT=0), so cold figures are what could go, not what went.

Step 1. In the world DXGI is now read about once a frame: a median of 15 reads a second (p95 17, max 18, minutes 3 to 16), against a median of 24, p95 153, max 496 in the same minutes last time.

  • The budget-change event woke the reader 113,686 times; the budget moved past the 128 MiB dead band 19 times.
  • Estimate error over the whole session: at most 31 MB at a reading (118 MB last time); worst in any one-second period 271 MB (337 MB last time).
  • One miss: on the loading screen (260 to 1,324 fps) one read per frame gave up to 1,491 reads a second for about 30 s. A fix is on the same branch (16 ms floor, 33cc69d4d; unit-tested, not yet run in the game).

Placement. Cold share of index-picked slot bytes at the 60 s cutoff (medians, 45 in-world census lines):

texture size cold share cold bytes
up to 64K 79 % 1.2 GB
up to 1M 34 % 152 MB
up to 8M 27 % 139 MB
over 8M 0 % 0
  • Made in the first 120 s of the world: 64 % cold. Made later: 32 % cold, and small in bytes.
  • So size is a usable predictor for a cold pool, but each of the three lower size buckets also holds about 300 MB of hot textures, so size alone still mixes.
  • Blocks that would empty if the cold index-picked bytes went: 4 or more in 0 of 45 lines with menu time left out, as last time.

Ports. Host-written bytes unchanged (about 30 MB in both sessions). Resting bytes in the census: median 6 MB, max 231 MB. The player reported (not measured) gray, white, black and wrong textures and pop-in, mostly in new areas when travelling fast. The card was over budget from about 13 minutes to the end, so this doesn't single out the ports.

Compaction. New detail from the #4582 session reported earlier (our fork's port, one release-build session): each of the 13 logged passes let go 0 to 18 MB, while free space inside texture blocks rose from 845 MB at about 12 minutes to 1,472 MB at the end (1,516 MB at the peak).

Spec dependence

  • Likely general: the budget-change event waking far more often than the budget moves, and the 16 ms floor; cold and hot textures sharing blocks.
  • May depend on our setup: the size-to-cold split and the over-budget sizes (8 GB, Series S, DLSS Performance, frame generation on).
  • Untested: other GPU generations, AMD, 12 to 16 GB cards, Series X, ray tracing.

Not tested: a repeat of this session or an A/B of the ports; release on; the 16 ms floor in the game.

Next. A draft PR for step 1 (Refs #4462) from up-card-read, then research on placement for small textures before any code.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 04:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7300708656) Results from a second session, for step 1 and for placement in steps 3 and 4. One ~25-minute session in the world, not repeated, closed normally. Same PC and settings as the last one: RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation; GPU clocks not recorded. Our fork's diag build on upstream v2026.11.30.02 with @⁠nidea1's #4714, #4433 and #4464 ported, the step 1 debounce (our branch `up-card-read`, b734f52f0) and a new census line for placement. Slot eviction was off (`VICTORY_SLOT_EVICT=0`), so cold figures are what could go, not what went. **Step 1.** In the world DXGI is now read about once a frame: a median of 15 reads a second (p95 17, max 18, minutes 3 to 16), against a median of 24, p95 153, max 496 in the same minutes last time. - The budget-change event woke the reader 113,686 times; the budget moved past the 128 MiB dead band 19 times. - Estimate error over the whole session: at most 31 MB at a reading (118 MB last time); worst in any one-second period 271 MB (337 MB last time). - One miss: on the loading screen (260 to 1,324 fps) one read per frame gave up to 1,491 reads a second for about 30 s. A fix is on the same branch (16 ms floor, 33cc69d4d; unit-tested, not yet run in the game). **Placement.** Cold share of index-picked slot bytes at the 60 s cutoff (medians, 45 in-world census lines): | texture size | cold share | cold bytes | |---|---:|---:| | up to 64K | 79 % | 1.2 GB | | up to 1M | 34 % | 152 MB | | up to 8M | 27 % | 139 MB | | over 8M | 0 % | 0 | - Made in the first 120 s of the world: 64 % cold. Made later: 32 % cold, and small in bytes. - So size is a usable predictor for a cold pool, but each of the three lower size buckets also holds about 300 MB of hot textures, so size alone still mixes. - Blocks that would empty if the cold index-picked bytes went: 4 or more in 0 of 45 lines with menu time left out, as last time. **Ports.** Host-written bytes unchanged (about 30 MB in both sessions). Resting bytes in the census: median 6 MB, max 231 MB. The player reported (not measured) gray, white, black and wrong textures and pop-in, mostly in new areas when travelling fast. The card was over budget from about 13 minutes to the end, so this doesn't single out the ports. **Compaction.** New detail from the #4582 session reported earlier (our fork's port, one release-build session): each of the 13 logged passes let go 0 to 18 MB, while free space inside texture blocks rose from 845 MB at about 12 minutes to 1,472 MB at the end (1,516 MB at the peak). **Spec dependence** - Likely general: the budget-change event waking far more often than the budget moves, and the 16 ms floor; cold and hot textures sharing blocks. - May depend on our setup: the size-to-cold split and the over-budget sizes (8 GB, Series S, DLSS Performance, frame generation on). - Untested: other GPU generations, AMD, 12 to 16 GB cards, Series X, ray tracing. **Not tested:** a repeat of this session or an A/B of the ports; release on; the 16 ms floor in the game. **Next.** A draft PR for step 1 (`Refs #4462`) from `up-card-read`, then research on placement for small textures before any code. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠nidea1 on GitHub · 2026-12-01 04:26 UTC · original

Follow-up to the list above: opened two additional targeted 8 GB / 32 GB memory PRs on main (5fabb46eaf), both conflict-free with the existing set:

  • #4737 — fixes five bugs in #2361's dead render-target reclamation (EvictedDeadRtSlots RAII refcount guard across Phase 2 under any VICTORY_BURY_LAG, make_again busy guard, depth-stencil Twin holder/byte checks, and whole-backing unmap verification) so slot-pinned superseded/unmapped RTs reclaim cleanly instead of looping texture_made every 5 s.
  • #4738 — defaults UPLOADS/SHARED CPU buffer pool blocks to 16 MiB on <=32 GiB hosts (VICTORY_BUFFER_BLOCK_MB) and defaults VICTORY_SPARE_SCALE on for <=9 GiB VRAM budgets using a peak-latched budget (strictly separate from texture block sizing in #1562/#1968).

Running a live RTX 3060 Ti 8 GB / 32 GB RAM combined verification pass on the full stack now and will report live dead-RT/memory deltas on both PRs.

**@⁠nidea1** on GitHub · 2026-12-01 04:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7300730855) Follow-up to the list above: opened two additional targeted 8 GB / 32 GB memory PRs on `main` (`5fabb46eaf`), both conflict-free with the existing set: - #4737 — fixes five bugs in #2361's dead render-target reclamation (`EvictedDeadRtSlots` RAII refcount guard across Phase 2 under any `VICTORY_BURY_LAG`, `make_again` busy guard, depth-stencil `Twin` holder/byte checks, and whole-backing unmap verification) so slot-pinned superseded/unmapped RTs reclaim cleanly instead of looping `texture_made` every 5 s. - #4738 — defaults `UPLOADS`/`SHARED` CPU buffer pool blocks to 16 MiB on `<=32 GiB` hosts (`VICTORY_BUFFER_BLOCK_MB`) and defaults `VICTORY_SPARE_SCALE` on for `<=9 GiB` VRAM budgets using a peak-latched budget (strictly separate from texture block sizing in #1562/#1968). Running a live RTX 3060 Ti 8 GB / 32 GB RAM combined verification pass on the full stack now and will report live dead-RT/memory deltas on both PRs.
Author
Owner

@⁠CuteBooty on GitHub · 2026-12-01 05:03 UTC · original

One more long session for the plan, this time a whole campaign mission: 28 minutes, start to finish, with indoor scenes and a hotel. Build: v2026.11.30.01 + #4582 on its own trigger (not forced). RTX 3070 8 GB, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus VICTORY_SAMPLED_EVICT=1. Closed normally.

min DXGI in use / budget (MB) texture blocks (free inside) render-target copies
5 6318 / 7187 2752 (754) 1336
10 6567 / 7222 2880 (628) 1402
15 6854 / 7222 3008 (481) 1511
20 7115 / 7222 3200 (723) 1568
25 7184 / 7221 3200 (750) 1604
28 7199 / 7221 3200 (835) 1606
  • The card never went over its budget (0 of the 5 s windows), but the margin went from 869 MB to 22 MB. Here, unlike the free-roam sessions, the texture blocks grew too: 2.75 to 3.2 GB.
  • Render-target copies grew from 1.34 to 1.61 GB. The census at the end read 1,070 copies, 1,606 MB, and 0 unused for 30 s and held by nothing. Same as before: what grows is held.
  • #4582's own trigger fired only twice, near the end, as the card reached its budget: 78 textures (11 MB) let go, and 2 blocks (128 MB) released to Windows (an upper bound, since the count includes the sweep's).
  • Two NVIDIA driver events (Event ID 153) at minutes 9 and 27, with no device removal and nothing in the game's log.
**@⁠CuteBooty** on GitHub · 2026-12-01 05:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7301374525) One more long session for the plan, this time a whole campaign mission: 28 minutes, start to finish, with indoor scenes and a hotel. Build: v2026.11.30.01 + #4582 on its own trigger (not forced). RTX 3070 8 GB, Series S, DLSS Performance, DLSS frame generation x2, upstream's play settings plus `VICTORY_SAMPLED_EVICT=1`. Closed normally. | min | DXGI in use / budget (MB) | texture blocks (free inside) | render-target copies | |---:|---|---|---:| | 5 | 6318 / 7187 | 2752 (754) | 1336 | | 10 | 6567 / 7222 | 2880 (628) | 1402 | | 15 | 6854 / 7222 | 3008 (481) | 1511 | | 20 | 7115 / 7222 | 3200 (723) | 1568 | | 25 | 7184 / 7221 | 3200 (750) | 1604 | | 28 | 7199 / 7221 | 3200 (835) | 1606 | - The card never went over its budget (0 of the 5 s windows), but the margin went from 869 MB to 22 MB. Here, unlike the free-roam sessions, the texture blocks grew too: 2.75 to 3.2 GB. - Render-target copies grew from 1.34 to 1.61 GB. The census at the end read 1,070 copies, 1,606 MB, and 0 unused for 30 s and held by nothing. Same as before: what grows is held. - #4582's own trigger fired only twice, near the end, as the card reached its budget: 78 textures (11 MB) let go, and 2 blocks (128 MB) released to Windows (an upper bound, since the count includes the sweep's). - Two NVIDIA driver events (Event ID 153) at minutes 9 and 27, with no device removal and nothing in the game's log.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 05:06 UTC · original

We re-checked the plan's claims against primary sources and ran three small probes on our card. The top post is updated; this is what changed and why.

Corrected in the top post

  • New copies waiting instead of spilling into system memory is not a shared pattern: DXVK falls back to system memory, and Unreal lowers texture detail. Where this plan waits, that's our choice.
  • "Soft, then aggressive release with a second-chance check and a per-frame cap": Xenia has soft and hard limits with a 30 s lifetime, and Microsoft's residency library trims above 70 % of the budget. None of the sources has a second-chance check or a fixed MB per frame. We could only read the abstract of the Titanfall 2 talk (paywalled), so it no longer counts as a source for these rules.
  • Unreal's 90 %: it scales the texture streaming pool (default 70 % of the card, so about 63 %), not the whole card. Dawn caps at 95 % of the budget (its source calls the value arbitrary). Our target (about 93 %) is our own choice.
  • Lowering the residency priority of idle render-target copies doesn't lower DXGI's use; it only orders what Windows moves out.
  • Release waits seconds, not frames (DXVK 20 s, Xenia 30 s).

Probes (RTX 2070 SUPER 8 GB, driver 621.40, Windows 11 (10.0.26320), ReBAR off, idle desktop, no game; a small D3D12 test program, run once)

  • QueryVideoMemoryInfo: median 546 ns per call for one memory group, 1,102 ns for both, over 200 × 1,000 calls.
  • 8 heaps of 64 MiB, written by a copy: DXGI's card use went from 520 MB to 8 MB right after Evict(), and back to 520 MB right after MakeResident(). Unchanged 50 ms to 3 s later.
  • With the process over budget (7,432 MB against 6,885 MB), Evict() of 8 heaps lowered the use by 512 MB at once, and so did destroying 8 other heaps. Windows moved nothing to shared memory in the ~10 s we were over.
  • A heap set to MINIMUM residency priority still counted in full.
  • Not shown: what MakeResident() costs after Windows has really paged the data out. A GPU read of an evicted heap removes the device, so Evict() stays only for objects nothing references.

Texture blocks (our fork's pool lines, 72 Series S sessions on an older base, 4,459 samples): 95 % of textures are one 64 KiB piece. With 500 MB or more free inside blocks (75 samples), it sat in a median of 4,520 holes of about 140 KB each; with under 100 MB free, in a few large ranges. 706 of 794 times the pool added a block, it was nearly full (under 100 MB free). In the 23 additions that came with 300 MB or more free, the largest range was still 17–63 MB, so those are unexplained. Hole size does not look like the reason blocks grow; keeping lifetimes apart when textures are placed looks like the lever before moving them (not confirmed: older base, short sessions). A long session on the current base would confirm it.

Spec dependence

  • Likely general: the documented behaviour (priority, Evict(), the sources above).
  • May depend on our setup: the probe numbers (Turing, driver 621.40, 8 GB, no ReBAR) and the block figures (Series S).
  • Untested: other GPUs and drivers, AMD, 12 to 16 GB cards, MakeResident() after a real page-out, the probes under game load.

Sources

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 05:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7301426570) We re-checked the plan's claims against primary sources and ran three small probes on our card. The top post is updated; this is what changed and why. **Corrected in the top post** - New copies waiting instead of spilling into system memory is not a shared pattern: DXVK falls back to system memory, and Unreal lowers texture detail. Where this plan waits, that's our choice. - "Soft, then aggressive release with a second-chance check and a per-frame cap": Xenia has soft and hard limits with a 30 s lifetime, and Microsoft's residency library trims above 70 % of the budget. None of the sources has a second-chance check or a fixed MB per frame. We could only read the abstract of the Titanfall 2 talk (paywalled), so it no longer counts as a source for these rules. - Unreal's 90 %: it scales the texture streaming pool (default 70 % of the card, so about 63 %), not the whole card. Dawn caps at 95 % of the budget (its source calls the value arbitrary). Our target (about 93 %) is our own choice. - Lowering the residency priority of idle render-target copies doesn't lower DXGI's use; it only orders what Windows moves out. - Release waits seconds, not frames (DXVK 20 s, Xenia 30 s). **Probes** (RTX 2070 SUPER 8 GB, driver 621.40, Windows 11 (10.0.26320), ReBAR off, idle desktop, no game; a small D3D12 test program, run once) - `QueryVideoMemoryInfo`: median 546 ns per call for one memory group, 1,102 ns for both, over 200 × 1,000 calls. - 8 heaps of 64 MiB, written by a copy: DXGI's card use went from 520 MB to 8 MB right after `Evict()`, and back to 520 MB right after `MakeResident()`. Unchanged 50 ms to 3 s later. - With the process over budget (7,432 MB against 6,885 MB), `Evict()` of 8 heaps lowered the use by 512 MB at once, and so did destroying 8 other heaps. Windows moved nothing to shared memory in the ~10 s we were over. - A heap set to `MINIMUM` residency priority still counted in full. - Not shown: what `MakeResident()` costs after Windows has really paged the data out. A GPU read of an evicted heap removes the device, so `Evict()` stays only for objects nothing references. **Texture blocks** (our fork's pool lines, 72 Series S sessions on an older base, 4,459 samples): 95 % of textures are one 64 KiB piece. With 500 MB or more free inside blocks (75 samples), it sat in a median of 4,520 holes of about 140 KB each; with under 100 MB free, in a few large ranges. 706 of 794 times the pool added a block, it was nearly full (under 100 MB free). In the 23 additions that came with 300 MB or more free, the largest range was still 17–63 MB, so those are unexplained. Hole size does not look like the reason blocks grow; keeping lifetimes apart when textures are placed looks like the lever before moving them (not confirmed: older base, short sessions). A long session on the current base would confirm it. **Spec dependence** - Likely general: the documented behaviour (priority, `Evict()`, the sources above). - May depend on our setup: the probe numbers (Turing, driver 621.40, 8 GB, no ReBAR) and the block figures (Series S). - Untested: other GPUs and drivers, AMD, 12 to 16 GB cards, `MakeResident()` after a real page-out, the probes under game load. **Sources** - Microsoft: [residency](https://learn.microsoft.com/en-us/windows/win32/direct3d12/residency) (also: reserved resources remap without new descriptors), [QueryVideoMemoryInfo](https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_4/nf-dxgi1_4-idxgiadapter3-queryvideomemoryinfo), [Evict](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-evict), [access to a non-resident allocation](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/access-to-non-resident-allocation), [residency library](https://github.com/microsoft/DirectX-Graphics-Samples/blob/master/Libraries/D3DX12Residency/d3dx12Residency.h) - Allocators: [D3D12MA](https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator/blob/master/src/D3D12MemAlloc.cpp), [VMA, staying within budget](https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/staying_within_budget.html), [DXVK memory](https://github.com/doitsujin/dxvk/blob/master/src/dxvk/dxvk_memory.cpp), [Dawn](https://dawn.googlesource.com/dawn/+/refs/heads/chromium/5872/src/dawn/native/d3d12/ResidencyManagerD3D12.cpp) - Engines and talks: [Unreal texture streaming](https://dev.epicgames.com/documentation/unreal-engine/texture-streaming-overview-for-unreal-engine), [Unreal 90 % thread](https://forums.unrealengine.com/t/dx12-vram-budget/2616586), [Horizon Zero Dawn streaming](https://guerrilla-games.com/read/Streaming-the-World-of-Horizon-Zero-Dawn), [AMD APEX memory talk](https://gpuopen.com/download/MemoryManagementInAPEX_v2.pdf), [Xenia texture cache](https://github.com/xenia-project/xenia/blob/master/src/xenia/gpu/texture_cache.cc), [RPCS3 #19500 (render-target reuse)](https://github.com/RPCS3/rpcs3/pull/19500), [query cost on other cards](https://asawicki.info/news_1696_vulkan_with_dxgi_-_experiment_results) Drafted with AI assistance (Claude Code).
github-bot changed title from One owner for the whole card budget on 8 GB cards (measurements and a plan in small steps) to One owner for the whole card budget, for any card near its memory limit (measured on 8 GB; a plan in small steps) 2026-12-01 05:16:24 +00:00
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 05:11 UTC · original

@⁠CuteBooty thanks, a whole mission is a useful second shape next to our free-roam sessions. It's in the top post now.

Your blocks growing from 2.75 to 3.2 GB while 481–835 MB sat free inside them is the case our comment above leaves open. In our older pool logs most new blocks came with the pool nearly full, and the few that came with a lot free are unexplained. Your session looks like that unexplained case, over a whole mission. Could you run the same mission once more with VICTORY_POOL_STATS=1? Its texture blocks (VICTORY_POOL_STATS=1) line gives the number of free ranges, the largest one and how much free space is in ranges of 1 MiB or more. That would show whether the holes are too small for what the mission places, or whether something else adds the blocks.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 05:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7301515479) @⁠CuteBooty thanks, a whole mission is a useful second shape next to our free-roam sessions. It's in the top post now. Your blocks growing from 2.75 to 3.2 GB while 481–835 MB sat free inside them is the case our comment above leaves open. In our older pool logs most new blocks came with the pool nearly full, and the few that came with a lot free are unexplained. Your session looks like that unexplained case, over a whole mission. Could you run the same mission once more with `VICTORY_POOL_STATS=1`? Its `texture blocks (VICTORY_POOL_STATS=1)` line gives the number of free ranges, the largest one and how much free space is in ranges of 1 MiB or more. That would show whether the holes are too small for what the mission places, or whether something else adds the blocks. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠eipastel on GitHub · 2026-12-01 05:23 UTC · original

@⁠guyansong24 VICTORY_TEXTURE_BUDGET_MB is in the releases, not only main: it is read in crates/victory-gpu/src/resource.rs (texture_budget_limit) since v2026.11.26, and every release after it has it. My 5060 runs used it on a main build, but any release from v2026.11.26 on takes the same switch.

**@⁠eipastel** on GitHub · 2026-12-01 05:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7301727638) @⁠guyansong24 `VICTORY_TEXTURE_BUDGET_MB` is in the releases, not only `main`: it is read in `crates/victory-gpu/src/resource.rs` (`texture_budget_limit`) since v2026.11.26, and every release after it has it. My 5060 runs used it on a `main` build, but any release from v2026.11.26 on takes the same switch.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 05:37 UTC · original

Step 1 (#4745) run in the game on its own branch: main 5fabb46ea plus #4745, diag build, VICTORY_CARD_OWNER=read with the switch set of our usual runs (listed in the log header; all present on main), Series S, DLSS Performance, no frame generation. RTX 2070 SUPER 8 GB, driver 621.40, Windows 11, ReBAR off, GPU clocks not locked. One run, 2026-12-01: an 81 s load, then ~7 minutes standing in the world.

  • Loading screen: at most 63 DXGI readings a second while callers asked up to 2,349 times a second, so the 16 ms floor holds (our fork's build without it reached 1,491 a second).
  • World: a median of 17.6 readings a second at 18.3 fps (max 29), so one a frame. The standing run ran at 18.3 fps (p95 86 ms, over its last 180 per-second lines).
  • Estimate: off at a reading by 1 MB or less in 95 % of the card owner: lines (316 lines over ~8 minutes), at most 67 MB. The largest drift between two readings, 219 MB, came in the second the budget fell from 7,221 to 6,671 MB.
  • Budget-change event: 6,267 wake-ups against 2 budget moves past the 128 MiB band (7,221 → 6,671 → 6,826 MB).
  • Card use rose to 6,749 MB against a 6,826 MB budget and did not pass it in these 7 minutes (above the hard line H, 6,570 MB, for most of the run). Nothing acts on the lines yet, so being above H changed nothing here.
  • No panic, no device removal, and the picture looked normal in the four shots taken.
  • Not done: the same run with the switch off, so this does not show whether callers decided differently with it on.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 05:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7301960573) Step 1 (#4745) run in the game on its own branch: `main` 5fabb46ea plus #4745, diag build, `VICTORY_CARD_OWNER=read` with the switch set of our usual runs (listed in the log header; all present on `main`), Series S, DLSS Performance, no frame generation. RTX 2070 SUPER 8 GB, driver 621.40, Windows 11, ReBAR off, GPU clocks not locked. One run, 2026-12-01: an 81 s load, then ~7 minutes standing in the world. - Loading screen: at most 63 DXGI readings a second while callers asked up to 2,349 times a second, so the 16 ms floor holds (our fork's build without it reached 1,491 a second). - World: a median of 17.6 readings a second at 18.3 fps (max 29), so one a frame. The standing run ran at 18.3 fps (p95 86 ms, over its last 180 per-second lines). - Estimate: off at a reading by 1 MB or less in 95 % of the `card owner:` lines (316 lines over ~8 minutes), at most 67 MB. The largest drift between two readings, 219 MB, came in the second the budget fell from 7,221 to 6,671 MB. - Budget-change event: 6,267 wake-ups against 2 budget moves past the 128 MiB band (7,221 → 6,671 → 6,826 MB). - Card use rose to 6,749 MB against a 6,826 MB budget and did not pass it in these 7 minutes (above the hard line H, 6,570 MB, for most of the run). Nothing acts on the lines yet, so being above H changed nothing here. - No panic, no device removal, and the picture looked normal in the four shots taken. - Not done: the same run with the switch off, so this does not show whether callers decided differently with it on. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠CuteBooty on GitHub · 2026-12-01 06:07 UTC · original

@⁠Jesper-Andersson no replay of that mission for now. But VICTORY_POOL_STATS=1 is now part of my regular start, so every session from here on will carry the free-range line. I'll post the next mission that shows blocks growing while space sits free inside them.

**@⁠CuteBooty** on GitHub · 2026-12-01 06:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7302499394) @⁠Jesper-Andersson no replay of that mission for now. But `VICTORY_POOL_STATS=1` is now part of my regular start, so every session from here on will carry the free-range line. I'll post the next mission that shows blocks growing while space sits free inside them.
Author
Owner

@⁠Remorce on GitHub · 2026-12-01 07:15 UTC · original

Not sure if it'd be of interest, but I am going through and compiling/testing any Memory optimization PRs I can find, along with keeping a list of validated "Dead ends" that don't result in performance gains. Additionally reviewed Whiplash's documentation for what they tried doing and what the results were. #4774

**@⁠Remorce** on GitHub · 2026-12-01 07:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7303838335) Not sure if it'd be of interest, but I am going through and compiling/testing any Memory optimization PRs I can find, along with keeping a list of validated "Dead ends" that don't result in performance gains. Additionally reviewed Whiplash's documentation for what they tried doing and what the results were. #4774
Author
Owner

@⁠kraiy404 on GitHub · 2026-12-01 10:28 UTC · original

An 8 GB data point for step 1, from a card that spends most of its time past the budget — RTX 4060 Ti 8 GB, i5-13400F, 32 GB, Windows 11 Enterprise 26H2 (26300.9974), driver 621.40, 2560x1440.

Tested v2026.11.30.03 with only #4745's three commits on top, so the card owner: line was live. Full numbers, the four run table and the trimmed logs are in a comment on #4745: .

What the line says on this card:

  • hard state in 83 % of the lines at Series S and 92 % at Series X — the card lives above H, not near it.
  • Budget wake-ups 261,928 (Series S) and 91,430 (Series X) against 2 budget moves in each run. Same shape as your 113,686 against 19.
  • Estimate at a reading is usually exact (median 0 MB, p95 1 MB), but reached 175 MB at Series S and 80 MB at Series X, and 364 MB worst within a period. Yours stayed within 67 MB, so the error grows on a card that frees a lot of committed textures.
  • Card use median 6,966 MB (Series S) and 7,342 MB (Series X) against a 6,954 MB budget, peaks 7,217 and 7,742 MB.

Frame time did not move at Series S (60.0 against 57.9 ms median), but at Series X the same profile and route ran 88.9 ms median with the switch off and 69.0 ms with it on, and sat 864 MB over budget instead of 412 MB. One pair, so not proof — this card varies a lot between runs — but it is the case where the distance past the budget and the frame time moved together, which is what step 2 would act on.

Happy to run more configurations (texture room 88 %, frame generation off, ray tracing) if that helps.

**@⁠kraiy404** on GitHub · 2026-12-01 10:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7308233613) An 8 GB data point for step 1, from a card that spends most of its time past the budget — RTX 4060 Ti 8 GB, i5-13400F, 32 GB, Windows 11 Enterprise 26H2 (26300.9974), driver 621.40, 2560x1440. Tested `v2026.11.30.03` with only #4745's three commits on top, so the `card owner:` line was live. Full numbers, the four run table and the trimmed logs are in a comment on #4745: <link to that comment>. What the line says on this card: - **`hard` state in 83 % of the lines at Series S and 92 % at Series X** — the card lives above H, not near it. - **Budget wake-ups 261,928 (Series S) and 91,430 (Series X) against 2 budget moves in each run.** Same shape as your 113,686 against 19. - **Estimate at a reading is usually exact (median 0 MB, p95 1 MB), but reached 175 MB at Series S and 80 MB at Series X, and 364 MB worst within a period.** Yours stayed within 67 MB, so the error grows on a card that frees a lot of committed textures. - Card use median 6,966 MB (Series S) and 7,342 MB (Series X) against a 6,954 MB budget, peaks 7,217 and 7,742 MB. Frame time did not move at Series S (60.0 against 57.9 ms median), but at Series X the same profile and route ran **88.9 ms median with the switch off and 69.0 ms with it on**, and sat **864 MB over budget instead of 412 MB**. One pair, so not proof — this card varies a lot between runs — but it is the case where the distance past the budget and the frame time moved together, which is what step 2 would act on. Happy to run more configurations (texture room 88 %, frame generation off, ray tracing) if that helps.
Author
Owner

@⁠h9ddv7kk87-cloud on GitHub · 2026-12-01 11:01 UTC · original

Sharing two data points from an 8 GB Laptop GPU + 16 GB RAM setup (since most reports here seem to be 32 GB RAM):

System & Settings

  • GPU: NVIDIA GeForce RTX 4070 Laptop GPU (8 GB VRAM, DXGI budget ~6,790–7,180 MB)
  • CPU: Intel Core i9-13980HX
  • RAM: 16 GB (single-channel), Windows Shared GPU Memory budget: 7,344 MB
  • OS: Windows 11
  • Build: v2026.11.28.03
  • Profile / Switches: --series-s --res 1080to1440 --dlss performance --framegen 2 --fg-type dlss --fps 30, VICTORY_BVH_BUILDER=0, VICTORY_TEXTURE_ROOM_PERCENT=86, VICTORY_CARD_ROOM_FOR_TARGETS_MB=1200, VICTORY_LEVELS_ON_DEMAND=0

1. 35-min stable run telemetry

  • Memory (240 presents with FG on):
    • Dedicated VRAM: 6,163 / 6,945 MB
    • Shared GPU Memory: 6,032 / 7,344 MB
  • GPU idle behind CPU submit thread (also relevant to #2415):
    the card's clock per frame: nothing of ours queued 25.0 ms (the card about 21% busy by this count), 16.7 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submitting thread stood waiting for the card 0.8 ms
    
  • Submitting thread breakdown:
    preparing per frame, the submitting thread: 19.3 ms in its submissions: 1.7 asking the write watch (0.2 of them finding what to ask), 0.1 putting the title's bytes under flights' writes, 13.4 in the lists' steps (refreshes 11.0 in 8 flushes of 8086, 7750 of them known to copy nothing, 8061 on several threads, 0.0 one at a time in 32 before shader writes; copies and fills 5.0, the refreshes before copies among them), 0.0 snapshots, 1.2 for copies in the card's memory, 0.4 sending the lists (VICTORY_LIGHT_REFRESH is on)
    

2. Immediate 0x8007000E when loading a Vice City save

  • Dedicated VRAM was still under budget (5,276 / 6,842 MB), while Shared GPU Memory was at 5,828 / 7,344 MB, then crashed with:
    ERROR victory_gpu::host: a host state prelude did not record (0x8007000E); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command
    

Hope these 8 GB VRAM + 16 GB RAM telemetry numbers help with the budget/submit-thread work! Happy to test PR builds or specific switches if needed.

**@⁠h9ddv7kk87-cloud** on GitHub · 2026-12-01 11:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7309054143) Sharing two data points from an **8 GB Laptop GPU + 16 GB RAM** setup (since most reports here seem to be 32 GB RAM): ### System & Settings - **GPU**: NVIDIA GeForce RTX 4070 Laptop GPU (8 GB VRAM, DXGI budget ~6,790–7,180 MB) - **CPU**: Intel Core i9-13980HX - **RAM**: 16 GB (single-channel), Windows Shared GPU Memory budget: `7,344 MB` - **OS**: Windows 11 - **Build**: `v2026.11.28.03` - **Profile / Switches**: `--series-s --res 1080to1440 --dlss performance --framegen 2 --fg-type dlss --fps 30`, `VICTORY_BVH_BUILDER=0`, `VICTORY_TEXTURE_ROOM_PERCENT=86`, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1200`, `VICTORY_LEVELS_ON_DEMAND=0` ### 1. 35-min stable run telemetry - **Memory (240 presents with FG on)**: - Dedicated VRAM: `6,163 / 6,945 MB` - Shared GPU Memory: `6,032 / 7,344 MB` - **GPU idle behind CPU submit thread (also relevant to #2415)**: ```text the card's clock per frame: nothing of ours queued 25.0 ms (the card about 21% busy by this count), 16.7 ms of that while the submitting thread was working (the card idle behind us), the rest while the title had not submitted; the submitting thread stood waiting for the card 0.8 ms ``` - **Submitting thread breakdown**: ```text preparing per frame, the submitting thread: 19.3 ms in its submissions: 1.7 asking the write watch (0.2 of them finding what to ask), 0.1 putting the title's bytes under flights' writes, 13.4 in the lists' steps (refreshes 11.0 in 8 flushes of 8086, 7750 of them known to copy nothing, 8061 on several threads, 0.0 one at a time in 32 before shader writes; copies and fills 5.0, the refreshes before copies among them), 0.0 snapshots, 1.2 for copies in the card's memory, 0.4 sending the lists (VICTORY_LIGHT_REFRESH is on) ``` ### 2. Immediate `0x8007000E` when loading a Vice City save - Dedicated VRAM was still under budget (`5,276 / 6,842 MB`), while Shared GPU Memory was at `5,828 / 7,344 MB`, then crashed with: ```text ERROR victory_gpu::host: a host state prelude did not record (0x8007000E); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command ``` Hope these 8 GB VRAM + 16 GB RAM telemetry numbers help with the budget/submit-thread work! Happy to test PR builds or specific switches if needed.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 13:38 UTC · original

Thanks all, this is the kind of spread the plan needed.

  • @⁠kraiy404: replied on #4745 (comment). In your extracts the large estimate errors (175 MB at a reading, 364 MB inside a period) all came at the start and during load-in; in the world it stayed within 16 MB at a reading and 64 MB inside a period, the same split as our run. The card owner: line now prints the error's sign (f279fe874 on #4745). Your Series X pair is noted in the post as one pair.
  • @⁠Remorce: #4774 is now linked from the post. Its dead ends agree with what we counted: forced compaction (#4582) let go 5 MB and released no block, because the sparse blocks are held by textures still in use, which matches our census.
  • @⁠h9ddv7kk87: thanks for the 16 GB data point. 0x8007000E is E_OUTOFMEMORY, and it came with the card under its budget (5,276 of 6,842 MB) and shared memory high (5,828 of 7,344 MB), so on that PC the limit reached first may be RAM and commit rather than the card. #4289 (VICTORY_TEXTURE_COMMIT_FLOOR_MB, a lower texture line when the PC is short of commit) is aimed at that case; #4774 forced it on a 32 GB PC (card 8.4 → 7.25 GB) and expects it to help most on 16 GB PCs. That isn't something step 1 changes.
  • @⁠CuteBooty: thanks, the next session with growing blocks and free space inside them is what step 3 needs.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 13:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7312938150) Thanks all, this is the kind of spread the plan needed. - @⁠kraiy404: replied on #4745 ([comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4745)). In your extracts the large estimate errors (175 MB at a reading, 364 MB inside a period) all came at the start and during load-in; in the world it stayed within 16 MB at a reading and 64 MB inside a period, the same split as our run. The `card owner:` line now prints the error's sign (f279fe874 on #4745). Your Series X pair is noted in the post as one pair. - @⁠Remorce: #4774 is now linked from the post. Its dead ends agree with what we counted: forced compaction (#4582) let go 5 MB and released no block, because the sparse blocks are held by textures still in use, which matches our census. - @⁠h9ddv7kk87: thanks for the 16 GB data point. `0x8007000E` is E_OUTOFMEMORY, and it came with the card under its budget (5,276 of 6,842 MB) and shared memory high (5,828 of 7,344 MB), so on that PC the limit reached first may be RAM and commit rather than the card. #4289 (`VICTORY_TEXTURE_COMMIT_FLOOR_MB`, a lower texture line when the PC is short of commit) is aimed at that case; #4774 forced it on a 32 GB PC (card 8.4 → 7.25 GB) and expects it to help most on 16 GB PCs. That isn't something step 1 changes. - @⁠CuteBooty: thanks, the next session with growing blocks and free space inside them is what step 3 needs. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠mcozcan on GitHub · 2026-12-01 13:40 UTC · original

@⁠Jesper-Andersson @⁠Remorce on the #4582 dead end in #4774: that run was the per-texture rule, and the result fits what it does. It let idle textures go from sparse blocks whether or not the block could empty, so with one member still in use the block stayed and the 5 MB came back as uploads.

#4582 now has a second rule for exactly this, behind VICTORY_COMPACT_WHOLE=1 (off by default):

  • Whole blocks only. A block's members go only when every one of them can, emptiest block first, and each is checked again under its lock right before. A block with a texture still in use is left whole, so nothing is let go for nothing.
  • No refill. A block being emptied is placed in last, and while compaction acts the pools keep few empty blocks, so what it empties goes back to Windows.
  • What holds the blocks. Its line splits the MB held back in candidate blocks by reason: held by a slot or list, read lately, or written by the title. That is your census's "held by textures still in use", from the compaction's side.
  • Releases after the last round. A frame-rate line gives the texture blocks released to Windows since compaction first acted, also after compaction stops (tyr0nsur's review).

If, as the census says, the holders are mostly cold textures that slots pick by index, compaction alone won't free them. #4581's pressure mode is what lets those go, so the two together are the case to measure. I'll run three arms tonight on the 12 GB card and post the numbers on #4582: per-texture, whole blocks, and whole blocks with sampled eviction off (compaction alone).

**@⁠mcozcan** on GitHub · 2026-12-01 13:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7312997802) @⁠Jesper-Andersson @⁠Remorce on the #4582 dead end in #4774: that run was the per-texture rule, and the result fits what it does. It let idle textures go from sparse blocks whether or not the block could empty, so with one member still in use the block stayed and the 5 MB came back as uploads. #4582 now has a second rule for exactly this, behind `VICTORY_COMPACT_WHOLE=1` (off by default): - **Whole blocks only.** A block's members go only when every one of them can, emptiest block first, and each is checked again under its lock right before. A block with a texture still in use is left whole, so nothing is let go for nothing. - **No refill.** A block being emptied is placed in last, and while compaction acts the pools keep few empty blocks, so what it empties goes back to Windows. - **What holds the blocks.** Its line splits the MB held back in candidate blocks by reason: held by a slot or list, read lately, or written by the title. That is your census's "held by textures still in use", from the compaction's side. - **Releases after the last round.** A frame-rate line gives the texture blocks released to Windows since compaction first acted, also after compaction stops (tyr0nsur's review). If, as the census says, the holders are mostly cold textures that slots pick by index, compaction alone won't free them. #4581's pressure mode is what lets those go, so the two together are the case to measure. I'll run three arms tonight on the 12 GB card and post the numbers on #4582: per-texture, whole blocks, and whole blocks with sampled eviction off (compaction alone).
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 15:29 UTC · original

A correction to our earlier numbers, a census on main's memory defaults, and replies.

Correction. Our census and owner sessions (the "What we see on an 8 GB card" table in the post and our census comments of 2026-12-01) did not run on main's memory defaults. Our launcher set VICTORY_POOL_SMALL=0, VICTORY_SLOT_EVICT=0, VICTORY_TEXTURE_KEEP_FREE_MB=0 (#4005 off), VICTORY_ROOM_BY_BLOCKS=1 (#3754, not merged) and VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280 (main, unset: 2,560 MB on budgets up to 8 GiB). Main's scripts\play-nvidia.ps1 sets POOL_SMALL=1 and SLOT_EVICT=1, and the others are unset there (victory play on its own sets POOL_SMALL=0; the script launches victory run, so that does not apply). With POOL_SMALL=0 every texture of 64 KiB or less takes a whole 64 KiB piece. So "95 % of textures are one 64 KiB piece" and "textures up to 64 KB about 79 % cold (1.2 GB)" came from that setting, not from main. I'll correct the post.

Census on main's defaults. One session of free play on my own save, 31 minutes in the world, same PC and same exe as before, with only the memory switches set back to main's (POOL_SMALL=1, SLOT_EVICT=1, SAMPLED_EVICT unset): RTX 2070 SUPER 8 GB, driver 621.40, GPU clocks unlocked, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation, our fork's diag build. A memory measure, so no fps comparison. Not repeated.

earlier session (our switches) main's defaults
texture blocks, 1 min in -> end 50 -> 62 (3,200 -> 3,968 MB) 54 -> 41 (3,456 -> 2,624 MB)
blocks emptied / let go 1 / 0 16 / 13
small-texture blocks (4 KiB placement), live at the end 0 6 (153 MB)
small textures (64 KiB or less), cold at 60 s 79 % (1.2 GB), median of the session 77 % (73 MB), median of the session
blocks that would empty if cold index-picked textures went (60 s, in the world) 0 of 45 lines with 4 or more 45 of 60 lines with 4 or more
textures slot eviction let go 0 (off) 5 (1 MB), all in the first 6 s; none made again
over budget from ~12 min in the world, +707 MB at the end first at ~3 min, in 10 % of the readings, at most +314 MB; 143 MB under at the end
  • What slot eviction could not take: at its last look, 15,297 of 16,234 idle-looking textures were in slots shaders pick by index, which main leaves to SAMPLED_EVICT (off by default). 530 MB of them had no shader read within their idle time at the end (1.4 GB at 1 minute).
  • Empty blocks kept: at most 2 at any time, so no pile of spare blocks on this card.
  • No device loss or panic in the session. Windows logged one nvlddmkm event 153 at 15:21:23Z, when I alt-tabbed out; nothing visible happened and nothing is in the game log. In our logs POOL_SMALL=1 has had 0 device losses in 48 sessions on this card (2026-11-28 to 12-01); the one device loss in our logs from that time was a POOL_SMALL=0 session.

Steps 3 and 4. @⁠mcozcan, the whole-block rule in #4582 (VICTORY_COMPACT_WHOLE=1, your comment) is the rule the post describes for step 3/4 (a block goes only when every member can, no refill, few spare blocks). So we won't write our own. We'll test #4582 with COMPACT_WHOLE=1 together with #4581 on this card and post on #4582. What step 3/4 adds on top is only the trigger (the target line from step 1), an age in seconds and ignoring menus; I'll reduce the step to that.

@⁠CuteBooty's 12 blocks vs our 0 blocks released. Your 12 is an upper bound, since your counter also counts blocks the sweep emptied. Your forced #4582 run had SLOT_EVICT=1 and SAMPLED_EVICT=1; our port runs had both off, so nothing could let go a texture a slot held, and #4582 only takes textures nothing holds. That is the most likely reason, but we haven't isolated it. Other differences: your run looked every 5 s (forced floor) while ours looked only over budget, and small textures were placed apart on yours.

@⁠nidea1, #4737 and #4738. The post's step 2 says #2361 "didn't stop the growth". If #2361 had the bugs #4737 fixes, that conclusion was about the buggy version, so I'll change it to "not yet measured with #4737". On our card the class #4737 is about looks small: copies a newer target took over were 45 MB at the end of the earlier session and 48 MB on main's defaults, against 400 MB and 385 MB of idle copies nobody took over. So we expect little from #4737 here, and will measure it rather than assume. #4738 is about CPU-visible buffer pools and spare blocks, which is the RAM side of this issue, not step 2. Its spare-block part has little to act on here: 2 empty blocks at most.

Spec dependence. May depend on our setup: block counts, cold shares and the over-budget sizes (8 GB, Series S, DLSS Performance, frame generation on). Untested: other GPU generations, AMD, 12–16 GB cards, Series X, ray tracing; SAMPLED_EVICT, #4582 COMPACT_WHOLE, #4737 and #4738 on this card.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 15:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7316010584) A correction to our earlier numbers, a census on main's memory defaults, and replies. **Correction.** Our census and owner sessions (the "What we see on an 8 GB card" table in the post and our census comments of 2026-12-01) did not run on main's memory defaults. Our launcher set `VICTORY_POOL_SMALL=0`, `VICTORY_SLOT_EVICT=0`, `VICTORY_TEXTURE_KEEP_FREE_MB=0` (#4005 off), `VICTORY_ROOM_BY_BLOCKS=1` (#3754, not merged) and `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280` (main, unset: 2,560 MB on budgets up to 8 GiB). Main's `scripts\play-nvidia.ps1` sets `POOL_SMALL=1` and `SLOT_EVICT=1`, and the others are unset there (`victory play` on its own sets `POOL_SMALL=0`; the script launches `victory run`, so that does not apply). With `POOL_SMALL=0` every texture of 64 KiB or less takes a whole 64 KiB piece. So "95 % of textures are one 64 KiB piece" and "textures up to 64 KB about 79 % cold (1.2 GB)" came from that setting, not from main. I'll correct the post. **Census on main's defaults.** One session of free play on my own save, 31 minutes in the world, same PC and same exe as before, with only the memory switches set back to main's (`POOL_SMALL=1`, `SLOT_EVICT=1`, `SAMPLED_EVICT` unset): RTX 2070 SUPER 8 GB, driver 621.40, GPU clocks unlocked, ReBAR off, Ryzen 7 5800X, 32 GB RAM, Windows 11, Series S, DLSS Performance, FSR 3 frame generation, our fork's diag build. A memory measure, so no fps comparison. Not repeated. | | earlier session (our switches) | main's defaults | |---|---|---| | texture blocks, 1 min in -> end | 50 -> 62 (3,200 -> 3,968 MB) | 54 -> 41 (3,456 -> 2,624 MB) | | blocks emptied / let go | 1 / 0 | 16 / 13 | | small-texture blocks (4 KiB placement), live at the end | 0 | 6 (153 MB) | | small textures (64 KiB or less), cold at 60 s | 79 % (1.2 GB), median of the session | 77 % (73 MB), median of the session | | blocks that would empty if cold index-picked textures went (60 s, in the world) | 0 of 45 lines with 4 or more | 45 of 60 lines with 4 or more | | textures slot eviction let go | 0 (off) | 5 (1 MB), all in the first 6 s; none made again | | over budget | from ~12 min in the world, +707 MB at the end | first at ~3 min, in 10 % of the readings, at most +314 MB; 143 MB under at the end | - What slot eviction could not take: at its last look, 15,297 of 16,234 idle-looking textures were in slots shaders pick by index, which main leaves to `SAMPLED_EVICT` (off by default). 530 MB of them had no shader read within their idle time at the end (1.4 GB at 1 minute). - Empty blocks kept: at most 2 at any time, so no pile of spare blocks on this card. - No device loss or panic in the session. Windows logged one nvlddmkm event 153 at 15:21:23Z, when I alt-tabbed out; nothing visible happened and nothing is in the game log. In our logs `POOL_SMALL=1` has had 0 device losses in 48 sessions on this card (2026-11-28 to 12-01); the one device loss in our logs from that time was a `POOL_SMALL=0` session. **Steps 3 and 4.** @⁠mcozcan, the whole-block rule in #4582 (`VICTORY_COMPACT_WHOLE=1`, [your comment](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463)) is the rule the post describes for step 3/4 (a block goes only when every member can, no refill, few spare blocks). So we won't write our own. We'll test #4582 with `COMPACT_WHOLE=1` together with #4581 on this card and post on #4582. What step 3/4 adds on top is only the trigger (the target line from step 1), an age in seconds and ignoring menus; I'll reduce the step to that. **@⁠CuteBooty's 12 blocks vs our 0 blocks released.** Your 12 is an upper bound, since your counter also counts blocks the sweep emptied. Your forced #4582 run had `SLOT_EVICT=1` and `SAMPLED_EVICT=1`; our port runs had both off, so nothing could let go a texture a slot held, and #4582 only takes textures nothing holds. That is the most likely reason, but we haven't isolated it. Other differences: your run looked every 5 s (forced floor) while ours looked only over budget, and small textures were placed apart on yours. **@⁠nidea1, #4737 and #4738.** The post's step 2 says #2361 "didn't stop the growth". If #2361 had the bugs #4737 fixes, that conclusion was about the buggy version, so I'll change it to "not yet measured with #4737". On our card the class #4737 is about looks small: copies a newer target took over were 45 MB at the end of the earlier session and 48 MB on main's defaults, against 400 MB and 385 MB of idle copies nobody took over. So we expect little from #4737 here, and will measure it rather than assume. #4738 is about CPU-visible buffer pools and spare blocks, which is the RAM side of this issue, not step 2. Its spare-block part has little to act on here: 2 empty blocks at most. **Spec dependence.** May depend on our setup: block counts, cold shares and the over-budget sizes (8 GB, Series S, DLSS Performance, frame generation on). Untested: other GPU generations, AMD, 12–16 GB cards, Series X, ray tracing; `SAMPLED_EVICT`, #4582 `COMPACT_WHOLE`, #4737 and #4738 on this card. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠mcozcan on GitHub · 2026-12-01 16:01 UTC · original

Thanks @⁠Jesper-Andersson, and for the correction on the defaults; the main-defaults census is a much clearer picture.

Agreed on steps 3/4: VICTORY_COMPACT_WHOLE=1 in #4582 is meant to be that rule, so testing it together with #4581 on your card is the most useful thing. Two notes before you do:

  • @⁠vi-tester-8gb's 79-minute session on an 8 GB laptop (#4582) got 0 blocks with every member free in almost every round, 1 block (64 MB) released in total, and a "host command list did not close" 32 s after that release. Possibly unrelated (one crash, no debug layer), but please keep a diagnostics build with VICTORY_D3D12_DEBUG=1 handy for those runs.
  • Tonight I'm running three forced arms of #4582 on an RTX 5070 12 GB (Series X, 1440p): per-texture, whole-block, and whole-block with SAMPLED_EVICT=0, with the kept-reason breakdown and the released-blocks line. I'll post them on #4582 as promised.
**@⁠mcozcan** on GitHub · 2026-12-01 16:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7316911987) Thanks @⁠Jesper-Andersson, and for the correction on the defaults; the main-defaults census is a much clearer picture. Agreed on steps 3/4: `VICTORY_COMPACT_WHOLE=1` in #4582 is meant to be that rule, so testing it together with #4581 on your card is the most useful thing. Two notes before you do: - @⁠vi-tester-8gb's 79-minute session on an 8 GB laptop (#4582) got 0 blocks with every member free in almost every round, 1 block (64 MB) released in total, and a "host command list did not close" 32 s after that release. Possibly unrelated (one crash, no debug layer), but please keep a diagnostics build with `VICTORY_D3D12_DEBUG=1` handy for those runs. - Tonight I'm running three forced arms of #4582 on an RTX 5070 12 GB (Series X, 1440p): per-texture, whole-block, and whole-block with `SAMPLED_EVICT=0`, with the kept-reason breakdown and the released-blocks line. I'll post them on #4582 as promised.
Author
Owner

@⁠nidea1 on GitHub · 2026-12-01 16:07 UTC · original · edited 2026-12-01 16:41 UTC

Thanks @⁠Jesper-Andersson for the thorough main-defaults census and for updating Step 2 to "not yet measured with #4736" — measuring #4736 directly against the actual 45–48 MB superseded-copy class makes complete sense.

Good note on #4737's spare-block cap as well (at most 2 empty blocks on your 8 GB run). Quick status update on the RAM side of #4737: following @⁠POMXARK's paired 32 GB RAM / RTX 5080 16 GB Series X A/B (where 16 MiB CPU buffer blocks regressed prep_ms and Commit compared to 64 MiB), cff7e115/b34c3740 narrowed #4737's auto-16 MiB buffer block gating to < 24 GiB RAM or <= 32 GiB RAM paired with <= 9 GiB DXGI local VRAM (keeping 32 GB + 12–16+ GB VRAM rigs on 64 MiB) and hardened concurrent growth in take_from_with_limit (preventing duplicate sparse-block pinning and stale post-growth Ripe budgets).

**@⁠nidea1** on GitHub · 2026-12-01 16:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7317083485) · edited 2026-12-01 16:41 UTC Thanks @⁠Jesper-Andersson for the thorough main-defaults census and for updating Step 2 to "not yet measured with `#4736`" — measuring `#4736` directly against the actual 45–48 MB superseded-copy class makes complete sense. Good note on `#4737`'s spare-block cap as well (at most 2 empty blocks on your 8 GB run). Quick status update on the RAM side of `#4737`: following @⁠POMXARK's paired 32 GB RAM / RTX 5080 16 GB Series X A/B (where 16 MiB CPU buffer blocks regressed `prep_ms` and Commit compared to 64 MiB), `cff7e115`/`b34c3740` narrowed `#4737`'s auto-16 MiB buffer block gating to `< 24 GiB` RAM or `<= 32 GiB` RAM paired with `<= 9 GiB` DXGI local VRAM (keeping 32 GB + 12–16+ GB VRAM rigs on 64 MiB) and hardened concurrent growth in `take_from_with_limit` (preventing duplicate sparse-block pinning and stale post-growth `Ripe` budgets).
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 18:36 UTC · original

Personal message (No AI): Due to large changes in main we are updating the plan to match, expect changes to post and steps. Our idea of a shared owner still stands with trustno1's newest update and should complement it well. A comment with changes will be added soon.

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 18:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4462#issuecomment-7321210566) Personal message (No AI): Due to large changes in main we are updating the plan to match, expect changes to post and steps. Our idea of a shared owner still stands with trustno1's newest update and should complement it well. A comment with changes will be added soon.
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/trustno1-coder--VIctory-NVIDIA#4463
No description provided.