Textures: a prelude upload checks again at submission that the host has not written the texture (confetti faces) #33
No reviewers
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/trustno1-coder--VIctory-NVIDIA!33
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Ahyildiz on GitHub · 2026-11-27 11:40 UTC · original
Ahyildiz:fix/prelude-host-written→main· +40 −1 · 1 files · 1 commits · openWhat 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
@CaitoV4 on GitHub · 2026-11-27 18:06 UTC · original
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!
@dcastell1 on GitHub · 2026-11-27 18:42 UTC · original
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.)
@bentsignal on GitHub · 2026-11-27 21:41 UTC · original
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.