VICTORY_RT_MISS=1: every ray misses and ray-only skinning is left out (off by default) #619

Closed
github-bot wants to merge 2 commits from github-bot/gh-619 into main AGit
Owner

@⁠KhryptorGraphics on GitHub · 2026-11-28 01:55 UTC · original
KhryptorGraphics:port/rt-miss → main · +82 −0 · 5 files · 2 commits · closed without merging

What

Ports VICTORY_RT_MISS=1 from edsuuu's VI-BR-PORT (GPL-3.0). Off by default.

  • With the switch on, the ray-tracing node test answers "nothing hit", so every traversal ends at its root.
  • With the switch on and the structure builder off, the title's ray-only skinning programs (CSComputeSkinning*, about 30) are left out through pipeline/make.rs left_out. VICTORY_RT_SKIN=1 runs them.
  • The switch is added to the shader cache key.

This changes the shader translator's source, so every cached translation is made again once (victory shaders, then warm).

Source commits: 8b349ee, ab4571d, 1556de8, and the name test of f1e5e45. The source reports 4.3-5.6 to 6.6-9.7 fps in the world on Series S with the builder off.

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/619) `KhryptorGraphics:port/rt-miss` → `main` · +82 −0 · 5 files · 2 commits · closed without merging ## What Ports `VICTORY_RT_MISS=1` from edsuuu's VI-BR-PORT (GPL-3.0). **Off by default.** - With the switch on, the ray-tracing node test answers "nothing hit", so every traversal ends at its root. - With the switch on and the structure builder off, the title's ray-only skinning programs (`CSComputeSkinning*`, about 30) are left out through `pipeline/make.rs` `left_out`. `VICTORY_RT_SKIN=1` runs them. - The switch is added to the shader cache key. **This changes the shader translator's source, so every cached translation is made again once** (`victory shaders`, then `warm`). Source commits: 8b349ee, ab4571d, 1556de8, and the name test of f1e5e45. The source reports 4.3-5.6 to 6.6-9.7 fps in the world on Series S with the builder off. ## 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_RT_MISS=1 (off by default) the ray-tracing node test answers
"nothing hit" for every node: a box node's four children are none and any
other node is the triangle miss, so every traversal ends at its root. For
runs without the structure builder: the title's local-light shadow rays hit
nothing (lit, in place of faces made black by what unbuilt structures held),
its reflection and probe rays reach the sky, and the trace programs cost next
to nothing. The sun's near shadows are the title's cascades and stay. Part of
the translation: the shader cache keys on it.

With the switch on and the builder off, the title's bvh_skinning programs
(entry points CSComputeSkinning*, some 30) pose every animated mesh again for
structures no ray walks. They are left out as the ray-tracing resolves
already are here (pipeline/make.rs left_out: never made, their direct and
indirect dispatches dropped and counted); VICTORY_RT_SKIN=1 runs them. The
picture's own skinning (CS_PedStandardSkinning*, CS_PosOnlyLodSkinning*,
computeclothSkinning) is named otherwise.

Ported from edsuuu's VI-BR-PORT (GPL-3.0): 8b349ee (cherry-picked there as
7d7b9e4) for the node test, ab4571d and 1556de8 for the skinning, and the
name test of f1e5e45. Its measurements, Series S: world with the builder
off 4.3-5.6 -> 6.6-9.7 fps; opening cutscene 6.8 -> 10.2 fps median.

Not taken from f1e5e45: its RT_MISS-gated skips of CS_RaytracingResolve* and
CS_ScreenProbes_ActivateRays*, which it took from this fork's make.rs. Here
the resolves are left out whenever the builder is off (VICTORY_RT_RESOLVE=1
runs them, as there), and the ray activation runs unless
VICTORY_ACTIVATE_RAYS=0: left out, it gave surfaces a magenta cast at no
frame-rate gain (issue #2).

The translator's source changed: every cached shader translation is made
again once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
shader() keeps one container per content, with the stage it was first
given: the same bytes asked as a pixel program came back a compute one,
and the assertion that only compute programs are named would have failed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:57:34 +00:00
github-bot closed this pull request 2026-11-28 19:25:00 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 19:22 UTC · original

Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

**@⁠trustno1-coder** on GitHub · 2026-11-28 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/619#issuecomment-7244501238) Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!619
No description provided.