RTX 5060 Laptop 8 GB + 16 GB RAM, Series S: arms/legs pure black after texture fixes; head/torso normal #1022
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1022
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?
@kkwa603 on GitHub · 2026-11-25 16:29 UTC · original
Machine### Machine
Build
sagouindupm/victory-forkseries-s-perf2(b014d0d)PS_PedTex*(cherry-picked, commit 28ffcb3)target-mouserelease build,--console series-sVICTORY_LEVELS_ON_DEMAND=1,VICTORY_TEXTURE_DROP_MIPS=1,VICTORY_TEXTURE_GUARD=0,VICTORY_TEXTURE_STAGE_MB=768,VICTORY_TEXTURE_STAGE_MS=1000[controls]enabled; mouse look works.What works
Problem
After walking about two steps, or crossing into a different light/shadow, the character's arms and legs from shoulder/hip down turn pure black. The head and torso stay normal. Clothes still render. The black is not a dark-skin shade: there is no brown/skin detail, it is the same flat black as a missing texture. It persists while standing still. Some NPCs also show pure black skin, including a character who is designed dark-skinned but normally has brown highlights.
It looks like the limb material uses a different texture/shader/LOD than the head/torso, or its bindless texture slots stay empty. It does not look like the whole model reloading: head/torso remain correct while limbs go black.
What I tried
VICTORY_TEXTURE_GUARD=0: fixed the general skin/ghosting and the intro jump (#652).VICTORY_TEXTURE_STAGE_MB=768+VICTORY_TEXTURE_STAGE_MS=1000: fixed most face/NPC black slots (#821).VICTORY_PAGE_WRITES=1(the report says it made the room black),VICTORY_TEXTURE_NO_WAIT=1, removingVICTORY_TEXTURE_DROP_MIPS=1.Questions
PS_PedTex*/skin shader family, or a different material for arms/legs? Which shader/hash should I look for?VICTORY_LOG=victory_gpu::pipeline=info,victory_gpu::draw=infoenough?VICTORY_TEXTURE_DROP_MIPS=1(LOD/mips), or with a largerVICTORY_TEXTURE_STAGE_MB?No game files are attached. I can provide a screenshot and a debug log from the next run.
@tippythetaidum on GitHub · 2026-11-25 16:54 UTC · original
On question 2, here's how we've been telling the two apart on an RTX 5080 (diagnostics build,
cargo build --profile diag -p victory --features diagnostics). It answers per surface in one run.1. Dump the frame's render targets where the limbs are black:
VICTORY_CAPTURE_WORLD_ALSOcounts frames from the first world frame, so the dumps land on the same scene in every run, however long the menus took. Each listed frame saves every target it renders to asframe-<n>-<i>-<resource>-<w>x<h>-f<format>.png, plusframe-<n>-ops.txtwith every draw and the targets it writes.2. Look at the G-buffer. In our frames the first full-size target (format 27 here) holds the surfaces' base colours, and the next ones hold normals and the like.
3. For dropped draws, the frame line in the log says
dropped N without a host pipeline (M being made). IfMis in the hundreds or thousands when the world starts, the shader cache is cold: many draws are skipped until their pipelines are made, and the first minutes look broken. A second launch of the same build fixes that part.What we saw that may be the same thing: faces (not limbs) black in the colour target, which became textured 100 to 200 frames later. One stayed red-blotched for the rest of the run. We also tried a local check that paints texture pages not yet in memory a marker colour: nothing showed it. So on our side it isn't textures that are only partly in memory.
AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.
@Danigamer05 on GitHub · 2026-11-25 19:20 UTC · original
Same symptom here on an 8 GB NVIDIA card, with a render-target dump that points at the texture, not at lighting.
Machine: RTX 2080 SUPER 8 GB (Turing, 32-lane waves, driver 621.01), Ryzen 7 3700X, 32 GB, Windows 11, Series S profile.
Tree:
vitutu1/victory-perfffed22d+ #683, #610, #823, #1002, #1023 (adapted where victory-perf differs), diagnostics build. Switches: victory-perf's recommended set plusVICTORY_TEXTURE_ROOM_PERCENT=92 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_RELAY=0 VICTORY_TEXTURE_GUARD=0.What the dump shows (
VICTORY_DUMP_TARGETS=1,VICTORY_CAPTURE_WORLD_ALSO=..., a frame in the room after the cell where Lucia's forearm looks dark):What the log says at that time (one 600 s run):
Switches that did not fix it (single runs each, the outcome varies from run to run as described in #923):
VICTORY_INDIRECT_WINDOW=0made it worse here: the main character's face was black in 4 of 5 cutscene frames sampled, where with windows on (victory-perf's default) it was black only in some.VICTORY_RELAY=0removes a bright patch on the hair (relay 2), but not the dark skin.VICTORY_TEXTURE_GUARD=0: faces mostly right in close-ups, forearms still grey.My reading: a skin/limb texture picked by index is either passed over as unmapped (streamed, with its ends not committed, which #1023 addresses) or let go and not back in time. I have not yet matched the forearm's draw to a texture address in
frame-<n>-ops.txt; that is the next step.Numbers and text only. AI-assisted (Claude Code).
@Curry-976 on GitHub · 2026-11-26 04:07 UTC · original
Another NVIDIA Series S data point on black skin, plus a question about blocky "staircase" edges that #1002 did not change here.
Machine: RTX 4050 Laptop 6 GB (Ada, 32-lane waves, ~4.9 GB budget), driver 32.0.16.1742, Intel i5-12450HX, 24 GB, Windows 11 26300. Game package 1.0.2.1,
--console series-s.Tree:
main18ea644+ #1081 + #798 + #1002 + #592, plus the constant ambient stand-in from avatarmanz/VIctory-7900XTX (82ca134), diagnostics build. Switches: thediagnostics/README.mdset +CARD_HASH_LEN=1 LOOKUP_CACHE=1, and for this cardCARD_WINDOWS_MB=0 CARD_BUFFERS_MB=256 TEXTURE_ROOM_PERCENT=95 DISPLAY_MODE=1920x1080.Result overall: the prologue plays, 5-7 fps in rooms, 15-17 GB private, the card at or just under its budget.
Black skin (faces, forearms), one change per run, judged on the same cutscenes:
AMBIENT=0.8(its log shows the Radiance/Resolve stand-in engaging)TEXTURE_STAGE_MB=768 TEXTURE_STAGE_MS=1000TEXTURE_GUARD=0Texture passes refused for room went from 6,988 to 6,292 with the room changes, so room is part of it but not all.
Blocky staircase edges: the player character's shoulders and back show light/shadow in steps of roughly 16 px (the symptom #1002 describes). With #1002 applied,
f133e35efed2a48anow translates and gets a host pipeline (it was dropped every frame before), and with #5922cc4c197ee29e291is no longer refused. The steps on the character look the same. Still refused on this card:02384a60fda6f2d0 2da4beb386509b77 369cbe906ea72764 5dc3b25986622949 6b82bc7d22016cb5 6f225b641c5b0708, and926c46bab3b86bd6(first seen in the dorm).Questions:
VICTORY_DUMP_TARGETScapture from the comment above on a cutscene frame if you say which frame or pass to look at.No game files or images attached. Tested by the person playing; the runs were driven and this written with Claude Code (Claude Opus 5.5).
@Danigamer05 on GitHub · 2026-11-26 05:26 UTC · original
On Curry-976's
TEXTURE_STAGE_MB=768 TEXTURE_STAGE_MS=1000lead: here it did not bring faces back. The bigger effect was run-to-run variance with identical switches.Machine: RTX 2080 SUPER 8 GB, Ryzen 7 3700X, 32 GB, Windows 11,
--console series-s, diagnostics build.Tree:
maindc4c0fc+ #1002 + #1112 + #798 + #1081 + #1146 + #1192 + #1200 + #1202 + #1157.Switches: the run 253 set +
CARD_HASH_LEN=1 FILLS_PLAIN=1 STEP_INDEX=1 LIGHT_REFRESH=1 ABSENT_ONCE=1 ABSENT_MS=told+TEXTURE_ROOM_PERCENT=92 CARD_ROOM_FOR_TARGETS_MB=0 CARD_ROOM_FOR_BUFFERS=0(see #898).Four 600 s launches, alternated, with the same save and the same scripted input. I took a window screenshot every 10 s and judged the opening cutscene close-ups (about 100 to 160 s after launch):
So with this tree the staging budget is not what decides it. The same switches gave all faces right once and some black once. That points to when the skin texture arrives relative to the cutscene's first frames, not to how much is staged per frame. With the room reserves off, "passes that made none for lack of room" was 75 to 577 in these runs, so room was not the limit either.
Caveats: two runs per setting, judged by eye on 10 s screenshots, one cutscene.
Numbers and text only. AI-assisted (Claude Code).
@HLVM04 on GitHub · 2026-11-26 04:26 UTC · original · edited 2026-11-26 06:20 UTC
On Curry-976's two questions, from an RTX 5070 Ti 16 GB (32-lane waves), Series S profile, fork tree with #798, #783, #799 and others on top:
1. Still-refused computes. Four of yours (02384a60fda6f2d0, 2da4beb386509b77, 369cbe906ea72764, 6b82bc7d22016cb5) are built on our card by #799's loose-LDS fallback (it builds 5 of the 7 WaveSize 64 refusals we had). We bisected the visible change it brings with
VICTORY_SKIP_PIPELINES: it comes from 2da4beb386509b77 alone, and a PIX capture shows that one is the title's textured wired glass, so it isn't a character light or shadow pass. We haven't identified the other three. Separately, a last-resort wide form of ours that built 4 of the 7 cost fps and made no visible difference to the artifacts. So we have no evidence that a refused compute causes the 16 px steps.2. A newer black-skin lead (texture side). In our tree,
SpanswithRule::Start(the defaultVICTORY_STALE_TEXTURESrule,descriptor/host.rs) treated any placed-texture view written within 4 KiB of an older view's start as replacing it. The title packs tiny sRGB R8G8B8A8 tint palettes (13x1 to 1024x1, 256 B to 4 KiB each) a few hundred bytes apart in one page, so each new palette made its neighbours stale. Their host views went null for good, and in one run 10 palettes read by character draws showed "no texture, not queued". A local fix (a texture's head block is min(4 KiB, its size)) lit the main character's face in the first sunlit in-world shot in 2 of 2 runs, where it had been black in every run before.VICTORY_STALE_TEXTURES=0;TEXTURE_NO_WAIToff; more texture room;VICTORY_KEEP_MOVED=1 VICTORY_SWAP_WHEN_FULL=1with a 5,500 MB texture budget (neck black in 4 of 4 runs).VICTORY_VIEW_GUARD=0faces go black, so for us the skin reads stale memory, not a failing shader.For scoring, we dump the G-buffer albedo at one fixed frame (
VICTORY_DUMP_TARGETS=1,VICTORY_CAPTURE_FRAMES=3000) and judge the skin there, not in screenshots. Frames are counted bypresented()+1, and only targets first used in a listed frame are saved, so list 2 or 3 consecutive frames to get a whole frame.Correction (2026-11-26): the 1280x720 target we called "albedo" above (format 28, where skin shows blue) is not the base colour. It looks like a material/skin mask: in one run the neck was blue there while the real base colour, render target 0 (1280x720, format 27, the first of the 6 G-buffer targets), was dark at the neck. So the lit/black tallies above were scored on the wrong target and may be off. RT0 is the one to judge (skin tone at the neck; a large plaster wall is also light grey in good runs and dark in bad ones). The hero's skin is drawn by pixel shader b36c288fccc767b0 (found by skipping shaders with
VICTORY_SKIP_PIPELINES).@HLVM04 on GitHub · 2026-11-26 07:37 UTC · original · edited 2026-11-26 08:25 UTC
On Danigamer05's reading, that it depends on when the skin texture arrives and not on how much is staged: we found a race of that kind behind our main character's black skin and wrote it up in #923 (#923).
In short: with
VICTORY_TEXTURE_NO_WAIT=1, a texture refresh that lands while the title is remapping the texture's pages reads title memory through the kernel. If the texture is only partly mapped then, that read fails. A texture picked by index has no later refresh, so its host copy stays all zeros for the rest of the run. We fixed it locally by falling back to the partly-mapped copy path when that read fails on a never-filled staging buffer. The neck was lit in 4 of 4 runs, against 1 of 4 before (RTX 5070 Ti, Series S, scored on G-buffer render target 0). It's a local commit, not a PR.Two caveats for this thread: we only checked the face and neck, not arms and legs. And the "
TEXTURE_NO_WAIToff didn't help" in my comment above was one run, scored on the wrong target (see the correction there), so don't rule this out because of it. If your set hasTEXTURE_NO_WAIT=1, an A/B with it off is a cheap check.Caveat (2026-11-26): this fix is shown at the G-buffer stage only: base colour (render target 0) at the neck is right in 4 of 4 runs, and the host copies match title memory. In the final frame of the backlit window shot we scored her neck looks dark both before and after the fix (no ray-traced indirect light in those runs), so an on-screen improvement in that shot is not yet shown.
@Curry-976 on GitHub · 2026-11-26 08:25 UTC · original
@HLVM04 thanks, the A/B confirms it on my card.
Same RTX 4050 Laptop 6 GB / Series S machine as my comment above, this time on codec-d/cool_fox
f4b48adbuilt from source, Series S, everything else unchanged between the two runs:VICTORY_TEXTURE_NO_WAITOne run each, judged on the same spots by eye in the final image, not on a G-buffer target. No visible frame-time cost here. Not checked: arms and legs, and the other characters in the dark cutscenes, which are too dark to judge either way.
So on this card
TEXTURE_NO_WAIT=0is the cheap workaround until your partly-mapped fallback is in.Tested by the person playing; written with Claude Code (Claude Opus 5.5). No game files or images attached.