Low-detail ("clay") textures while driving fast: trees become one blob, road without detail, pedestrians vanish; card memory not full (RTX 4080) #4237

Open
opened 2026-11-30 18:09:14 +00:00 by github-bot · 3 comments
Owner

@⁠Lag0 on GitHub · 2026-11-30 17:39 UTC · original

Builds: v2026.11.29.05 built from source (diag profile), alone and with the open PRs #3043, #3487 and #3488 merged on top. Both builds also carry five local commits that change only docs, CI and the replay recorder, which was off.
PC: RTX 4080 16 GB (driver 621.40), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26300.
Settings: Series X mode, 1440p, DLSS Quality, frame generation off, ray tracing off. Shaders were preloaded before play.

What happened

While driving fast through the city, many surfaces show only a low-detail version of their texture, smooth like clay, and do not sharpen while the car moves:

  • trees turn into one green blob;
  • the road loses its detail;
  • some pedestrians disappear.

The same player drove the same route on three builds for 3 minutes each, with a warm cache:

build fps median p10 worst frame card memory in use (start → 3 min) / budget
v2026.11.29.03 17.8 14.2 101 ms 8.6 → 10.7 / ~15 GB
v2026.11.29.05 18.0 15.0 74 ms 8.4 → 10.4 / ~15 GB
v2026.11.29.05 + #3043/#3487/#3488 19.6 17.3 73 ms 8.9 → 10.7 / ~15 GB

The player saw the most low-detail textures on the last build, which was also the smoothest. During these runs the card was about 4 GB under its budget. So the low levels were not caused by a full card, as far as the memory now lines show.

Notes

  • My guess is that the full texture levels arrive too late at driving speed, or are not asked for. One candidate is #2493 (VICTORY_SMALL_WHEN_FULL, small levels instead of waiting). I have not tested this.
  • Not yet compared on v2026.11.30.01 or .02. On v2026.11.30.01 the same player instead saw strong texture flicker in the city (see #4118, #4218).
**@⁠Lag0** on GitHub · 2026-11-30 17:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4236) **Builds:** v2026.11.29.05 built from source (`diag` profile), alone and with the open PRs #3043, #3487 and #3488 merged on top. Both builds also carry five local commits that change only docs, CI and the replay recorder, which was off. **PC:** RTX 4080 16 GB (driver 621.40), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro 26300. **Settings:** Series X mode, 1440p, DLSS Quality, frame generation off, ray tracing off. Shaders were preloaded before play. ## What happened While driving fast through the city, many surfaces show only a low-detail version of their texture, smooth like clay, and do not sharpen while the car moves: - trees turn into one green blob; - the road loses its detail; - some pedestrians disappear. The same player drove the same route on three builds for 3 minutes each, with a warm cache: | build | fps median | p10 | worst frame | card memory in use (start → 3 min) / budget | |---|---|---|---|---| | v2026.11.29.03 | 17.8 | 14.2 | 101 ms | 8.6 → 10.7 / ~15 GB | | v2026.11.29.05 | 18.0 | 15.0 | 74 ms | 8.4 → 10.4 / ~15 GB | | v2026.11.29.05 + #3043/#3487/#3488 | 19.6 | 17.3 | 73 ms | 8.9 → 10.7 / ~15 GB | The player saw the most low-detail textures on the last build, which was also the smoothest. During these runs the card was about 4 GB under its budget. So the low levels were not caused by a full card, as far as the `memory now` lines show. ## Notes - My guess is that the full texture levels arrive too late at driving speed, or are not asked for. One candidate is #2493 (`VICTORY_SMALL_WHEN_FULL`, small levels instead of waiting). I have not tested this. - Not yet compared on v2026.11.30.01 or .02. On v2026.11.30.01 the same player instead saw strong texture flicker in the city (see #4118, #4218).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:09:14 +00:00
Author
Owner

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

@⁠CubeB on GitHub · 2026-11-30 18:23 UTC · original

A likely cause for the "clay" textures on the build with #3043/#3487/#3488, from my fork, which carries the same PRs plus #3062.

On cards with more than 8 GB, resource::held_only() (VICTORY_HELD_LEVELS, on by default) makes a texture's host copy hold only the levels its views show, starting at the title's level base. Without #3062, title copies still name their subresource by the title's index. A copy of the title's mip 0 (256x256, say) then lands on the held copy's first level, which is smaller (128x128). #3043's geometry check (097b5070, plus 92065d20 for indices past the end) and the copy repair in #3488 see a copy that does not fit and drop it. Each level of the chain is dropped in turn, so the texture keeps whatever low level it already had. That fits trees as one blob and a road without detail, and it gets worse the faster you drive, because more textures stream in at once.

The same case is in a #3043 comment (2026-11-30 00:25Z): a mip chain of format 3 into 78, sources 256 down to 8 against host levels 128 down to 4, dropped six times, then indices 6 to 8 past a texture with 6 subresources.

To check on your build:

  • grep the play log for skipping out-of-bounds or unaligned CopyTextureRegion, copy repair: and close guard:. Many of these while driving fast would confirm it.
  • A/B with VICTORY_HELD_LEVELS=0 (full mip chains in host copies). That needs more card memory, but you are about 4 GB under budget.
  • Or add #3062, which maps the title's index to the held copy's before those checks run, together with tyr0nsur's read-back follow-up cb3f59d from the #3062 thread. Without that follow-up, read backs with no box copy an unwritten tail into title memory, and read backs with a box use the wrong GPU pitch.

I have not reproduced the clay textures myself; this is from reading the code paths and that #3043 comment.

🤖 Generated with Claude Code

**@⁠CubeB** on GitHub · 2026-11-30 18:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4236#issuecomment-7287787052) A likely cause for the "clay" textures on the build with #3043/#3487/#3488, from my fork, which carries the same PRs plus #3062. On cards with more than 8 GB, `resource::held_only()` (`VICTORY_HELD_LEVELS`, on by default) makes a texture's host copy hold only the levels its views show, starting at the title's level `base`. Without #3062, title copies still name their subresource by the title's index. A copy of the title's mip 0 (256x256, say) then lands on the held copy's first level, which is smaller (128x128). #3043's geometry check (097b5070, plus 92065d20 for indices past the end) and the copy repair in #3488 see a copy that does not fit and drop it. Each level of the chain is dropped in turn, so the texture keeps whatever low level it already had. That fits trees as one blob and a road without detail, and it gets worse the faster you drive, because more textures stream in at once. The same case is in a #3043 comment (2026-11-30 00:25Z): a mip chain of format 3 into 78, sources 256 down to 8 against host levels 128 down to 4, dropped six times, then indices 6 to 8 past a texture with 6 subresources. To check on your build: - grep the play log for `skipping out-of-bounds or unaligned CopyTextureRegion`, `copy repair:` and `close guard:`. Many of these while driving fast would confirm it. - A/B with `VICTORY_HELD_LEVELS=0` (full mip chains in host copies). That needs more card memory, but you are about 4 GB under budget. - Or add #3062, which maps the title's index to the held copy's before those checks run, together with tyr0nsur's read-back follow-up cb3f59d from the #3062 thread. Without that follow-up, read backs with no box copy an unwritten tail into title memory, and read backs with a box use the wrong GPU pitch. I have not reproduced the clay textures myself; this is from reading the code paths and that #3043 comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠BitWuehler on GitHub · 2026-12-01 08:46 UTC · original

We hit a closely related symptom on RTX 5080 16 GB + Ryzen 7 9800X3D (7d93ee07 / v2026.11.30.03) while moving fast through the world and traced a concrete cause in crates/victory-gpu/src/resource.rs:

  • In room_for_first_upload() (resource.rs:2649–2656), dynamic_texture_cap(memory) (controlled by VICTORY_TEXTURE_KEEP_FREE_MB, 1 GiB + 512 MiB FG reserve by default) runs before let free_blocks = crate::pool::texture_room(); and checks total.saturating_add(reserve) > cap.
  • Because used in DXGI memory already includes the entire allocated 64 MiB texture pool heaps (including their free ranges!), whereas HOST_TEXTURES[1] (total) only counts individual textures, others = used - total counts all free pool space as "non-texture card usage".
  • Once used + keep >= budget, dynamic_texture_cap refuses every first-time texture upload (14,127 refused per 5 seconds in our log, counted under "refused by an explicit byte limit", forcing 489,932 placements onto VICTORY_SMALL_WHEN_FULL 256 KB mips) even when hundreds of MiB of free space already exist inside allocated pool blocks (free_blocks / texture_widest_free()), bypassing the reuse logic right below at lines 2746–2768.

Workaround to test on 16 GB cards: set VICTORY_TEXTURE_KEEP_FREE_MB=0 (or credit reserve.saturating_sub(free_blocks) when reserve <= texture_widest_free() inside the dynamic_texture_cap check).

(Analysis compiled with AI assistance.)

**@⁠BitWuehler** on GitHub · 2026-12-01 08:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4236#issuecomment-7305761532) We hit a closely related symptom on **RTX 5080 16 GB + Ryzen 7 9800X3D** (`7d93ee07` / `v2026.11.30.03`) while moving fast through the world and traced a concrete cause in `crates/victory-gpu/src/resource.rs`: - In `room_for_first_upload()` (`resource.rs:2649–2656`), `dynamic_texture_cap(memory)` (controlled by **`VICTORY_TEXTURE_KEEP_FREE_MB`**, 1 GiB + 512 MiB FG reserve by default) runs **before** `let free_blocks = crate::pool::texture_room();` and checks `total.saturating_add(reserve) > cap`. - Because `used` in DXGI `memory` already includes the entire allocated 64 MiB texture pool heaps (including their free ranges!), whereas `HOST_TEXTURES[1]` (`total`) only counts individual textures, `others = used - total` counts all free pool space as "non-texture card usage". - Once `used + keep >= budget`, `dynamic_texture_cap` refuses **every** first-time texture upload (**14,127 refused per 5 seconds** in our log, counted under `"refused by an explicit byte limit"`, forcing **489,932** placements onto `VICTORY_SMALL_WHEN_FULL` 256 KB mips) **even when hundreds of MiB of free space already exist inside allocated pool blocks** (`free_blocks` / `texture_widest_free()`), bypassing the reuse logic right below at lines 2746–2768. **Workaround to test on 16 GB cards:** set **`VICTORY_TEXTURE_KEEP_FREE_MB=0`** (or credit `reserve.saturating_sub(free_blocks)` when `reserve <= texture_widest_free()` inside the `dynamic_texture_cap` check). *(Analysis compiled with AI assistance.)*
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#4237
No description provided.