8 GB cards: free space inside texture blocks counts as room, so eviction stops while the card stays over budget (ideas from ReVIctory) #3680

Open
opened 2026-11-30 03:43:01 +00:00 by github-bot · 6 comments
Owner

@⁠CuteBooty on GitHub · 2026-11-30 03:42 UTC · original

This is a report, not a PR: nothing below has been built or run here. It puts together one long session on an 8 GB card with a read of how another VIctory fork, ReTerryDavis/ReVIctory (GPL-3.0, tuned on a 16 GB RX 9070 XT), handles the same thing. It may be useful to whoever works on #2693, #3465, #1562, #2038 or #1968.

What we measured. RTX 3070 8 GB, v2026.11.29.05, upstream's launcher settings, frame generation off, DLSS Performance, Series S, plus VICTORY_SAMPLED_EVICT=1, VICTORY_TEXTURE_ROOM_PERCENT=80, VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048. One 65-minute story session, so this is a single reading:

minute card in use / budget (MB) texture pool (MB) title-fill copies alive (MB)
15 7,347 / 7,183 3,776 2,243
30 8,310 / 7,183 4,608 3,156
60 9,995 / 7,183 6,144 3,230
65 10,296 / 7,183 6,336 3,885

From 30 to 60 minutes the pool grew ~1.5 GB while the live copies in it grew ~70 MB. (Render-target host copies, #3420, levelled off at ~1.7 GB and are a separate part of the total.)

What the code does (read at 41adb5516).

  • Both sweeps take the pool's free bytes off the card's use before comparing it with their lines: the idle sweep (used.saturating_sub(crate::pool::texture_room()), resource.rs ~2973) and slot eviction (resource.rs ~3509). texture_room() is every free byte in existing blocks (pool.rs:712), however scattered.
  • A block goes back to the system only when it is completely empty (reclaim, pool.rs ~472-500), and both sweeps pick the oldest copies without regard to which block they sit in.
  • So each copy freed inside a half-used block lowers the counted use by its size but leaves the real use unchanged. Eviction reaches its low line and stops while DXGI still reports the card over budget. Our reading of the code, not traced in a run.
  • VICTORY_POOL_FULLEST (fullest block first, PR #1551) drains sparse blocks only passively. VICTORY_BUDGET_PACK and VICTORY_ALLOCATOR_TRIM do not touch the texture pool.

What ReVIctory does differently. Its crates/victory-gpu/src/vram.rs describes the same fault in its own earlier code ("by its count the card was at 81%"). The changes, all switches there:

  1. Block-aware counting and draining. Only empty blocks and holes in blocks at least half full count as room (plan / usable, vram.rs ~309-333). The drain frees block by block, emptiest first, so whole blocks come back (drain_order, ~504). From 80% of the budget, sparse blocks are emptied on purpose (evacuation, VICTORY_POOL_EVACUATE, ~297).
  2. Repacking held copies. Copies that slots still show are moved out of blocks under half full into fuller ones, at most one block's worth every 0.5 s, from 80% of the budget (repack_order, vram.rs ~244; repack_sparse, resource.rs ~2745; VICTORY_POOL_REPACK). Their reason: in one session all 339 MB in 26 sparse blocks were held by slots, so draining alone could not free them.
  3. 32 MiB blocks by default (VICTORY_POOL_BLOCK_MB), as in open PR #1968 here.
  4. A gap between the lines: admit up to 93%, drain to 85% (VICTORY_VRAM_GAP), and wake on the system's budget-change event. Here slot eviction's high line is clamped to the admission line, so with TEXTURE_ROOM_PERCENT=80 it evicts right where admission stops.
  5. Fewer levels for new copies under pressure (512 texels from 89%, 256 from 93%, given back later). This is close to open PR #2747. It limits new copies but does not shrink the slack.

Their own figures, all on a 16 GB card: one play went from 94% to 90% of a ~11.8 GB budget with 32 MiB blocks plus evacuation. A model in their pool tests gives ~6% less card per texture byte for 32 MiB blocks and ~12% with evacuation. Nothing is measured for repacking. The costs they record: a repack costs a copy on the card (bounded at ~64 MB/s), evicted copies are uploaded again at next use, and one 4-minute session before the gap was added churned 9.4 GB of re-made copies.

Rough potential here (a guess from the numbers above, not tested). Items 1-3 together might recover something like 0.4-1.0 GB of the pool slack on this card. That would not bring a long session under budget on its own, because the #3420 render-target copies remain, but it would push the point where it goes over later. Item 1 looks like the smallest change: count only usable room and let the over-budget sweep keep going until whole blocks come back.

Related: #691 (1.9 GB free in partly used blocks, closed as stale), #1576, #2693, #3465, PR #1562, PR #2038, PR #1968, PR #2747. PR #2940 credits pool free space as room, which is the opposite direction and may be worth weighing against this. I did not find anything here for repacking, evacuation or SetVideoMemoryReservation.

**@⁠CuteBooty** on GitHub · 2026-11-30 03:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680) This is a report, not a PR: nothing below has been built or run here. It puts together one long session on an 8 GB card with a read of how another VIctory fork, [ReTerryDavis/ReVIctory](https://github.com/ReTerryDavis/ReVIctory) (GPL-3.0, tuned on a 16 GB RX 9070 XT), handles the same thing. It may be useful to whoever works on #2693, #3465, #1562, #2038 or #1968. **What we measured.** RTX 3070 8 GB, v2026.11.29.05, upstream's launcher settings, frame generation off, DLSS Performance, Series S, plus `VICTORY_SAMPLED_EVICT=1`, `VICTORY_TEXTURE_ROOM_PERCENT=80`, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048`. One 65-minute story session, so this is a single reading: | minute | card in use / budget (MB) | texture pool (MB) | title-fill copies alive (MB) | |---:|---:|---:|---:| | 15 | 7,347 / 7,183 | 3,776 | 2,243 | | 30 | 8,310 / 7,183 | 4,608 | 3,156 | | 60 | 9,995 / 7,183 | 6,144 | 3,230 | | 65 | 10,296 / 7,183 | 6,336 | 3,885 | From 30 to 60 minutes the pool grew ~1.5 GB while the live copies in it grew ~70 MB. (Render-target host copies, #3420, levelled off at ~1.7 GB and are a separate part of the total.) **What the code does (read at 41adb5516).** - Both sweeps take the pool's free bytes off the card's use before comparing it with their lines: the idle sweep (`used.saturating_sub(crate::pool::texture_room())`, resource.rs ~2973) and slot eviction (resource.rs ~3509). `texture_room()` is every free byte in existing blocks (pool.rs:712), however scattered. - A block goes back to the system only when it is completely empty (`reclaim`, pool.rs ~472-500), and both sweeps pick the oldest copies without regard to which block they sit in. - So each copy freed inside a half-used block lowers the *counted* use by its size but leaves the *real* use unchanged. Eviction reaches its low line and stops while DXGI still reports the card over budget. Our reading of the code, not traced in a run. - `VICTORY_POOL_FULLEST` (fullest block first, PR #1551) drains sparse blocks only passively. `VICTORY_BUDGET_PACK` and `VICTORY_ALLOCATOR_TRIM` do not touch the texture pool. **What ReVIctory does differently.** Its `crates/victory-gpu/src/vram.rs` describes the same fault in its own earlier code ("by its count the card was at 81%"). The changes, all switches there: 1. **Block-aware counting and draining.** Only empty blocks and holes in blocks at least half full count as room (`plan` / `usable`, vram.rs ~309-333). The drain frees block by block, emptiest first, so whole blocks come back (`drain_order`, ~504). From 80% of the budget, sparse blocks are emptied on purpose (`evacuation`, `VICTORY_POOL_EVACUATE`, ~297). 2. **Repacking held copies.** Copies that slots still show are moved out of blocks under half full into fuller ones, at most one block's worth every 0.5 s, from 80% of the budget (`repack_order`, vram.rs ~244; `repack_sparse`, resource.rs ~2745; `VICTORY_POOL_REPACK`). Their reason: in one session all 339 MB in 26 sparse blocks were held by slots, so draining alone could not free them. 3. **32 MiB blocks** by default (`VICTORY_POOL_BLOCK_MB`), as in open PR #1968 here. 4. **A gap between the lines:** admit up to 93%, drain to 85% (`VICTORY_VRAM_GAP`), and wake on the system's budget-change event. Here slot eviction's high line is clamped to the admission line, so with `TEXTURE_ROOM_PERCENT=80` it evicts right where admission stops. 5. **Fewer levels for new copies under pressure** (512 texels from 89%, 256 from 93%, given back later). This is close to open PR #2747. It limits new copies but does not shrink the slack. Their own figures, all on a 16 GB card: one play went from 94% to 90% of a ~11.8 GB budget with 32 MiB blocks plus evacuation. A model in their pool tests gives ~6% less card per texture byte for 32 MiB blocks and ~12% with evacuation. Nothing is measured for repacking. The costs they record: a repack costs a copy on the card (bounded at ~64 MB/s), evicted copies are uploaded again at next use, and one 4-minute session before the gap was added churned 9.4 GB of re-made copies. **Rough potential here (a guess from the numbers above, not tested).** Items 1-3 together might recover something like 0.4-1.0 GB of the pool slack on this card. That would not bring a long session under budget on its own, because the #3420 render-target copies remain, but it would push the point where it goes over later. Item 1 looks like the smallest change: count only usable room and let the over-budget sweep keep going until whole blocks come back. Related: #691 (1.9 GB free in partly used blocks, closed as stale), #1576, #2693, #3465, PR #1562, PR #2038, PR #1968, PR #2747. PR #2940 credits pool free space as room, which is the opposite direction and may be worth weighing against this. I did not find anything here for repacking, evacuation or `SetVideoMemoryReservation`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 03:43:01 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 03:42 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 03:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7268128552) 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

@⁠tyr0nsur on GitHub · 2026-11-30 06:57 UTC · original

Independent RTX 4060 8 GiB check on Windows 11. I added a temporary D3D12 test to the #2038 / #3766 stack and ran it in three fresh processes. Four resident 64 MiB heaps each held four 16 MiB RGBA8 textures. Returning half of every heap made 128 MiB of ranges reusable, with zero empty heaps and unchanged DXGI local CurrentUsage (280,436,736 bytes). Returning the remaining two textures in one heap and dropping that heap reduced DXGI local usage by exactly 64 MiB, to 213,327,872 bytes. All three processes gave the same readings.

The two v2026.11.29.05 Series S captures on this card showed a different slot-eviction state from the reported RTX 3070 case. I matched the texture-room line and last slot state to frame reports with ≥500 draws/frame within 50 ms. The last state was evicting on all 330/355 over-budget frame samples with sampled eviction off, and all 119/244 with it on. This checks the reported state only. Those captures predate the whole-heap counters in #3766.

The half-full case remains reusable under #3754's heuristic, so its credit and real DXGI usage are worth measuring side by side on the same route. At #1562 head 8b4b42b, block ordering lives in let_go_idle and slot_evict still uses oldest_covering. For a combined test with #3454, track whole heaps dropped and fast re-uploads along with DXGI usage. Analysis assisted by Claude Opus 5.5.

**@⁠tyr0nsur** on GitHub · 2026-11-30 06:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7271190190) Independent RTX 4060 8 GiB check on Windows 11. I added a temporary D3D12 test to the #2038 / #3766 stack and ran it in three fresh processes. Four resident 64 MiB heaps each held four 16 MiB RGBA8 textures. Returning half of every heap made **128 MiB of ranges reusable**, with zero empty heaps and unchanged DXGI local `CurrentUsage` (280,436,736 bytes). Returning the remaining two textures in one heap and dropping that heap reduced DXGI local usage by exactly **64 MiB**, to 213,327,872 bytes. All three processes gave the same readings. The two v2026.11.29.05 Series S captures on this card showed a different slot-eviction state from the reported RTX 3070 case. I matched the texture-room line and last slot state to frame reports with ≥500 draws/frame within 50 ms. The last state was `evicting` on all **330/355** over-budget frame samples with sampled eviction off, and all **119/244** with it on. This checks the reported state only. Those captures predate the whole-heap counters in #3766. The half-full case remains reusable under #3754's heuristic, so its credit and real DXGI usage are worth measuring side by side on the same route. At #1562 head `8b4b42b`, block ordering lives in `let_go_idle` and `slot_evict` still uses `oldest_covering`. For a combined test with #3454, track whole heaps dropped and fast re-uploads along with DXGI usage. Analysis assisted by Claude Opus 5.5.
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-30 17:16 UTC · original

@⁠tyr0nsur thanks, that is the clean version of the check I could not do from play logs: half of every heap returned gives 128 MiB of "room" and zero bytes back in DXGI usage, and only a heap that is emptied and dropped gives its 64 MiB back.

A second, independent sighting of the same counting, from a different backend: the Linux/AMD Vulkan fork VKtory notes that its sweep line counts free space inside its texture blocks as free, "as the D3D12 path counts its pools'" (docs/learnings/vram.md). They measured 1.7-2.2 GB free inside blocks in one indoor scene, largest free range 138-256 MB, on a 16 GB card (docs/learnings/prison30.md). Their card never ran short, so it shows the size of the slack, not its cost; on 8 GB the same slack is what pushes the card over its budget late in a session.

Next from this side: normal play on v2026.11.30.01 (RTX 3070 8 GB, frame generation on), which adds TEXTURE_SOFT_MB=3000 and the spare-pool trim from #2633. I will report whether the growth after ~30 minutes changes, in the same numbers as before (card use against budget, texture pool, free room in blocks, every 5 minutes).

**@⁠CuteBooty** on GitHub · 2026-11-30 17:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7285999883) @⁠tyr0nsur thanks, that is the clean version of the check I could not do from play logs: half of every heap returned gives 128 MiB of "room" and zero bytes back in DXGI usage, and only a heap that is emptied and dropped gives its 64 MiB back. A second, independent sighting of the same counting, from a different backend: the Linux/AMD Vulkan fork VKtory notes that its sweep line counts free space inside its texture blocks as free, "as the D3D12 path counts its pools'" ([docs/learnings/vram.md](https://github.com/vktory6/VKtory/blob/main/docs/learnings/vram.md)). They measured 1.7-2.2 GB free inside blocks in one indoor scene, largest free range 138-256 MB, on a 16 GB card ([docs/learnings/prison30.md](https://github.com/vktory6/VKtory/blob/main/docs/learnings/prison30.md)). Their card never ran short, so it shows the size of the slack, not its cost; on 8 GB the same slack is what pushes the card over its budget late in a session. Next from this side: normal play on v2026.11.30.01 (RTX 3070 8 GB, frame generation on), which adds `TEXTURE_SOFT_MB=3000` and the spare-pool trim from #2633. I will report whether the growth after ~30 minutes changes, in the same numbers as before (card use against budget, texture pool, free room in blocks, every 5 minutes).
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-30 19:42 UTC · original

First normal-play session on v2026.11.30.01, as promised above. RTX 3070 8 GB, 32 GB RAM, Windows 11, Series S profile, 1080p, DLSS Performance, frame generation x2. Upstream's play settings at c71899d9e, plus VICTORY_SAMPLED_EVICT=1 and VICTORY_RESIDENCY_PRIORITY=1. 28 minutes, mostly driving fast through downtown. Closed normally, no driver events.

The game's own card use against its DXGI budget, compared with last night's sessions on v2026.11.29.05 (one with frame generation on, one off):

min v2026.11.30.01, FG on .05, FG on .05, FG off
10 718 MB under 138 MB over 219 MB under
15 697 under 519 over 162 over
20 671 under 959 over 405 over
25 384 under (crashed at 20) 590 over
28-30 317 under 1,129 over

What the texture side looked like at the end (minute 28 today; minute 20 on .05 with FG on):

v2026.11.30.01 .05
texture pool (memory in blocks) 2,688 MB 4,288 MB
free in texture blocks (counted as room) 1,340 MB 977 MB
share of the pool that is free space ~50 % ~23 %
host textures alive 3,021 MB 4,749 MB
TEXTURE_SOFT_MB sweeps past its line 0 (off)

So the pool is much smaller on this release, but about half of it is free space inside blocks. That free space still counts as room and still cannot go back to the card, which is the #3680 point. With half the pool empty in place, a block-aware drain or repack would have about 1.3 GB to give back on an 8 GB card.

Slot eviction is not what changed. In the first 28 minutes it let go a similar amount of textures that slots still showed: about 24.5 GB today against 28.5-30 GB on last night's three sessions, with 160-180 thousand re-made in each. The soft texture line never fired. What shrank the pool is not clear from this session.

Frames over 100 ms in the world: 35 a minute, against 62-89 last night. Median frame 56 ms. On screen: brief low-quality versions of textures while driving fast, no missing textures. The player's words were "a huge improvement over last night".

Caveats: one session. RESIDENCY_PRIORITY=1 was on. A game-streaming host (video encoder on the same card) was running this time and not last night; its memory comes off the DXGI budget, so the budget was about 150 MB lower today. Last night's .05 sessions were on foot more than in a car.

**@⁠CuteBooty** on GitHub · 2026-11-30 19:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7289806799) First normal-play session on v2026.11.30.01, as promised above. RTX 3070 8 GB, 32 GB RAM, Windows 11, Series S profile, 1080p, DLSS Performance, frame generation x2. Upstream's play settings at c71899d9e, plus `VICTORY_SAMPLED_EVICT=1` and `VICTORY_RESIDENCY_PRIORITY=1`. 28 minutes, mostly driving fast through downtown. Closed normally, no driver events. The game's own card use against its DXGI budget, compared with last night's sessions on v2026.11.29.05 (one with frame generation on, one off): | min | v2026.11.30.01, FG on | .05, FG on | .05, FG off | |---:|---:|---:|---:| | 10 | 718 MB under | 138 MB over | 219 MB under | | 15 | 697 under | 519 over | 162 over | | 20 | 671 under | 959 over | 405 over | | 25 | 384 under | (crashed at 20) | 590 over | | 28-30 | 317 under | | 1,129 over | What the texture side looked like at the end (minute 28 today; minute 20 on .05 with FG on): | | v2026.11.30.01 | .05 | |---|---:|---:| | texture pool (memory in blocks) | 2,688 MB | 4,288 MB | | free in texture blocks (counted as room) | 1,340 MB | 977 MB | | share of the pool that is free space | ~50 % | ~23 % | | host textures alive | 3,021 MB | 4,749 MB | | `TEXTURE_SOFT_MB` sweeps past its line | 0 | (off) | So the pool is much smaller on this release, but about half of it is free space inside blocks. That free space still counts as room and still cannot go back to the card, which is the #3680 point. With half the pool empty in place, a block-aware drain or repack would have about 1.3 GB to give back on an 8 GB card. Slot eviction is not what changed. In the first 28 minutes it let go a similar amount of textures that slots still showed: about 24.5 GB today against 28.5-30 GB on last night's three sessions, with 160-180 thousand re-made in each. The soft texture line never fired. What shrank the pool is not clear from this session. Frames over 100 ms in the world: 35 a minute, against 62-89 last night. Median frame 56 ms. On screen: brief low-quality versions of textures while driving fast, no missing textures. The player's words were "a huge improvement over last night". Caveats: one session. `RESIDENCY_PRIORITY=1` was on. A game-streaming host (video encoder on the same card) was running this time and not last night; its memory comes off the DXGI budget, so the budget was about 150 MB lower today. Last night's .05 sessions were on foot more than in a car.
Author
Owner

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

Log lines behind the table above (v2026.11.30.01, minute 28, pasted as text; paths cut):

2026-11-30T19:36:40.250051Z  INFO victory_gpu::host: the texture queue's room: 6745 MB in use - 1340 MB free in texture blocks + 144 MB kept for card copies of title buffers + 0 MB kept for render targets = 5549 MB against a line of 5650 MB (80.0 % of a budget of 7062 MB; 5394 MB after face headroom, 1277 MB in texture copies): no room, new textures wait
2026-11-30T19:36:40.259410Z  INFO victory_gpu::copystat: memory in blocks (VICTORY_TEXTURE_POOL=0 turns them off): 2688 MB of textures, 512 MB of their staging buffers
**@⁠CuteBooty** on GitHub · 2026-12-01 00:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7295960721) Log lines behind the table above (v2026.11.30.01, minute 28, pasted as text; paths cut): ``` 2026-11-30T19:36:40.250051Z INFO victory_gpu::host: the texture queue's room: 6745 MB in use - 1340 MB free in texture blocks + 144 MB kept for card copies of title buffers + 0 MB kept for render targets = 5549 MB against a line of 5650 MB (80.0 % of a budget of 7062 MB; 5394 MB after face headroom, 1277 MB in texture copies): no room, new textures wait 2026-11-30T19:36:40.259410Z INFO victory_gpu::copystat: memory in blocks (VICTORY_TEXTURE_POOL=0 turns them off): 2688 MB of textures, 512 MB of their staging buffers ```
Author
Owner

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

A data point on what happens once VICTORY_ROOM_REAL (on by default) says no room, from an 8 GB card. It may explain part of the "brief low-quality versions of textures" above.

RTX 4060 Laptop GPU (8 GB, budget 7,189 MB), 32 GB, Windows 11; Series S, DLSS performance, frame generation off; a local diagnostics build on c71899d9e with the play defaults; the player standing still indoors, 200 s.

2026-12-01T15:05:25.207272Z  INFO victory_gpu::resource: room for textures by what lies free in texture blocks alone: the card's memory in use is at its budget (VICTORY_ROOM_REAL, on unless =0, says no room then) times=1 in_use_mb=6934 budget_mb=7189 free_in_blocks_mb=940 refused=true
2026-12-01T15:06:25.261581Z  INFO victory_gpu::host: the texture queue's room: 6948 MB in use - 1036 MB free in texture blocks + 124 MB kept for card copies of title buffers + 0 MB kept for render targets = 6036 MB against a line of 6470 MB (90.0 % of a budget of 7189 MB; 6214 MB after face headroom, 2651 MB in texture copies): room

The card sat within 256 MiB of its budget for the rest of the run, so room() refused (resource.rs, the real_budget_blocks branch) while the queue's own count said room and about 1 GB lay free in texture blocks. What followed, with nothing moving:

  • Textures without a host copy were made from their small levels (make_small, VICTORY_SMALL_WHEN_FULL on by default), and each texture pass grew them again into the free block space (draw.rs:4279-4284: texture_room() - GROW_KEEP_FREE while there is no room). The "made from their small levels" line went up by 70-140 per 15 s, every one of them "grown to their levels" again. On screen that reads as sharp, blurry, sharp.
  • In a second run with one unrelated switch changed, card use ended 120 MB lower, the guard did not refuse, and none were made small. Which run lands in the margin is a matter of a hundred MB.

So the guard stops the queue from counting the free space as room, as this issue asks, and the free space is then used by grow_small anyway. A texture that fits the space already free in texture blocks takes no new card memory, which is what the 256 MiB margin protects, so it could be made whole there instead of small-then-grown. I have not built or run that; one run each.

AI-assisted.

**@⁠CLHelper** on GitHub · 2026-12-01 16:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3680#issuecomment-7317821007) A data point on what happens once `VICTORY_ROOM_REAL` (on by default) says no room, from an 8 GB card. It may explain part of the "brief low-quality versions of textures" above. RTX 4060 Laptop GPU (8 GB, budget 7,189 MB), 32 GB, Windows 11; Series S, DLSS performance, frame generation off; a local diagnostics build on c71899d9e with the play defaults; the player standing still indoors, 200 s. ``` 2026-12-01T15:05:25.207272Z INFO victory_gpu::resource: room for textures by what lies free in texture blocks alone: the card's memory in use is at its budget (VICTORY_ROOM_REAL, on unless =0, says no room then) times=1 in_use_mb=6934 budget_mb=7189 free_in_blocks_mb=940 refused=true 2026-12-01T15:06:25.261581Z INFO victory_gpu::host: the texture queue's room: 6948 MB in use - 1036 MB free in texture blocks + 124 MB kept for card copies of title buffers + 0 MB kept for render targets = 6036 MB against a line of 6470 MB (90.0 % of a budget of 7189 MB; 6214 MB after face headroom, 2651 MB in texture copies): room ``` The card sat within 256 MiB of its budget for the rest of the run, so `room()` refused (resource.rs, the `real_budget_blocks` branch) while the queue's own count said room and about 1 GB lay free in texture blocks. What followed, with nothing moving: - Textures without a host copy were made from their small levels (`make_small`, `VICTORY_SMALL_WHEN_FULL` on by default), and each texture pass grew them again into the free block space (`draw.rs:4279-4284`: `texture_room() - GROW_KEEP_FREE` while there is no room). The "made from their small levels" line went up by 70-140 per 15 s, every one of them "grown to their levels" again. On screen that reads as sharp, blurry, sharp. - In a second run with one unrelated switch changed, card use ended 120 MB lower, the guard did not refuse, and none were made small. Which run lands in the margin is a matter of a hundred MB. So the guard stops the queue from counting the free space as room, as this issue asks, and the free space is then used by `grow_small` anyway. A texture that fits the space already free in texture blocks takes no new card memory, which is what the 256 MiB margin protects, so it could be made whole there instead of small-then-grown. I have not built or run that; one run each. AI-assisted.
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#3680
No description provided.