gpu: bake draws translated at the title's call (VICTORY_THIN_BAKE) and VICTORY_GROUP_WAITS #620
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/620"
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 KhryptorGraphics on 2026-11-28T01:55:24Z.
What
Ports two list-thread changes from edsuuu's VI-BR-PORT (GPL-3.0).
VICTORY_THIN_BAKE(2 by default, 0 keeps the old way): withVICTORY_THIN=1, bake draws of written-down lists are translated at the title's call. The source fixes blocks of coloured noise baked into clothes in the opening scene. WithoutVICTORY_THIN=1nothing changes.VICTORY_GROUP_WAITS=named|ended(unset by default, every call waits as before): the title's barrier groups are read, and the switch picks which of them wait for earlier shader writes.Source commits: c354528, the black_box line of 35afffd, 1c65319, and the list.rs part of f2fbdbb. A test of the group reading is added.
Note that
VICTORY_THIN_BAKEchanges default behaviour under the launcher, which setsVICTORY_THIN=1.Verification
cargo check -p victory-gpu --target x86_64-pc-windows-msvc --testspasses with no new warnings.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by MrEjecutor on 2026-11-28T03:20:54Z.
In-game numbers for the
VICTORY_THIN_BAKEhalf of this, since the description says it was not run in the game. I had portedc354528the same way (the bake found throughBAKE_PIXEL_SHADERSandBAKE_GEOMETRY_SHADERSindraw.rs) and ran it before seeing this pull request.Setup: RTX 5060 Ti 16 GB, Core Ultra 5 225F, 32 GB RAM, Windows 11. This fork at
d12eb1bplus local patches (not currentmain), built from source, diagnostics build. Theplay-foxhound.ps1switch set, Series S profile, no DLSS, no frame generation, the title's own 30 fps. A new game from its start, the same scripted key presses in every launch, a fresh copy of the save data before each launch.The fault: in some launches one character's clothes or face are drawn with wrong colours for the whole scene (coloured noise over a face, a grey sweatshirt drawn orange, a pink shirt drawn dark brown); the next launch of the same binary is clean.
Captures at fixed moments of each launch, one contact sheet of the opening's close-ups per launch, judged by eye:
VICTORY_THIN_BAKE=0VICTORY_THIN_BAKE=2, four local buildsOne-sided Fisher's exact test: p ≈ 0.08, so an indication and not proof. With it on, the thin line counted 58 to 71 bake draws translated at the title's call per 150 s launch and 0.00 ms waited per frame in play.
Rebase: on
8fc2254the first commit conflicts in one place only, the testa_target_is_the_one_at_the_callinthin.rs, wheremainalready has its ownblack_boxline since9b712a6; takingmain's line resolves it. The second commit applies as it is. A local rebase of the same port onto8fc2254(VICTORY_THIN_BAKEonly; the same code outside the tests, comments differ) gives here:cargo test -p victory-gpu --lib --locked list::thin: 5 passed, 0 failed (the bake test among them).cargo clippy -p victory-gpu --all-targets --locked -- -D warningsin both builds: no finding in the three files of the port; it stops at findingsmainhas itself (shadow.rs:1708, anddescriptor.rs:1234with all features), which #665 already takes care of. The rest of the workspace's tests were not run.Not tested:
VICTORY_GROUP_WAITS(the second commit) in any way; the port in the game on this fork's currentmain; the Series X profile; DLSS or frame generation; scenes past the opening; the frame rate with and without it on one binary. Also not tested: any launch with the screen probes' ray activation pass running.d12eb1bleaves it out unlessVICTORY_ACTIVATE_RAYS=1and none of the 40 launches above set it, while currentmainruns it by default. Three first launches with it on (port on, a later local build) are not counted above: two of them showed a different fault, a character drawn in another outfit's model rather than with wrong colours; too few to say more.AI-assisted (Claude Code): the port, the launches and this text; the captures were judged by eye on my PC. No game files attached.
Edited 27 Nov: added the
VICTORY_ACTIVATE_RAYSlimit under "Not tested".