gpu: size the render targets' room by the peak they have held, not a flat 3 GiB #76

Merged
starnotes-xj merged 1 commit from upstream-pr/76 into main 2026-11-28 19:01:28 +00:00
starnotes-xj commented 2026-11-27 16:45:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by starnotes-xj on 2026-11-27T16:45:20Z.


What this fixes

On an 8 GB card the SeriesS / SeriesX2 profiles (720p scene) render black faces on every NPC and leave the phone's screen empty, while the card is less than half used. The cause is in the room kept for render targets:

texture queue's room: 2973 MB in use - 316 MB free in texture blocks
  + 850 MB kept for card copies + 2675 MB kept for render targets
  = 6182 MB against a line of 6181 MB (86.0 % of a budget of 7188 MB): no room, new textures wait

VICTORY_CARD_ROOM_FOR_TARGETS_MB keeps a flat 3,072 MiB, and it is only given back once the targets hold half of it (1,536 MB) and have not grown for 20 s. A 720p world's targets never reach that: they hold ~390 MB for the whole run, so 2,675 MB stayed reserved for targets that never come and the texture queue refused new textures with the card 41 % used. The skin textures of passers-by, the coffee shop's waitress and the phone's screen were never uploaded.

The change

crates/victory-gpu/src/resource.rs: the room is sized by the most the targets have held this run — half as much again, at least 256 MiB, never more than the switch's amount.

fn targets_kept_from_peak(most: u64, targets: u64, peak: u64) -> u64 {
    const LEAST: u64 = 256 << 20;
    peak.saturating_add(peak / 2).max(LEAST).min(most).saturating_sub(targets)
}
  • targets_room_kept tracks the peak in a static and calls it;
  • when VICTORY_CARD_ROOM_FOR_TARGETS_MB is set, the old flat rule is used unchanged, so existing tuning behaves as before;
  • targets_kept and its test stay for that path;
  • new test room_for_targets_follows_their_peak (the 390 MB figure is the measured one).

Measured (RTX 4060 Laptop, 8 GB, -SeriesS -Dlss quality, release build)

room kept for targets dedicated VRAM used / budget out of VRAM fps
before 2,675 MB 6,182 MB left to textures, card 41 % used — 13, black faces
after 585 MB 6,648 / 6,815 MB 0 13–15, peak 21

With the fix, passers-by, the coffee shop's waitress, the street and the phone's bezel all render correctly, and the card no longer goes over its budget (the hand-cut workaround, releasing the reserve and lowering VICTORY_TEXTURE_ROOM_PERCENT to 78, overfilled at 6,895 MB with 43 out of VRAM events).

A 1440p world's peak of 2.9 GB still gets the switch's full 3,072 MB, so the profile the numbers were tuned on keeps what it had.

cargo test -p victory-gpu --lib room_for_targets → 2 passed.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5530129173 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76). Originally posted by [starnotes-xj](https://github.com/starnotes-xj) on 2026-11-27T16:45:20Z. --- ## What this fixes On an 8 GB card the SeriesS / SeriesX2 profiles (720p scene) render **black faces on every NPC** and leave the phone's screen empty, while the card is less than half used. The cause is in the room kept for render targets: ``` texture queue's room: 2973 MB in use - 316 MB free in texture blocks + 850 MB kept for card copies + 2675 MB kept for render targets = 6182 MB against a line of 6181 MB (86.0 % of a budget of 7188 MB): no room, new textures wait ``` `VICTORY_CARD_ROOM_FOR_TARGETS_MB` keeps a flat 3,072 MiB, and it is only given back once the targets hold **half** of it (1,536 MB) and have not grown for 20 s. A 720p world's targets never reach that: they hold ~390 MB for the whole run, so **2,675 MB stayed reserved for targets that never come** and the texture queue refused new textures with the card 41 % used. The skin textures of passers-by, the coffee shop's waitress and the phone's screen were never uploaded. ## The change `crates/victory-gpu/src/resource.rs`: the room is sized by **the most the targets have held this run** — half as much again, at least 256 MiB, never more than the switch's amount. ```rust fn targets_kept_from_peak(most: u64, targets: u64, peak: u64) -> u64 { const LEAST: u64 = 256 << 20; peak.saturating_add(peak / 2).max(LEAST).min(most).saturating_sub(targets) } ``` - `targets_room_kept` tracks the peak in a static and calls it; - when `VICTORY_CARD_ROOM_FOR_TARGETS_MB` is set, the old flat rule is used unchanged, so existing tuning behaves as before; - `targets_kept` and its test stay for that path; - new test `room_for_targets_follows_their_peak` (the 390 MB figure is the measured one). ## Measured (RTX 4060 Laptop, 8 GB, `-SeriesS -Dlss quality`, release build) | | room kept for targets | dedicated VRAM used / budget | `out of VRAM` | fps | |---|---|---|---|---| | before | 2,675 MB | 6,182 MB left to textures, card 41 % used | — | 13, black faces | | **after** | **585 MB** | **6,648 / 6,815 MB** | **0** | **13–15, peak 21** | With the fix, passers-by, the coffee shop's waitress, the street and the phone's bezel all render correctly, and the card no longer goes over its budget (the hand-cut workaround, releasing the reserve and lowering `VICTORY_TEXTURE_ROOM_PERCENT` to 78, overfilled at 6,895 MB with 43 `out of VRAM` events). A 1440p world's peak of 2.9 GB still gets the switch's full 3,072 MB, so the profile the numbers were tuned on keeps what it had. `cargo test -p victory-gpu --lib room_for_targets` → 2 passed.
cride9 commented 2026-11-27 16:53:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cride9 on 2026-11-27T16:53:52Z.


sup, tested it with a desktop 3050 and ryzen 5 5600 32gb DDR4 system ram.

Got around 25fps avarage with lucia inside the prison. And around 18-22fps on the water.
My claude merged it and it looks like working (but idk)

-Build release -SeriesS -Dlss performance -Fps 60 -More @{VICTORY_THIN='0'; VICTORY_JOIN_PARTS='1'}

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7223795578 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7223795578). Originally posted by [cride9](https://github.com/cride9) on 2026-11-27T16:53:52Z. --- sup, tested it with a desktop 3050 and ryzen 5 5600 32gb DDR4 system ram. Got around 25fps avarage with lucia inside the prison. And around 18-22fps on the water. My claude merged it and it looks like working (but idk) `-Build release -SeriesS -Dlss performance -Fps 60 -More @{VICTORY_THIN='0'; VICTORY_JOIN_PARTS='1'}`
Pierrespeick commented 2026-11-27 22:09:51 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Pierrespeick on 2026-11-27T22:09:51Z.


Additional test on an 8 GiB NVIDIA Wave32 card, with 0f0ada1 as the base for both builds. I applied 05a269d on top for the second run. Both builds used diagnostics, Series S, DLSS off, frame generation off, and separate copies of the same starting save.

  • Base — Audio and subtitles played over a black image in the opening cinematic, at about 3.5 FPS. In one representative sample, dedicated VRAM was 5,633 MB in use against a 6,792 MB budget. The texture queue still reported no room: 6,474 MB accounted against its 6,113 MB threshold, including 1,584 MB kept for render targets.
  • With the patch — The opening image returned and the prison and lake reached about 17–21 FPS under player control. Median render-target reserve across the diagnostic samples fell from 2,798 MB to 782 MB. The patched run went farther and had more samples, so these are session summaries. It still hit no room in some scenes and showed intermittent black or coloured surfaces.
  • Remaining stalls — In the patched run, 10 of the 13 high-draw samples below 5 FPS had six or fewer host pipelines still being made. Some slow samples had texture queue headroom and some were over the threshold. These stalls are worth measuring separately from startup shader compilation and the reserve fix.

The patched run reused the baseline shader and pipeline cache, so this is evidence for the budget and rendering behaviour. A same-scene warm-cache FPS comparison is still needed. Both sessions ended by closing the window. This summary uses aggregate diagnostics and visual observations. Prepared with Codex assistance.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7229083875 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7229083875). Originally posted by [Pierrespeick](https://github.com/Pierrespeick) on 2026-11-27T22:09:51Z. --- Additional test on an 8 GiB NVIDIA Wave32 card, with `0f0ada1` as the base for both builds. I applied `05a269d` on top for the second run. Both builds used diagnostics, Series S, DLSS off, frame generation off, and separate copies of the same starting save. - **Base** — Audio and subtitles played over a black image in the opening cinematic, at about 3.5 FPS. In one representative sample, dedicated VRAM was 5,633 MB in use against a 6,792 MB budget. The texture queue still reported `no room`: 6,474 MB accounted against its 6,113 MB threshold, including 1,584 MB kept for render targets. - **With the patch** — The opening image returned and the prison and lake reached about 17–21 FPS under player control. Median render-target reserve across the diagnostic samples fell from 2,798 MB to 782 MB. The patched run went farther and had more samples, so these are session summaries. It still hit `no room` in some scenes and showed intermittent black or coloured surfaces. - **Remaining stalls** — In the patched run, 10 of the 13 high-draw samples below 5 FPS had six or fewer host pipelines still being made. Some slow samples had texture queue headroom and some were over the threshold. These stalls are worth measuring separately from startup shader compilation and the reserve fix. The patched run reused the baseline shader and pipeline cache, so this is evidence for the budget and rendering behaviour. A same-scene warm-cache FPS comparison is still needed. Both sessions ended by closing the window. This summary uses aggregate diagnostics and visual observations. Prepared with Codex assistance.
CuteBooty commented 2026-11-28 01:51:37 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-28T01:51:37Z.


Data from an RTX 3070 8 GB at 1080p that shows the same thing this PR describes, at one spot in the world: Jason's house (the interior with the terrarium, and its outside walls). I have not built or run this PR's code; these are log figures from builds without it.

Setup: RTX 3070 8 GB (DXGI budget 7,250 MB at start, 6.3-7.0 GB in play), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, no DLSS, no frame generation, ray tracing off, built from source, started from my own script (not the launcher; switches on request). VICTORY_CARD_ROOM_FOR_TARGETS_MB not set, so the flat 3,072 MB rule.

Three short runs, same save, standing in and walking around that house. All figures are from the the texture queue's room: line (one sample every 5 s).

run A run B run C
base 64d4931b3 64d4931b3, VICTORY_BUFFERS_AHEAD=0 f3534e6b0
length 9.5 min 6.4 min 10 min
samples saying "no room, new textures wait" 83 of 111 55 of 72 111 of 116
first "no room" after start 53 s 92 s 37 s
card "in use" during no room (min / median / max) 4,755 / 5,462 / 6,603 MB 4,679 / 5,380 / 5,525 MB 4,775 / 5,764 / 5,782 MB
free in texture blocks (median) 413 MB 693 MB 826 MB
kept for render targets (min / median / max) 0 / 1,599 / 1,956 MB 1,751 / 1,828 / 2,054 MB 1,690 / 1,699 / 2,054 MB
"no room" samples that would have had room without that reserve 77 of 83 55 of 55 111 of 111
reserve given back once, 6 min 48 s in never never
brought up to date although the card has no room lines 1,032 453 1,297

What I read from it:

  • In 243 of 249 "no room" samples the card was not full. The sum went over the line only because 1.6-2.0 GB was still kept for render targets.
  • The targets level off just under the release point. In run C the reserve sat at 1,690 MB for the last six minutes, so the targets held about 1,380 MB: more than a 720p world's 390 MB in this PR's description, but still under half of 3,072 MB (1,536 MB), so the reserve was never given back. A typical sample from run C: 5782 MB in use - 818 MB free in texture blocks + 106 MB kept for card copies of title buffers + 1690 MB kept for render targets = 6760 MB against a line of 6247 MB (90.0 % of a budget of 6942 MB): no room, new textures wait.
  • In run A the reserve fell to 1,486 MB (targets over 1,536 MB), was given back at 6 min 48 s, and the line said "room" again for the next 20 samples.
  • By eye: in run C the interior was almost all black after standing in it for several minutes (walls, floor and furniture missing), while the world outside looked mostly fine; the house's outside walls were also worse than other buildings. In run A the room was readable, with the gravel in the terrarium at its lowest detail. I can't say from one run each that the reserve being given back in A is the reason for that difference.

By this PR's rule, a peak of about 1,380 MB would keep about 2,070 MB less what the targets hold, so roughly 690 MB instead of 1,690 MB at that spot.

The same spot with VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048 (the old flat rule with a lower amount, so the release point is 1,024 MB; 64d4931b3 + PR #560, VICTORY_BUFFERS_AHEAD=0, otherwise as run B; one run of 14.3 minutes):

run B (3,072, default; 6.4 min) run D (2,048; 14.3 min)
samples saying "no room" 55 of 72 62 of 164 (28 of 103 in the first 9 minutes, 34 of 61 after)
reserve given back never 78 s after start; back twice for under a minute (517-920 MB) when the targets grew
"no room" samples that would have had room without the reserve 55 of 55 14 of 62
card "in use" at the end / budget 5,525 MB / 6.7-7.25 GB 6,811 MB / 6.5-7.0 GB
brought up to date although the card has no room lines a minute about 70 about 41
out of VRAM, E_OUTOFMEMORY, ERROR lines 0 0

So with the reserve released the queue has room where it had none, and the card then really fills: 48 of the 62 remaining "no room" samples are the card at its budget (in use 6.75-6.8 GB, above the DXGI budget in 18 samples), not the reserve, and they get more frequent as the run goes on. One run; I have no by-eye verdict on the walls and floor for it. The one thing noticed by eye in that run was the player character's face skin turning flat white-grey at the house; I don't know whether that has anything to do with the fuller card.

Caveats: short runs in one sitting, one machine; run A rebuilt its shader caches, the others had warm ones; A / B / D and C are different bases, and D carries PR #560. Not tested: this PR's code. I have photos of the two interiors but am not attaching them.

Separate from this: the blue-white glow on the table and floor in the same room on 64d4931b3 looks like the indoor reflection problem in #468 and #507 (same house), not memory.

Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7231965547 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7231965547). Originally posted by [CuteBooty](https://github.com/CuteBooty) on 2026-11-28T01:51:37Z. --- Data from an RTX 3070 8 GB at 1080p that shows the same thing this PR describes, at one spot in the world: Jason's house (the interior with the terrarium, and its outside walls). **I have not built or run this PR's code**; these are log figures from builds without it. Setup: RTX 3070 8 GB (DXGI budget 7,250 MB at start, 6.3-7.0 GB in play), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, no DLSS, no frame generation, ray tracing off, built from source, started from my own script (not the launcher; switches on request). `VICTORY_CARD_ROOM_FOR_TARGETS_MB` not set, so the flat 3,072 MB rule. Three short runs, same save, standing in and walking around that house. All figures are from the `the texture queue's room:` line (one sample every 5 s). | | run A | run B | run C | |---|---|---|---| | base | `64d4931b3` | `64d4931b3`, `VICTORY_BUFFERS_AHEAD=0` | `f3534e6b0` | | length | 9.5 min | 6.4 min | 10 min | | samples saying "no room, new textures wait" | 83 of 111 | 55 of 72 | 111 of 116 | | first "no room" after start | 53 s | 92 s | 37 s | | card "in use" during no room (min / median / max) | 4,755 / 5,462 / 6,603 MB | 4,679 / 5,380 / 5,525 MB | 4,775 / 5,764 / 5,782 MB | | free in texture blocks (median) | 413 MB | 693 MB | 826 MB | | kept for render targets (min / median / max) | 0 / 1,599 / 1,956 MB | 1,751 / 1,828 / 2,054 MB | 1,690 / 1,699 / 2,054 MB | | "no room" samples that would have had room without that reserve | 77 of 83 | 55 of 55 | 111 of 111 | | reserve given back | once, 6 min 48 s in | never | never | | `brought up to date although the card has no room` lines | 1,032 | 453 | 1,297 | What I read from it: - In 243 of 249 "no room" samples the card was not full. The sum went over the line only because 1.6-2.0 GB was still kept for render targets. - The targets level off just under the release point. In run C the reserve sat at 1,690 MB for the last six minutes, so the targets held about 1,380 MB: more than a 720p world's 390 MB in this PR's description, but still under half of 3,072 MB (1,536 MB), so the reserve was never given back. A typical sample from run C: `5782 MB in use - 818 MB free in texture blocks + 106 MB kept for card copies of title buffers + 1690 MB kept for render targets = 6760 MB against a line of 6247 MB (90.0 % of a budget of 6942 MB): no room, new textures wait`. - In run A the reserve fell to 1,486 MB (targets over 1,536 MB), was given back at 6 min 48 s, and the line said "room" again for the next 20 samples. - By eye: in run C the interior was almost all black after standing in it for several minutes (walls, floor and furniture missing), while the world outside looked mostly fine; the house's outside walls were also worse than other buildings. In run A the room was readable, with the gravel in the terrarium at its lowest detail. I can't say from one run each that the reserve being given back in A is the reason for that difference. By this PR's rule, a peak of about 1,380 MB would keep about 2,070 MB less what the targets hold, so roughly 690 MB instead of 1,690 MB at that spot. **The same spot with `VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048`** (the old flat rule with a lower amount, so the release point is 1,024 MB; `64d4931b3` + PR #560, `VICTORY_BUFFERS_AHEAD=0`, otherwise as run B; one run of 14.3 minutes): | | run B (3,072, default; 6.4 min) | run D (2,048; 14.3 min) | |---|---|---| | samples saying "no room" | 55 of 72 | 62 of 164 (28 of 103 in the first 9 minutes, 34 of 61 after) | | reserve given back | never | 78 s after start; back twice for under a minute (517-920 MB) when the targets grew | | "no room" samples that would have had room without the reserve | 55 of 55 | 14 of 62 | | card "in use" at the end / budget | 5,525 MB / 6.7-7.25 GB | 6,811 MB / 6.5-7.0 GB | | `brought up to date although the card has no room` lines a minute | about 70 | about 41 | | `out of VRAM`, `E_OUTOFMEMORY`, ERROR lines | 0 | 0 | So with the reserve released the queue has room where it had none, and the card then really fills: 48 of the 62 remaining "no room" samples are the card at its budget (in use 6.75-6.8 GB, above the DXGI budget in 18 samples), not the reserve, and they get more frequent as the run goes on. One run; I have no by-eye verdict on the walls and floor for it. The one thing noticed by eye in that run was the player character's face skin turning flat white-grey at the house; I don't know whether that has anything to do with the fuller card. Caveats: short runs in one sitting, one machine; run A rebuilt its shader caches, the others had warm ones; A / B / D and C are different bases, and D carries PR #560. Not tested: this PR's code. I have photos of the two interiors but am not attaching them. Separate from this: the blue-white glow on the table and floor in the same room on `64d4931b3` looks like the indoor reflection problem in #468 and #507 (same house), not memory. Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.
starnotes-xj commented 2026-11-28 07:21:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by starnotes-xj on 2026-11-28T07:21:18Z.


Another 8 GiB datapoint, and the root cause of the "characters have no faces" report (#100) — it is three problems stacked, and the last two are why the pass looked unfixable on 32-lane hosts.

Card: RTX 4060 Laptop 8 GB, 32-thread CPU, 2560x1440 output, Series S, DLSS Quality, frame generation off.

1. The pass was left out by the launchers. Both scripts/play-foxhound.ps1 and apps/victory/src/play.rs set VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298. 02384a60fda6f2d0 is vfx_triangleClip:CS_DefragHeap_ComputeRelocations, which places the faces' meshes. Left out, eyes, teeth and hair still draw and the face does not, so a character reads as a black head. The F1 item calls it "DECAL DEFRAG", so nothing says it costs the faces (#490 makes the launchers leave out heat haze only).

2. Not left out, it is refused on wave32 hosts: no wave32 lowering for this wave64 program. Part of that was a regression of 64d4931: its loop retry is given when w <= *wave, so when both attempts still want 64 lanes the retry is taken anyway and lower::take_needs() drops the blocks the first lowering named — which are exactly what widen widens, so widen stops at 64 (#560).

3. What is left goes to the split-wave64 fallback (#259), which only runs after every other form.

With all three, the log goes:

INFO victory_gpu::pipeline: shader translated stage="compute" hash=02384a60fda6f2d0 user_data=1 samplers=0
INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 02384a60fda6f2d0]

and the faces come back in the cafe cutscene (the child and the man in the pink shirt). The only program still refused in a whole run is 6b82bc7d22016cb5 (the meshlet collector, groups of 1024, LDS past 32 KiB), which #101 names as still open.

On top of that, #669 (a first upload admitted just over the room line within a 5 s window, at its real bytes) is worth pairing with the reserve fix here: on this card it took the same scene from 12.6-14 fps and 45-47 ms of preparing a frame to 17.9-18.0 fps and 31.5 ms — so the reserve fix and the admission fix are complementary, not alternatives.

Our save point with all of it is save-2026-11-28-faces in starnotes-xj/VIctory-NVIDIA (latest main + #76 + #490 + #469 + #560 + #259 + #669).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7235880488 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7235880488). Originally posted by [starnotes-xj](https://github.com/starnotes-xj) on 2026-11-28T07:21:18Z. --- Another 8 GiB datapoint, and the root cause of the "characters have no faces" report (#100) — it is three problems stacked, and the last two are why the pass looked unfixable on 32-lane hosts. Card: RTX 4060 Laptop 8 GB, 32-thread CPU, 2560x1440 output, Series S, DLSS Quality, frame generation off. **1. The pass was left out by the launchers.** Both `scripts/play-foxhound.ps1` and `apps/victory/src/play.rs` set `VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298`. `02384a60fda6f2d0` is `vfx_triangleClip:CS_DefragHeap_ComputeRelocations`, which places the faces' meshes. Left out, eyes, teeth and hair still draw and the face does not, so a character reads as a black head. The F1 item calls it "DECAL DEFRAG", so nothing says it costs the faces (#490 makes the launchers leave out heat haze only). **2. Not left out, it is refused on wave32 hosts:** `no wave32 lowering for this wave64 program`. Part of that was a regression of `64d4931`: its loop retry is given when `w <= *wave`, so when both attempts still want 64 lanes the retry is taken anyway and `lower::take_needs()` drops the blocks the first lowering named — which are exactly what `widen` widens, so `widen` stops at 64 (#560). **3. What is left goes to the split-wave64 fallback** (#259), which only runs after every other form. With all three, the log goes: ``` INFO victory_gpu::pipeline: shader translated stage="compute" hash=02384a60fda6f2d0 user_data=1 samplers=0 INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 02384a60fda6f2d0] ``` and the faces come back in the cafe cutscene (the child and the man in the pink shirt). The only program still refused in a whole run is `6b82bc7d22016cb5` (the meshlet collector, groups of 1024, LDS past 32 KiB), which #101 names as still open. On top of that, #669 (a first upload admitted just over the room line within a 5 s window, at its real bytes) is worth pairing with the reserve fix here: on this card it took the same scene from 12.6-14 fps and 45-47 ms of preparing a frame to 17.9-18.0 fps and 31.5 ms — so the reserve fix and the admission fix are complementary, not alternatives. Our save point with all of it is `save-2026-11-28-faces` in starnotes-xj/VIctory-NVIDIA (latest main + #76 + #490 + #469 + #560 + #259 + #669).
urielbeaupre commented 2026-11-28 12:27:19 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by urielbeaupre on 2026-11-28T12:27:19Z.


Same finding on a 12 GB card, so this isn't only an 8 GB problem. RTX 4070 Ti 12 GB (budget about 10.4 GB), Series S profile, -FrameGen, so the texture line is 80%. I tested my own local fix for the same cause (let the reserve go once the targets pass 768 MiB and settle, not at half of 3 GB). Your peak-based sizing covers the same case, so I'm not opening a second PR.

On main, the room kept for render targets never went: it stayed at 1,772–1,951 MB for the whole run. A 720p world's targets level off at about 1.0–1.3 GB, under the 1,536 MB they would need to reach. A typical line from the log:

8053 MB in use - 1642 MB free in texture blocks + 116 MB kept for card copies + 1946 MB kept for render targets = 8473 MB against a line of 8282 MB

Same save and route, 3 minutes each:

main reserve released
room kept for render targets in play 1.8–1.95 GB throughout 0 most of the time
"brought up to date although the card has no room" by the end 58,000 (200,000 in an earlier run) 20,500
frame generation out of memory no no

One more thing your peak sizing should handle, which I hit with the plain release: after the targets had settled, a new scene grew them by 64 MiB, and the full 1.8 GB came back for 20 s. Sizing by the peak avoids that.

Fps doesn't change here (the CPU is the limit). The gain is in the picture: objects that stayed black with frame generation get their textures.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239238454 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7239238454). Originally posted by [urielbeaupre](https://github.com/urielbeaupre) on 2026-11-28T12:27:19Z. --- Same finding on a 12 GB card, so this isn't only an 8 GB problem. RTX 4070 Ti 12 GB (budget about 10.4 GB), Series S profile, `-FrameGen`, so the texture line is 80%. I tested my own local fix for the same cause (let the reserve go once the targets pass 768 MiB and settle, not at half of 3 GB). Your peak-based sizing covers the same case, so I'm not opening a second PR. On main, the room kept for render targets never went: it stayed at **1,772–1,951 MB** for the whole run. A 720p world's targets level off at about 1.0–1.3 GB, under the 1,536 MB they would need to reach. A typical line from the log: ``` 8053 MB in use - 1642 MB free in texture blocks + 116 MB kept for card copies + 1946 MB kept for render targets = 8473 MB against a line of 8282 MB ``` Same save and route, 3 minutes each: | | main | reserve released | |---|---|---| | room kept for render targets in play | 1.8–1.95 GB throughout | 0 most of the time | | "brought up to date although the card has no room" by the end | 58,000 (200,000 in an earlier run) | 20,500 | | frame generation out of memory | no | no | One more thing your peak sizing should handle, which I hit with the plain release: after the targets had settled, a new scene grew them by 64 MiB, and the full 1.8 GB came back for 20 s. Sizing by the peak avoids that. Fps doesn't change here (the CPU is the limit). The gain is in the picture: objects that stayed black with frame generation get their textures. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ArturoWolff commented 2026-11-28 12:56:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ArturoWolff on 2026-11-28T12:56:29Z.


Another independent 8 GB Linux data point for the reservation discussion (configuration-only, not a test of this PR's patch). RTX 4060 desktop, 16 GB system RAM, NVIDIA 620.73.04 / GE-Proton11-14, publisher release v2026.11.28.01 (63b902fe). Series X 1080to1440, actual 2560×1440 swap chain, DLSS/FG off, full write-back, default launcher feature omissions retained for this diagnostic. Both launches use the native compiler from the #357 comparison, independent fresh prefixes, identical copied engine shader/pipeline/book cache manifests, fresh external driver caches. The only requested renderer setting changed was VICTORY_CARD_ROOM_FOR_TARGETS_MB=2304 (control unset, default 3072). No change to texture detail or render settings.

Complete periodic log samples 3072 default 2304 override
No-room samples 17/36 13/33
No-room samples where subtracting the target reserve would put the accounted total below the reported line 17/17 13/13
Median target reserve in no-room samples (MiB) 1302 589
Maximum sampled reported VRAM use (MiB) 6092 6282
Maximum sampled reported use/budget 90.80% 93.51%
Samples at or above reported budget 0 0
Engine log span 218.34 s 203.45 s
Actual play exit 1 1

Both had zero tracked E5005 warnings, no recorded out-of-VRAM/E_OUTOFMEMORY/device-removed markers, no 128 MiB floor stop, and no recorded kernel GPU fault. Minimum available host RAM was 325052 KiB vs 328668 KiB. The prior two cold runs also had target-reserve-dependent refusals in all denied periodic samples (31/69 with the Wine compiler, 25/53 with the native compiler).

These figures confirm that the reserve still determines many admission refusals in this Linux loading workload, even at the 2304 override. The increased actual VRAM use is important: the hypothetical subtraction is not a recommendation to remove reservation, and the source documents larger future 1440p target demand. In the existing flat policy, changing the cap also changes the half-cap settlement threshold (1536 to 1152 MiB) and affects eviction eligibility, not merely upload admission. Both runs still had hundreds of outstanding pipelines, substantial drops, and variable loading frame times; neither has a verified rendered gameplay scene or matched visual-quality/FPS result. I have not tested the peak-based patch here. Different progression and rounded periodic accounting limit causal comparison of session-level counts. This is evidence for testing adaptive reservation, not a claim of fixed black textures or a speedup.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239574591 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/76#issuecomment-7239574591). Originally posted by [ArturoWolff](https://github.com/ArturoWolff) on 2026-11-28T12:56:29Z. --- Another independent 8 GB Linux data point for the reservation discussion (configuration-only, **not** a test of this PR's patch). RTX 4060 desktop, 16 GB system RAM, NVIDIA 620.73.04 / GE-Proton11-14, publisher release v2026.11.28.01 (`63b902fe`). Series X `1080to1440`, actual 2560×1440 swap chain, DLSS/FG off, full write-back, default launcher feature omissions retained for this diagnostic. Both launches use the native compiler from [the #357 comparison](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/357#issuecomment-7239359694), independent fresh prefixes, identical copied engine shader/pipeline/book cache manifests, fresh external driver caches. The only requested renderer setting changed was `VICTORY_CARD_ROOM_FOR_TARGETS_MB=2304` (control unset, default 3072). No change to texture detail or render settings. | Complete periodic log samples | 3072 default | 2304 override | |---|---:|---:| | No-room samples | 17/36 | 13/33 | | No-room samples where subtracting the target reserve would put the accounted total below the reported line | 17/17 | 13/13 | | Median target reserve in no-room samples (MiB) | 1302 | 589 | | Maximum sampled reported VRAM use (MiB) | 6092 | 6282 | | Maximum sampled reported use/budget | 90.80% | 93.51% | | Samples at or above reported budget | 0 | 0 | | Engine log span | 218.34 s | 203.45 s | | Actual play exit | 1 | 1 | Both had zero tracked E5005 warnings, no recorded out-of-VRAM/E_OUTOFMEMORY/device-removed markers, no 128 MiB floor stop, and no recorded kernel GPU fault. Minimum available host RAM was 325052 KiB vs 328668 KiB. The prior two cold runs also had target-reserve-dependent refusals in all denied periodic samples (31/69 with the Wine compiler, 25/53 with the native compiler). These figures confirm that the reserve still determines many admission refusals in this Linux loading workload, even at the 2304 override. The increased actual VRAM use is important: the hypothetical subtraction is not a recommendation to remove reservation, and the source documents larger future 1440p target demand. In the existing flat policy, changing the cap also changes the half-cap settlement threshold (1536 to 1152 MiB) and affects eviction eligibility, not merely upload admission. Both runs still had hundreds of outstanding pipelines, substantial drops, and variable loading frame times; neither has a verified rendered gameplay scene or matched visual-quality/FPS result. I have not tested the peak-based patch here. Different progression and rounded periodic accounting limit causal comparison of session-level counts. This is evidence for testing adaptive reservation, not a claim of fixed black textures or a speedup. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!76
No description provided.