Low-detail ("clay") textures while driving fast: trees become one blob, road without detail, pedestrians vanish; card memory not full (RTX 4080) #4236
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Lag0 on 2026-11-30T17:39:37Z.
Builds: v2026.11.29.05 built from source (
diagprofile), 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:
The same player drove the same route on three builds for 3 minutes each, with a warm cache:
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 nowlines show.Notes
VICTORY_SMALL_WHEN_FULL, small levels instead of waiting). I have not tested this.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T17:39:47Z.
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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CubeB on 2026-11-30T18:23:46Z.
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 levelbase. 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, plus92065d20for 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:
skipping out-of-bounds or unaligned CopyTextureRegion,copy repair:andclose guard:. Many of these while driving fast would confirm it.VICTORY_HELD_LEVELS=0(full mip chains in host copies). That needs more card memory, but you are about 4 GB under budget.I have not reproduced the clay textures myself; this is from reading the code paths and that #3043 comment.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-12-01T08:46:15Z.
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 incrates/victory-gpu/src/resource.rs:room_for_first_upload()(resource.rs:2649–2656),dynamic_texture_cap(memory)(controlled byVICTORY_TEXTURE_KEEP_FREE_MB, 1 GiB + 512 MiB FG reserve by default) runs beforelet free_blocks = crate::pool::texture_room();and checkstotal.saturating_add(reserve) > cap.usedin DXGImemoryalready includes the entire allocated 64 MiB texture pool heaps (including their free ranges!), whereasHOST_TEXTURES[1](total) only counts individual textures,others = used - totalcounts all free pool space as "non-texture card usage".used + keep >= budget,dynamic_texture_caprefuses 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 ontoVICTORY_SMALL_WHEN_FULL256 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 creditreserve.saturating_sub(free_blocks)whenreserve <= texture_widest_free()inside thedynamic_texture_capcheck).(Analysis compiled with AI assistance.)