Textures: a prelude upload checks again at submission that the host has not written the texture (confetti faces) #33
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/33"
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 Ahyildiz on 2026-11-27T11:40:19Z.
What it fixes
In the diner cutscene the bartender's face is drawn as coloured specks (or once as a blue face with lines) for the
whole scene, in about half the runs (Series S, DLSS off, RTX 5080). Everything else on her is right. It looks like the
"coloured specks all over the waitress's face" that
draw.rsalready describes for run n01.Cause
With
VICTORY_PRELUDE_UPLOADS=1,upload_fromcheckshost_writtenwhen the list is recorded, but the upload itselfis decided at submission in
PreludeUpload::finish_refresh, and that check isn't repeated there. With lists recorded onseveral threads (
VICTORY_THIN), a list that samples a texture can be recorded just before the list whose copy writesthat texture, and then be submitted after it. Here the writing list is the title's decoration bake, which copies a
character's baked skin into a 1024x1024 BC3 texture.
The prelude then copies the title's memory over what the host wrote. The title never fills that memory (on the console
the GPU copy did), so it holds whatever was there before. After that, no list uploads a host-written texture again, so
the wrong contents stay.
Change
finish_refreshnow leaves the upload out when the texture is host-written. It logs a warning with the texture's sizeand format for the first eight and then at powers of two.
VICTORY_PRELUDE_RECHECK=0gives the old behaviour.How it was checked
VICTORY_KEYS), the launcher's settings,VICTORY_CAPTURE_FRAMESevery 100 frames through the diner.1024x1024 textures of format 78.
main(959dcaf) and checked again: clean in the valid runs. The check fired 9–10 times perrun, with 0 errors logged, at 25.6–27.5 fps. One run shared the machine with a shader warm-up and doesn't count for
speed.
than usual, which I haven't seen in any run without #30. Two runs aren't enough to blame it on #30. I'm mentioning
it in case it helps whoever reviews #30.
cargo clippy -p victory-gpu --all-targetsgives the same warnings asmainand adds none. Workspace tests not run.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CaitoV4 on 2026-11-27T18:06:56Z.
I'm testing VIctory-NVIDIA with an RTX 5070 and a Ryzen 7 7800X3D.
I'm also experiencing texture-related graphical issues during gameplay.
Some textures do not appear to load or render correctly. Certain surfaces look visually broken or have incorrect appearance, affecting the visual quality of the game.
Performance and Frame Generation have improved significantly in the latest build, but texture rendering issues are still present.
Are these texture issues already known? Is there any diagnostic information or testing procedure that could help identify the cause?
I'm happy to provide screenshots, logs, and additional testing results.
Thanks for your work on this project!
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dcastell1 on 2026-11-27T18:42:08Z.
Testing note & fix for black NPC faces caused by same-list self-cancellation
While testing this PR on Windows 11 (i9-12900K, 64 GB RAM, RTX 5090 32 GB, driver 621.40, Series X profile,
--res 4k --dlss quality), we ran into a subtle interaction withCopyTextureRegionincrates/victory-gpu/src/list.rsthat turns some NPC faces pitch black ((0, 0, 0)):list.rs(CopyTextureRegion, around lines 1195–1215), when a partial copy writes onto a staged title-written texturedst(e.g. a small patch onto a character'sBC1/BC3_SRGB/BC7_SRGBskin texture), line 1204 callscrate::texture::upload(list, dst.resource, to)first so the base texture is uploaded before the copy overwrites part of it. WithVICTORY_PRELUDE_UPLOADS=1, that queues aPreludeUploadon that samelist.CopyTextureRegioncall (line 1215),crate::texture::host_written(dst.resource)insertsdst.resourceintoHOST_WRITTENat recording time.listitself is submitted,PreludeUpload::finish_refresh()checksis_host_written(self.resource), seestrue(set bylistitself 11 lines later during recording!), and cancelslist's own prelude upload (WARN prelude upload left out: n=1..128, formats71,78,99), leaving the uncopied texels of the freshDEFAULTtexture at zero (black face on the prison intake officer, while eyes/lips/hair render normally).Fix: Separate recording-time
HOST_WRITTENfrom submission-timeHOST_WRITTEN_SUBMITTED:list.defer_host_written(dst as usize)onHostListduringCopyResource/CopyTextureRegion/ResolveSubresource(mark_host_written_submittedimmediately only forexternal::output_written).Host::submit, commitlist.commit_host_written()intoHOST_WRITTEN_SUBMITTEDimmediately afterlet uploads = list.prelude_uploads(&mut batch);(and clear onforget()).HOST_WRITTEN_SUBMITTEDinPreludeUpload::finish_refresh().That way a list's own
CopyTextureRegionnever cancels the base-texture prelude upload queued in front of it, while any out-of-order sampling list submitted after the bake list still skips overwriting the GPU-written texture.(Note: Made with AI assistance and reviewed, built, and tested by a human.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bentsignal on 2026-11-27T21:41:27Z.
Confirmed on an RTX 5070 Ti (Series X, 1440p, DLSS Quality, launcher defaults with VICTORY_PRELUDE_UPLOADS=1 and VICTORY_THIN=1): the coloured specks on the waitress's face, and later on other characters' skin in the prison, showed up in play. With this branch merged, the new check fired at least 5 times in the first 100 s of the cutscene (2048x2048 format 78, 64x128 format 28, 5808x5808 format 71, 256x256 format 78). Merged in our fork; thanks.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JoeY54 on 2026-11-28T09:32:11Z.
I tested this PR on an RTX 5090 together with #703. With the recheck on and a warm pipeline cache, world textures went black. With
VICTORY_PRELUDE_RECHECK=0and nothing else changed, they did not. This looks like the same-list self-cancellation that dcastell1 described above.Setup
mainat63b902f(v2026.11.28.01), plus #703 (3a9f195) and this PR (3f6ba01), cherry-picked cleanly. Locked release build.play-nvidia.ps1 -FrameGen -FgType dlss, which gives Series X, 2560x1440, DLSS Quality and FG 2x with the launcher defaults, includingVICTORY_PRELUDE_UPLOADS=1. Same F1 settings in every run.prelude upload left outwarningsVICTORY_PRELUDE_RECHECK=0)A2 and B differ only in the recheck switch. A2 has the warning at n=1..8, 16, 32 and 64, which is the warning's own power-of-two throttling. The black textures appeared only in A2.
On current
main,CopyTextureRegioninlist.rsstill does two things in the same call:crate::texture::upload(list, dst.resource, to), around line 1252).crate::texture::host_written(dst.resource), around line 1264).So when that list is submitted,
finish_refreshsees the texture as host-written and drops the list's own upload. TheDEFAULTtexture then keeps zeros where the partial copy did not write. Marking host writes only at submission, as suggested above (HOST_WRITTEN_SUBMITTED), would keep the check for out-of-order lists without cancelling a list's own upload.The speckles this PR targets did not show up in any of these runs, including B without the recheck. So I can't confirm the fix itself from here, only the regression.
Not tested:
VICTORY_THIN=1;HOST_WRITTEN_SUBMITTEDchange.Raw logs stay local.
AI-assisted (Claude); runs on my own hardware.