gpu: bake draws translated at the title's call (VICTORY_THIN_BAKE) and VICTORY_GROUP_WAITS #620

Open
github-bot wants to merge 2 commits from github-bot/gh-620 into main AGit
Owner

@⁠KhryptorGraphics on GitHub · 2026-11-28 01:55 UTC · original
KhryptorGraphics:port/thin-delta → main · +486 −31 · 5 files · 2 commits · open

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): with VICTORY_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. Without VICTORY_THIN=1 nothing 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_BAKE changes default behaviour under the launcher, which sets VICTORY_THIN=1.

Verification

  • Cross-checked for Windows on a Linux machine: cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests passes with no new warnings.
  • Not run in the game. No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own.
  • Clippy and the test suite have not run locally; CI on this pull request is their first run.
  • Reviewed independently against the source commits before pushing.
**@⁠KhryptorGraphics** on GitHub · 2026-11-28 01:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/620) `KhryptorGraphics:port/thin-delta` → `main` · +486 −31 · 5 files · 2 commits · open ## 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): with `VICTORY_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. Without `VICTORY_THIN=1` nothing 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_BAKE` changes default behaviour under the launcher, which sets `VICTORY_THIN=1`. ## Verification - Cross-checked for Windows on a Linux machine: `cargo check -p victory-gpu --target x86_64-pc-windows-msvc --tests` passes with no new warnings. - **Not run in the game.** No frame-rate or stability measurement was taken on this fork; figures quoted are the source fork's own. - Clippy and the test suite have not run locally; CI on this pull request is their first run. - Reviewed independently against the source commits before pushing.
With VICTORY_THIN=1 a list B recorded and submitted after the bake's list
could have its draw's texture pass run first and take a due slot; the bake's
own pass then never saw that slot and the bake sampled it before B's upload
ran: blocks of coloured noise baked into clothes in the opening scene.

When a written-down list binds a pipeline of the decoration bake, the
title's thread now hands over what it wrote, waits until that (and, with 2,
what every list handed over before) is translated, and translates the
list's calls at the call until it binds another pipeline. The thin line
counts the bake draws done so and the time waited. 0 keeps the old way.
Without VICTORY_THIN=1 nothing changes.

Here a pipeline is one of the bake's by this fork's lists of its pixel and
geometry programs' hashes (there is no name test for the bake's programs
here); the bakes State::is_bake_draw finds by their targets alone are not
known at the bind and are translated as before. The work of ours written
down in a stream (DLSS) is run at the call too while a list translates
there; its test calls super::translate, which the tests' own translate
shadows.

Ported from VI-BR-PORT c354528 (and the black_box line of its 35afffd).
Every barrier group call of the title recorded a wait for every earlier shader
write (about 700 a frame in the prison), whatever its barriers were. The groups
are now read (the PC's D3D12_BARRIER_GROUP layout): diagnostics builds count the
calls by what they say of unordered access and list the barriers by kind, sync
and access. VICTORY_GROUP_WAITS=named keeps the wait for the calls that name
unordered access, =ended only for those that end one; unset, every call waits
as before. Named in VICTORY_AB (diagnostics builds) it changes within a run:
all groups wait in its phases on, only those that end an unordered access in
the others.

Unlike the source, plain builds read the groups only with VICTORY_GROUP_WAITS
set: unset, every call waits and the title's groups are not looked at, as
before.

With VICTORY_THIN=1 the written-down call keeps only the group count and is
translated with no groups, which read as ending an unordered access: every
call waits there, as in the source.

A test of the reading of groups is added here; the source has none.

Ported from VI-BR-PORT 1c65319 and the list.rs part of f2fbdbb (its
VICTORY_INDIRECT_TRUST part is left out).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:57:36 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/620/head:github-bot/gh-620'
git switch 'github-bot/gh-620'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-620'
git switch 'github-bot/gh-620'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-620'
git switch 'github-bot/gh-620'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-620'
git switch 'main'
git merge --squash 'github-bot/gh-620'
git switch 'main'
git merge --ff-only 'github-bot/gh-620'
git switch 'main'
git merge 'github-bot/gh-620'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.