53% of texture-slot rewrites leave nothing to show: black and coloured patches on asphalt, vegetation, houses and skin #4860
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#4860
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?
@gbmrrr on GitHub · 2026-12-01 11:53 UTC · original
What looks wrong
Black, coloured and flashing patches on many unrelated surfaces: asphalt, vegetation, parts of
houses, character skin and clothing. They appear and disappear from frame to frame. Nothing here is
stable enough to photograph; the numbers below are from the log instead.
I cannot name a cause. What I can do is show what the layer reports while it happens, because one
number stands out and it points at the slot state rather than at any one material.
The layer counts every texture slot that is written with a different texture, and how many of those
keep showing what they showed before the new one was ready:
Over one run of gameplay (13,894 draws/frame), the growth of that line was:
Of the four kinds,
VICTORY_KEEP_SHOWNcan only keep the first two andothers(up to2). A slotrewritten with a texture of another dimension cannot keep anything, so it is left with a null
view - zeros, which read as black. That is 53.2% of all rewrites on this run.
So the black patches and the coloured ones may be the same event seen two ways: a slot rewritten
before its new texture is ready shows either the previous image (coloured, another object's texture)
or nothing (black). That is a hypothesis from these numbers, not a measurement: the counters count
rewrites, not frames drawn from an empty slot, and I have no capture of the frames themselves.
GPU and driver
RTX 5070 Ti 16 GB, driver 621.40
CPU, RAM and Windows version
Ryzen 7 9800X3D, 32 GB, Windows 11
VIctory release or commit
v2026.11.30.03, plus local switches (below). The counters quoted exist in that tag.Settings
Series X, 626p through DLSS Balanced, frame generation 2x, ray tracing off.
VICTORY_KEEP_SHOWN=2,VICTORY_TEXTURE_ROOM_PERCENT=95,VICTORY_SLOT_EVICT_PERCENT=66,VICTORY_LIBRARY_KEEP_MB=1024,VICTORY_WINDOWS_BAR_MB=2048.Things that changed the frequency but never removed it, in case they help someone else rule them
out: lowering the memory the layer keeps for the pipeline library and for Windows (4 GB freed) made
it less frequent;
VICTORY_SLOT_EVICT_PERCENT=66started eviction that had never started(
0to33 of 33decisions,no roomto0);VICTORY_KEEP_SHOWNfrom1to2changes whichof the two appearances you get, not whether you get one.
Logs
Attached:
victory-slot-states.log, filtered to the slot, queue and memory lines, with user pathsand the title's folder removed.
Are you working on a fix?
No. I am reporting it, not claiming a cause. I tried the obvious switches and none of them removed
it; the ones I would look at next are in the memory path (
vram_idle_forinhost.rsreleases anidle host copy after 1000 ms at 85% of the budget) and the order in which slots are served, but I
have no measurement that either is responsible, and I would rather say that than send someone after
a wrong lead.
@gbmrrr on GitHub · 2026-12-01 11:53 UTC · original
Uploading the file here is not something I can do through
gh, so the lines that matter are inline. The full log is 431 lines after filtering; ask and I will paste any part of it.The slot counter, first and last sample of the run
The texture queue's room, first and last
Eviction, last
Memory, last
@github-actions[bot] on GitHub · 2026-12-01 11:53 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.%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 you have and which Windows version (10 or 11).
If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.
@gbmrrr on GitHub · 2026-12-01 11:54 UTC · original
The two logs the bot asks for are below.
1. The play log, filtered to the slot, queue and memory lines (user paths and the title's folder removed) — that is the comment above this one.
2. The crash log. Nothing has crashed in these runs; there is no
crashes.logfor them:For the record, this session did hit the GPU device hang once (
0x887A0006, "the device was lost before fence value") on an earlier configuration, which is the same symptom as #4625 and not what this issue is about; no crash log was written for it either.If a full unfiltered log is wanted, say so and I will paste the parts asked for — it is 126 MB for the longest run of the day, so it would have to be a range, not the whole file.
@cloph-dsp on GitHub · 2026-12-01 12:01 UTC · original
Reading the counters in this report against the source, the "53%" and the black patches do not point at the same place, and I think the
another dimensionnumber is a classification artefact rather than a slot that went null.Where the four counters come from.
fn rewritten(crates/victory-gpu/src/descriptor/host.rs:5270) buckets onKin, andKinis decided byfn kin(host.rs:5215).another dimensionisREWRITTEN[3], i.e.Kin::None— the bucket's label says dimension, but the value is the "no kind at all" case.Kin::Noneis returned by two branches:a[0] == 1 || b[0] == 1 || from[1] != to[1](Placed pair whose placement or plane differs), and thedimensionfallback(0, _) | (_, 0) => Kin::None.dimensionclosure yields 0 for any Placed view whoseresource[0] == 1— a placed texture with no host copy — so two ordinary placed textures, both without host copies, compare(0, 0)and land inKin::Noneno matter what shape they are. Nothing about their dimension is being tested.That explains the numbers without a null slot.
keptisKin::kept(...), andKin::None => falseis unconditional —VICTORY_KEEP_SHOWNcannot make it true at any value, exactly as you observed. But the counter is incremented inrewritten(kin, kept)at the twoshow_later/show_new_latersites (host.rs:2847,host.rs:4034), and in the first of them thekept == falsepath does not leave the slot null: it callsneutral_for(&view, self.at(index))(host.rs:2854), which for a 2D or 2D-array view binds the 1×1 grayneutral()texture (host.rs:411, filled0x80). You would see a small gray, not black, and the "reads as zeros" comment athost.rs:5256only holds for dimensionsneutral_forrefuses (1D/3D/cubes →null_for).So a slot counted in
another dimensionis most likely either (a) a placed twin with no host copy being re-written, which is routine, or (b) a dimension change whereneutral_forbinds gray. Neither is the black-patch mechanism by itself.What would separate them. The two candidate mechanisms are distinguishable in the log you already have, and both need only counters, no capture:
REWRITTEN[3]by which branch produced it — the host-copy-missing(0, _)case fromkin, versus a genuinefrom[1] != to[1]. If most of the 188,885 are the former, the label is misleading and the number says nothing about what the slot showed.kept == falsecases actually gotneutral_forreturningNone(i.e. went throughnull_for).pop_causes()already exposesLATE[3]("slots given the neutral texture"); a companion counter for theNonearm would give the real null count instead of inferring it from rewrites. Right nowpop_causesderives nulls asall - kept, which counts every non-kept rewrite as a null even when the neutral texture was bound.None of this needs the title:
kin,Kin::keptandneutral_for's dimension table are pure functions of the view words, so a synthetic test on hand-builtViewvalues would pin the bucketing down.I have not changed anything — this is reading, not a fix, and I am not claiming the black patches come from here either. If you can post the
another dimensionsplit (placed-without-host-copy vs real dimension change), that decides whether to fixkin's(0, 0)case or to go after the upload ordering.AI-assisted: Hy4 flash. Source only; no game data, assets or extracted shaders used.
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:02 UTC · original
The release's counter counts texture rewrites. The
another dimensionbucket also includes views whose dimension is unavailable to the classifier, for example an SRV using its default descriptor. Classifier in v2026.11.30.03When the old view is dropped, the mirror tries to build a gray stand-in for the incoming view. A null view is the fallback. The existing
texture slots shown a gray stand-in since the start, by kindline can help tell how much that path was used. If that line is already in your filtered log, its first and last readings would be useful alongside the rewrite count. Mirror · Stand-in counter#4864 fixes one separate failure path where the first failed stand-in allocation is cached for the rest of the run. Its focused fixture covers the retry, and the cause of these patches in play remains open.
AI-assisted with OpenAI Codex.
@gbmrrr on GitHub · 2026-12-01 12:40 UTC · original
A second run, longer, on the same build, with the switches unchanged:
The share of rewrites that land on the kind
VICTORY_KEEP_SHOWNcannot cover was 53.2% in therun in the report and 69.3% in this one, over 8.4 million rewrites. It scales with how long the
session runs, not with any one place in the world, which is consistent with the patches appearing
everywhere rather than in one material.
Machine and settings as in the report; nothing was changed between the two runs except that this one
was longer (draws/frame peaked at 14,628 against 13,894).
The frame rate held: the layer ended the session normally and saved its pipeline library (999 MB),
with 0 pipelines failed and 0 shaders left untranslated.
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:43 UTC · original
Thanks for the longer run. I found one concrete fallback bug while following up on the dimension bucket. When a texture SRV uses its default description and its host copy is missing, the renderer substitutes a plain 2D null descriptor even for a registered 1D texture, array, 3D texture, or multisampled texture.
#4883 uses the registered texture's shape for that fallback. In the Windows descriptor fixture the old code picked the wrong dimension in six of seven cases. The patch picked the expected dimension in all seven. The fixture used a stub device, so the effect on the scene in your report is still open. The 69.3% is a cumulative rewrite counter and includes cases whose incoming dimension the classifier did not have.
AI-assisted with OpenAI Codex.
@Lorionlol on GitHub · 2026-12-01 15:22 UTC · original
Measurements from another machine that may help separate the two appearances.
Machine: RTX 5080 16 GB, Ryzen 7 9800X3D, 64 GB, Windows 11 (26300), driver 621.40.
Settings: Series S, DLSS Quality, hardware ray tracing (
VICTORY_HW_RT=1).Build: a local tree based on
v2026.11.30.03, with some local settings and a few counters added (named below). The counters only count; they change nothing.1. The flashing patches are the stand-in
I made the stand-in opaque magenta instead of the 0x80 grey of
neutral_for. This is a local diagnostic switch. With it, the white and grey patches seen while moving turned magenta. When the camera stands still, nothing shows.2. What did not change them
One change per run, at the same place, judged by eye:
VICTORY_SHOW_AFTER=0: the "neutral texture meanwhile" count of the show-after line went to 0, but the patches stayed. So the stand-in also comes from another path: the title writes a slot with a view of a texture that has no host copy yet (waiting_texture, thenlater, thenneutral_for).SHOW_AFTERdoes not cover that path.VICTORY_TEXTURE_ROOM_PERCENT=92(instead of 88): "no room for new ones" went from about 62,000 to about 31,000 a minute. No visible change.VICTORY_LOD_SCALE=1(0.3 in my tree): no visible change.3. How long slots waited, by the way their upload went
A local counter measured the time from a slot asking for its texture to the slot showing it, in the magenta run (about 1 min 45 s):
The visible flashes match the second row.
Why those slots were not uploaded ahead, counted in
draw.rsjust beforetexture::ahead::take:claim: 4,274. The largest reason there isholdsbeing set, meaning the copy had already had an upload.The ahead path takes only the first upload of a fresh copy. That is by design: a copy that is already shown may still be read by lists in flight.
4. Possible directions (not tried)
The black patches
I see black patches too, and they did not turn magenta. The null-view fallback described above would fit, but I have no counter for it.
I can share the counters as a PR (off by default), or run a build with a candidate fix on this machine.
(Measured on my PC; the write-up was drafted with Claude Code.)
@CLHelper on GitHub · 2026-12-01 16:34 UTC · original
A standing-still data point, and a code pointer for the re-upload row in Lorionlol's table.
RTX 4060 Laptop GPU (8 GB, driver 576.80), 32 GB, Windows 11; Series S, DLSS performance, frame generation and ray tracing off; a local diagnostics build on
c71899d9ewith the play defaultsVICTORY_SHOW_AFTER=1andVICTORY_KEEP_SHOWN=1. Two 200 s runs, the player standing still indoors at about 25 fps, one withVICTORY_TEXTURE_NO_WAIT=1and one without. Per 5 s, from the report lines over the last ~70 s of each run:TEXTURE_NO_WAIT=1So with nothing moving, show-after put the neutral texture into about 22-26 slots a frame, many more than the textures uploaded in that time (about 1-2 a frame).
TEXTURE_NO_WAITmakes no difference here: its line read 0.0 refreshes left for the next frame and 0.0 first fillings a frame. The person watching saw textures blink while standing still in both runs; which slots the counts hit on screen was not checked.A possible reason, from reading
5fabb46ea(not built or run with a change):draw.rs:4750:lateisshow_after()and the slot not made from this view; it does not ask whether the texture is new.draw.rs:4839), the upload-ahead path (draw.rs:4863) andmirror_after(descriptor/host.rs:4369) each also askcrate::pool::fresh.draw.rs:4915callstexture_slot_show_afterfor anylateslot. A texture that was uploaded before and is uploaded again (Lorionlol's 17,435 "host copy was not fresh") therefore shows the neutral texture until its list has run, rather than its previous image.If that is the path, asking
pool::freshthere too would keep the previous image for re-uploads, as the other three paths do. That needs a check I have not done: the guard exists against device loss from textures made a moment ago, and Lorionlol notes that a copy that is already shown may still be read by lists in flight.VICTORY_POP_WATCHsaw no frames in these runs (our presents are composed, which the watch skips), so there is no blip count to add.AI-assisted.
@ffaddd-ddd on GitHub · 2026-12-01 16:56 UTC · original
Very close to the numbers in the opening post, on different hardware and a later build — with one part that differs enough to be worth a look.
AI use: DeepSeek (deepseek-v4.1-flash) prepared this from the reporter's log; every figure is quoted from it.
Session
The counters at the end of the run
Where this agrees, and where it does not
Agrees: the dominant kind is
another dimension, by a wide margin — 92.2% here against 53.2% in the opening post. So this is not one machine's accident.Does not agree, and I think this is the part worth reading: the opening post has 47.3% of rewrites keeping what they showed; this run has 2.4%. Same code path, same build family, an order of magnitude apart.
The two
moved ones checkedcounters say why, or at least say where:That is 53.5% / 46.5% — over half of the checked moves are judged "other bytes" and drop to the neutral texture. In this run that judgement is being made about a million times, and each one is a slot that shows neutral for however long the new upload takes. If uploads are being refused (see #4990: 0 of 141,063 admitted over 1.5 hours on this same session), the neutral stays a long time.
So on this PC the two issues may be one story: rewrites that cannot keep what they showed, plus uploads that are not admitted, and the surface stays neutral. That is the mechanism the opening post describes for the visible patches, and it would explain why they appear and disappear rather than staying wrong.
On the other hand, the picture is mostly right
To be fair to the build: over the same session the game ran at median 14.4 fps in world, 0.5% of samples under 10 fps, and no crash, and most surfaces looked correct. What I see is a smaller, sparser version of the opening post's patches: an occasional white prop (a held apple stays untextured), occasional flicker. Not the widespread patches described there.
What would help
Is there a counter for how long a slot stays neutral after such a rewrite? If a slot goes neutral and the upload is then refused, the duration is unbounded — that is what I think I am seeing, and it is not visible from the rewrite counts alone.
VICTORY_KEEP_SHOWN=2is the only setting that can keepanother dimensionrewrites. The comment indescriptor/host.rswarns that it also matches a streamer reusing a slot for a different texture of the same size and format (rainbow-noise texels, another character's map). Given 92.2% of rewrites are this kind, is2expected to help more than it hurts on 8 GB, or is the answer that this kind must not be kept?Logs
victory-nvidia-play-20261201-105533-61704.log(232 MB) is attached gzipped to #4989 on the same PC and session, together with a per-second CSV. Say the word and I will attach either here as well.@transbinaryunicorn-sys on GitHub · 2026-12-01 17:28 UTC · original
In-game test of this PR against clean
main. Short version: the flashing patches of #4860 look unchanged.Setup: RTX 5090 32 GB, driver 615.78.08, Linux (Nobara) with GE-Proton11-14 (gabeparra's ntdll/wineserver patches) and vkd3d-proton master. Series X, 4K output, DLSS Performance, FG 3x, ray tracing off, upstream play defaults (
VICTORY_PATCH_SSE4A=0). Normal release builds:main5fabb46emain+ this PR (35b8b3e8)Both started from the same copied save and walked the same route, which is where the flashes show up (none while standing). The two builds share the translator fingerprint and the shader cache.
By eye: both flash: bright patches on trees, telephone poles and pieces of road while walking. I can't tell a difference; if anything P felt slightly worse. That's subjective.
Counters (
slots that showed a texture and were written with another, end of each run):That was expected, since the PR changes the shape of the null fallback, not how often the stand-in is shown. Notable for #4860: on this machine 83 % of rewrites land in "another dimension" (53–69 % in the reports there), so almost nothing can be kept and the gray stand-in shows. At dusk 0x80 gray reads as a bright flash on dark foliage and road.
If a part of that bucket is views whose dimension the classifier can't see (as noted in #4860), classifying those correctly so that
VICTORY_KEEP_SHOWNcan keep the old view might remove most of the flashes. I'm looking into that next.@transbinaryunicorn-sys on GitHub · 2026-12-01 17:55 UTC · original · edited 2026-12-01 18:14 UTC
Workaround that removes the flashing here:
VICTORY_KEEP_SHOWN=2. And a measurement that changes what the "another dimension" share means.Setup: RTX 5090, Linux (GE-Proton11-14, vkd3d-proton master), clean
main5fabb46e, normal release build, upstream play defaults, ray tracing off. Same copied save and the same walking route every run. The flashes (bright patches on trees, poles and road pieces) only happen while moving.1. What "another dimension" actually is. I added a local counter (measurement only) that splits
Kin::Noneby cause. Of 480,000 such rewrites in one run:Most common (old → new SRV dimension):
1→0215,806,4→0(Texture2D → no texture) 179,666,2→051,081. So on this machine the big bucket is almost entirely slots the title switches from a texture to a buffer. Nothing can or should be kept there, and it is not where the flashes come from. The default-description misclassification does not occur here.2. Where the flashes come from: "others", i.e. another texture of the same dimension, which the default (
checked) does not keep.checked)VICTORY_KEEP_SHOWN=2With
=2, now and then a texture visibly switches from gray, or one nearby looks briefly not quite right. That's the documented risk of keeping "others". By eye it is far less noticeable than the constant flashing. On this setup the trade-off clearly favours=2(maybe as the default, or keeping "others" only when format and size match?).Follow-up with a back-to-back check on the same clean build (
main5fabb46e, upstream defaults, ray tracing off, same save and walking route), onlyVICTORY_KEEP_SHOWNchanged:VICTORY_KEEP_SHOWN=checked(default)VICTORY_KEEP_SHOWN=2The flashes come back as soon as the default is restored and are gone again with
=2. So on this machine (RTX 5090, Linux) the flashes are the gray stand-in shown for "others" rewrites (another texture of the same dimension), whichcheckeddoesn't keep. The side effect of=2is the one documented in the code: now and then a texture visibly switches from gray, or one nearby is briefly not quite right. By eye that's much less noticeable than the flashing.For actually playing, this is a game changer: the occasional texture switching from gray is far less annoying than the constant flashing while walking.
@nick0451 on GitHub · 2026-12-01 18:39 UTC · original
One more data point on the trade-off of
VICTORY_KEEP_SHOWN=2, now thevictory playdefault (f4a8eeeb). It's a wrong texture that wasn't brief.Setup: RTX 3090 24 GB, driver 610.88, Series S, DLSS performance, ray tracing off. Main
5fabb46e+ #4695, withVICTORY_KEEP_SHOWN=2andVICTORY_SHADER_OPT=445, off-screen, a scripted walk from a city save, one screenshot a minute.What it showed: at the start, a new-model SUV parked beside the player had its normal clean dark-grey body. Later the walk ended in a parking lot, where an SUV of the same model had a rusty, blocky red-orange patchwork over its whole body, like a low-resolution texture from something else. It is still wrong in the shots at 4.7 and 14.3 minutes, so it lasted at least 9.5 minutes, with the camera still. The player confirmed this model has no such variant in the game.
What I can't say: this was one run, and there's no run of the same scene with
checked. So it isn't proven that2caused it; a slot showing the wrong texture for want of the right one would look the same either way. It does fit "keep what was shown until the new one has uploaded": if the new texture never uploads, the kept one stays. The texture-slot line in that log might show it; I can look for the slot if that helps. I have the frames, and can attach a cropped one if a picture is wanted.