0 of 141,063 texture uploads admitted for 1.5 h on v2026.11.30.03 (RTX 4060 8 GB), with ~1.5 GB of VRAM unused #4990

Open
opened 2026-12-01 16:45:58 +00:00 by github-bot · 1 comment
Owner

@⁠ffaddd-ddd on GitHub · 2026-12-01 16:43 UTC · original

AI use: written by DeepSeek (deepseek-v4.1-flash) from the reporter's logs; every figure below is quoted from the log file named at the end.

Filed again per the closing note on #1605 ("closing this because it was opened before v2026.11.29.01"). This run is on the latest release, v2026.11.30.03, driver 621.40. Both logs are attached.

What I see

Textures are not slow here. They are never admitted. Over a 4 h 58 min session on an 8 GB card the layer reports:

first-upload room decisions: 0 allowed, 141063 refused by an explicit byte limit,
                              0 without memory info, 0 with the allowance off,
                              0 at the texture-copy ceiling, 0 at the whole-card budget

0 allowed for the whole 1.5 hours of open-world play. On screen: props stay neutral grey/white (a held apple is white), and any texture that does arrive arrives minutes late. No crash in the session — device removed 0 times.

Why I do not think it is "the 8 GB card is full"

Two numbers taken at the same moment disagree about how much room there is.

At 15:39:26 the layer printed:

the texture queue's room: 7738 MB in use - 1321 MB free in texture blocks
  + 0 MB kept for card copies of title buffers + 545 MB kept for render targets
  = 6962 MB against a line of 5903 MB (90.0 % of a budget of 6559 MB;
    5647 MB after face headroom, 2384 MB in texture copies): no room, new textures wait

At that same moment nvidia-smi reported 6602 MiB / 8188 MiB — about 1.5 GB of the card still unused while every new texture was refused.

So the refusal comes from the layer's own accounting, not from the card. Two things in that line look like the reason.

1. The line moves with a budget that shrinks during the run.

11:13   budget 7188 MB   used 1274 MB   (menus)
14:40   budget 6643 MB   used 7174 MB   (first open-world minute)
15:39   budget 6559 MB   used 7738 MB
16:11   budget 6629 MB   used 7805 MB

The budget starts at the full 7188 MB and settles 7-11% lower; the trigger line is a fixed 90.0% of it (all 3,484 samples print 90.0), so the line falls from 6469 to ~5900 MB with it. Nothing in the log says what made the budget fall.

2. kept for render targets is charged against the texture room.

In the same line 545 MB is set aside for render targets before the comparison. targets_room_kept (resource.rs) exists for a real reason — its comment describes the world-load case where the queue filled the card to 99-100.5% and buffer copies were turned down for good — but here it settles at 500-750 MB held for most of the session while the texture queue is being refused.

Numbers over the session (same log)

Session 11:13:44 - 16:11:42 (4 h 58 min), 232 MB of log, 689,882 lines
Crashes / device removals 0
Frame rate, menus (capped) 30.0 fps median, 3,484 samples
Frame rate, in world (<29 fps) median 14.4, mean 15.8 (1,085 samples)
Samples under 10 fps 17 / 3,484 (0.5%)
VRAM used, peak 7,828 MB, against a budget that fell to 6,383 MB
no room, new textures wait 1,160 / 3,484 = 33.3% of samples
First uploads refused 141,063, none allowed
Shaders translated during play 4,545 (3,959 of them in the first minute after start)
picked by index changed after its upload 203 over 20 slots, 68% inside two minutes at 14:54-14:55
HERO LEAD (view inside host-written memory) 188, concentrated 14h 39 / 15h 114 / 16h 35

What I ruled out first

  • Not a compile stall: being made is 0 in the frames where textures are missing; the 4,545 translations are spread over scene changes.

  • Not a whole-card budget refusal: the counter's own breakdown says 0 at the whole-card budget and 0 at the texture-copy ceiling. All 141,063 are refused by an explicit byte limit.

  • Not the 8 GB ceiling: nvidia-smi shows ~1.5 GB unused at the same timestamp.

  • Not the old build: this is v2026.11.30.03 (SHA-256 below). My earlier report #3688 was on a locally built 2026-11-28 binary with driver 610.88, and it showed the same shape (budget 7188 falling to 6352); that is why I am re-filing rather than reopening it.

What would help me understand it

  1. Is kept for render targets meant to be charged against the texture room, or against the card's total with the queue counted separately? On this run that reserve is the difference between admitting textures and refusing them.

  2. Is the budget expected to move after the swap chain is made? If it is re-read, where, and what makes it fall 7-11%? If it is not re-read, then the 90.0% line is being applied to a figure that no longer matches the card.

  3. Which switch is the right A/B knife? I can run the same route with VICTORY_CARD_ROOM_FOR_TARGETS_MB=0, and/or a fixed VICTORY_TEXTURE_ROOM_PERCENT — tell me which pair you want and I will post both runs with the same counters.

Environment

GPU        NVIDIA GeForce RTX 4060 Laptop, 8188 MiB, driver 621.40 (32.0.16.2140)
CPU / RAM  AMD Ryzen 9 7945HX, 32 GB (31.2 visible)
OS         Windows 11 23H2, build 22631.6199
Pagefile   2 GB on C:, 32 GB on D: (commit limit 65.2 GB)
Build      v2026.11.30.03, victory.exe SHA-256 d178c927334740e0b49fdd81f0c12a332c29fe41c938ac5f6dd8412fcfea3711
Settings   series-s, SERIES S PICTURE 1280x720, DLSS off, frame generation off, cap 30
Cache      951 MB pipeline library, preloaded before the run

Logs (attached)

  1. Play log, attached twice over: victory-nvidia-play-20261201-105533-61704.log.gz (232 MB raw -> 22.1 MB gzipped, under the 25 MB limit), and session-20261201-timeline.csv (159 KB, 3,483 rows) which is the whole session one row per second: time, fps, frame_ms, prep_ms, gpu_ms, copyback_ms, vram_used_mb, queue_due, budget_mb, no_room. The CSV is enough to see the budget decline and the 0-allowed window without unpacking the 232 MB.

  2. Crash log: none, because there was no crash. %LOCALAPPDATA%\victory\data\7952987A has no crashes.log and no *.crash.log from this run — I checked.

Related and probably the same accounting: #3688 (my earlier one), #4860 (53% of slot rewrites show nothing), #4463 (one owner for the card budget), #4258 (HERO LEAD on a 3070 Ti).

session-20261201-timeline.csv
victory-nvidia-play-20261201-105533-61704.log.gz

**@⁠ffaddd-ddd** on GitHub · 2026-12-01 16:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4989) **AI use: written by DeepSeek (deepseek-v4.1-flash) from the reporter's logs; every figure below is quoted from the log file named at the end.** Filed again per the closing note on #1605 ("closing this because it was opened before v2026.11.29.01"). **This run is on the latest release, v2026.11.30.03**, driver 621.40. Both logs are attached. ## What I see Textures are not slow here. **They are never admitted.** Over a 4 h 58 min session on an 8 GB card the layer reports: ``` first-upload room decisions: 0 allowed, 141063 refused by an explicit byte limit, 0 without memory info, 0 with the allowance off, 0 at the texture-copy ceiling, 0 at the whole-card budget ``` **`0 allowed` for the whole 1.5 hours of open-world play.** On screen: props stay neutral grey/white (a held apple is white), and any texture that does arrive arrives minutes late. No crash in the session — `device removed` 0 times. ## Why I do not think it is "the 8 GB card is full" Two numbers taken at the same moment disagree about how much room there is. At 15:39:26 the layer printed: ``` the texture queue's room: 7738 MB in use - 1321 MB free in texture blocks + 0 MB kept for card copies of title buffers + 545 MB kept for render targets = 6962 MB against a line of 5903 MB (90.0 % of a budget of 6559 MB; 5647 MB after face headroom, 2384 MB in texture copies): no room, new textures wait ``` At that same moment `nvidia-smi` reported **6602 MiB / 8188 MiB** — about **1.5 GB of the card still unused** while every new texture was refused. So the refusal comes from the layer's own accounting, not from the card. Two things in that line look like the reason. **1. The line moves with a budget that shrinks during the run.** ``` 11:13 budget 7188 MB used 1274 MB (menus) 14:40 budget 6643 MB used 7174 MB (first open-world minute) 15:39 budget 6559 MB used 7738 MB 16:11 budget 6629 MB used 7805 MB ``` The budget starts at the full 7188 MB and settles 7-11% lower; the trigger line is a fixed **90.0%** of it (all 3,484 samples print 90.0), so the line falls from 6469 to ~5900 MB with it. Nothing in the log says what made the budget fall. **2. `kept for render targets` is charged against the texture room.** In the same line 545 MB is set aside for render targets before the comparison. `targets_room_kept` (resource.rs) exists for a real reason — its comment describes the world-load case where the queue filled the card to 99-100.5% and buffer copies were turned down for good — but here it settles at **500-750 MB held** for most of the session while the texture queue is being refused. ## Numbers over the session (same log) | | | |---|---| | Session | 11:13:44 - 16:11:42 (**4 h 58 min**), 232 MB of log, 689,882 lines | | Crashes / device removals | **0** | | Frame rate, menus (capped) | 30.0 fps median, 3,484 samples | | **Frame rate, in world (<29 fps)** | **median 14.4, mean 15.8** (1,085 samples) | | Samples under 10 fps | 17 / 3,484 (**0.5%**) | | VRAM used, peak | 7,828 MB, against a budget that fell to 6,383 MB | | `no room, new textures wait` | **1,160 / 3,484 = 33.3%** of samples | | First uploads refused | **141,063**, none allowed | | Shaders translated during play | 4,545 (3,959 of them in the first minute after start) | | `picked by index changed after its upload` | **203** over 20 slots, 68% inside two minutes at 14:54-14:55 | | `HERO LEAD` (view inside host-written memory) | **188**, concentrated 14h 39 / 15h 114 / 16h 35 | ## What I ruled out first - **Not a compile stall:** `being made` is 0 in the frames where textures are missing; the 4,545 translations are spread over scene changes. - **Not a whole-card budget refusal:** the counter's own breakdown says `0 at the whole-card budget` and `0 at the texture-copy ceiling`. All 141,063 are `refused by an explicit byte limit`. - **Not the 8 GB ceiling:** `nvidia-smi` shows ~1.5 GB unused at the same timestamp. - **Not the old build:** this is v2026.11.30.03 (SHA-256 below). My earlier report #3688 was on a locally built 2026-11-28 binary with driver 610.88, and it showed the same shape (budget 7188 falling to 6352); that is why I am re-filing rather than reopening it. ## What would help me understand it 1. Is `kept for render targets` meant to be charged against the *texture* room, or against the card's total with the queue counted separately? On this run that reserve is the difference between admitting textures and refusing them. 2. Is the budget expected to move after the swap chain is made? If it is re-read, where, and what makes it fall 7-11%? If it is not re-read, then the 90.0% line is being applied to a figure that no longer matches the card. 3. Which switch is the right A/B knife? I can run the same route with `VICTORY_CARD_ROOM_FOR_TARGETS_MB=0`, and/or a fixed `VICTORY_TEXTURE_ROOM_PERCENT` — tell me which pair you want and I will post both runs with the same counters. ## Environment ``` GPU NVIDIA GeForce RTX 4060 Laptop, 8188 MiB, driver 621.40 (32.0.16.2140) CPU / RAM AMD Ryzen 9 7945HX, 32 GB (31.2 visible) OS Windows 11 23H2, build 22631.6199 Pagefile 2 GB on C:, 32 GB on D: (commit limit 65.2 GB) Build v2026.11.30.03, victory.exe SHA-256 d178c927334740e0b49fdd81f0c12a332c29fe41c938ac5f6dd8412fcfea3711 Settings series-s, SERIES S PICTURE 1280x720, DLSS off, frame generation off, cap 30 Cache 951 MB pipeline library, preloaded before the run ``` ## Logs (attached) 1. Play log, attached twice over: `victory-nvidia-play-20261201-105533-61704.log.gz` (232 MB raw -> **22.1 MB** gzipped, under the 25 MB limit), and `session-20261201-timeline.csv` (**159 KB**, 3,483 rows) which is the whole session one row per second: time, fps, frame_ms, prep_ms, gpu_ms, copyback_ms, vram_used_mb, queue_due, budget_mb, no_room. The CSV is enough to see the budget decline and the 0-allowed window without unpacking the 232 MB. 2. Crash log: **none**, because there was no crash. `%LOCALAPPDATA%\victory\data\7952987A` has no `crashes.log` and no `*.crash.log` from this run — I checked. Related and probably the same accounting: #3688 (my earlier one), #4860 (53% of slot rewrites show nothing), #4463 (one owner for the card budget), #4258 (HERO LEAD on a 3070 Ti). [session-20261201-timeline.csv](https://github.com/user-attachments/files/35693664/session-20261201-timeline.csv) [victory-nvidia-play-20261201-105533-61704.log.gz](https://github.com/user-attachments/files/35693665/victory-nvidia-play-20261201-105533-61704.log.gz)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:45:59 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 16:55 UTC · original · edited 2026-12-01 16:57 UTC

I checked the header of the attached log and the release source. There is no numeric VICTORY_TEXTURE_BUDGET_MB in the header. The release counts two different things under “refused by an explicit byte limit”: a fixed texture cap and the dynamic cap derived from DXGI's current budget, the other GPU allocations, and VICTORY_TEXTURE_KEEP_FREE_MB. The dynamic cap is the relevant check here. Admission checks

The render-target reserve belongs to the separate queue-room calculation. In your 15:39:26 sample, removing its 545 MB would still leave 6,417 MB counted against the 5,903 MB line, and it would leave the dynamic cap unchanged. DXGI's budget is the OS's current target for this application. The free memory reported by nvidia-smi doesn't give the same quantity. Queue accounting · DXGI budget and usage

There are two existing PRs. #4769 separates the diagnostic counters. #4828 changes admissions so a first upload can reuse an aligned range in the correct pool without growing it. The 1,321 MB free across texture blocks in your log doesn't tell us how much fits those exact requests. If you can test #4828, the useful A/B is its base versus b3ca3736 on the same route with both proposed switches unchanged. The first-upload counts and whether the grey props recover are enough.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 16:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4989#issuecomment-7318461359) · edited 2026-12-01 16:57 UTC I checked the header of the attached log and the release source. There is no numeric `VICTORY_TEXTURE_BUDGET_MB` in the header. The release counts two different things under “refused by an explicit byte limit”: a fixed texture cap and the dynamic cap derived from DXGI's current budget, the other GPU allocations, and `VICTORY_TEXTURE_KEEP_FREE_MB`. The dynamic cap is the relevant check here. [Admission checks](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/v2026.11.30.03/crates/victory-gpu/src/resource.rs#L2624-L2654) The render-target reserve belongs to the separate queue-room calculation. In your 15:39:26 sample, removing its 545 MB would still leave 6,417 MB counted against the 5,903 MB line, and it would leave the dynamic cap unchanged. DXGI's budget is the OS's current target for this application. The free memory reported by `nvidia-smi` doesn't give the same quantity. [Queue accounting](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/v2026.11.30.03/crates/victory-gpu/src/resource.rs#L2525-L2532) · [DXGI budget and usage](https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_4/ns-dxgi1_4-dxgi_query_video_memory_info) There are two existing PRs. #4769 separates the diagnostic counters. #4828 changes admissions so a first upload can reuse an aligned range in the correct pool without growing it. The 1,321 MB free across texture blocks in your log doesn't tell us how much fits those exact requests. If you can test #4828, the useful A/B is its base versus `b3ca3736` on the same route with both proposed switches unchanged. The first-upload counts and whether the grey props recover are enough.
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#4990
No description provided.