Wave-wide form for three wave64 programs seen to run in it; dynamic s… #1248

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

@⁠JigsawBR on GitHub · 2026-11-26 01:56 UTC · original
JigsawBR:wave-wide-seen-table-settle-time-scale → main · +379 −7 · 8 files · 2 commits · open

…lots found by settling flights; later texture rechecks; a shader watch and slowed clocks (those two off by default)

  • Three console wave64 compute programs a 32-lane host refuses as translated now take the wave-wide branches form by default (shader_cache WAVE_WIDE_SEEN): the water's transmission volumetrics _VolumePortalsOnly / Submerged (926c46bab3b86bd6, a10179ab7eda0dc3) and sr_tracing's CS_Tiling_Generate_Opaque (2cc4c197ee29e291). The translation of these is cached apart from the plain one. VICTORY_WAVE_WIDE_LIST adds hashes, VICTORY_WAVE_WIDE_SEEN=0 leaves the three out, VICTORY_WAVE_WIDE=0 turns the form off; VICTORY_WAVE_WIDE=last still works as before. Left out on purpose: the volumetrics' _Tiled and _Tiled_LocalLights (5dc3b25986622949, 6f225b641c5b0708), which with this form put black patches on the water around the boat in the first boat mission, and the particles' CS_Visibility (369cbe906ea72764), which stopped the card on the first world frame. A TRANSLATOR EDIT for those programs only.
  • Dynamic descriptor slots: when the ring has none free, the flights in the air are settled and the slots asked for again before a draw is dropped (VICTORY_TABLE_SETTLE=0: not). Counted in the meter line.
  • RECHECK_FRAMES gains looks at 1,200 and 3,600 frames: in a six-minute run more changes turned up at the fifth look than at the fourth.
  • VICTORY_WATCH_SHADER=: at a compute shader's dispatches, what it is given and what the title memory it names holds by the next one (used on ShallowWaterSim:CS_ResolveHeightLookUps).
  • VICTORY_TIME_SCALE=<0..1> (new HLE module clock): the title's QueryPerformanceCounter, _Query_perf_counter, _Xtime_get_ticks and GetTickCount64 run at that share of real time, a test of whether the title's large physics steps sink the boat.

Measured on a Ryzen 7 5800X3D + RTX 5060 Ti 16 GB (2026-11-25, with VICTORY_TEXTURE_BACK=1 and the -Fast switches, 1920x1080): a 30-minute session from the boat mission to the camp, the water right (no black patches, the hull cuts no hole in it, the boat floats), 3.2 fps median at about 4,900 draws, no device loss. Unit tests: victory-shader and victory-hle pass; victory-gpu's WARP tests (indirect::warp_budget..., inplace::warp_a_title_buffer..., watch::written_pages...) fail one at a time from run to run on origin/main too, without these changes.

**@⁠JigsawBR** on GitHub · 2026-11-26 01:56 UTC · [original](https://github.com/fxceless/victory-fork/pull/1248) `JigsawBR:wave-wide-seen-table-settle-time-scale` → `main` · +379 −7 · 8 files · 2 commits · open …lots found by settling flights; later texture rechecks; a shader watch and slowed clocks (those two off by default) - Three console wave64 compute programs a 32-lane host refuses as translated now take the wave-wide branches form by default (shader_cache WAVE_WIDE_SEEN): the water's transmission volumetrics `_VolumePortalsOnly` / `Submerged` (926c46bab3b86bd6, a10179ab7eda0dc3) and sr_tracing's `CS_Tiling_Generate_Opaque` (2cc4c197ee29e291). The translation of these is cached apart from the plain one. VICTORY_WAVE_WIDE_LIST adds hashes, VICTORY_WAVE_WIDE_SEEN=0 leaves the three out, VICTORY_WAVE_WIDE=0 turns the form off; VICTORY_WAVE_WIDE=last still works as before. Left out on purpose: the volumetrics' `_Tiled` and `_Tiled_LocalLights` (5dc3b25986622949, 6f225b641c5b0708), which with this form put black patches on the water around the boat in the first boat mission, and the particles' `CS_Visibility` (369cbe906ea72764), which stopped the card on the first world frame. A TRANSLATOR EDIT for those programs only. - Dynamic descriptor slots: when the ring has none free, the flights in the air are settled and the slots asked for again before a draw is dropped (VICTORY_TABLE_SETTLE=0: not). Counted in the meter line. - RECHECK_FRAMES gains looks at 1,200 and 3,600 frames: in a six-minute run more changes turned up at the fifth look than at the fourth. - VICTORY_WATCH_SHADER=<hash>: at a compute shader's dispatches, what it is given and what the title memory it names holds by the next one (used on ShallowWaterSim:CS_ResolveHeightLookUps). - VICTORY_TIME_SCALE=<0..1> (new HLE module `clock`): the title's QueryPerformanceCounter, _Query_perf_counter, _Xtime_get_ticks and GetTickCount64 run at that share of real time, a test of whether the title's large physics steps sink the boat. Measured on a Ryzen 7 5800X3D + RTX 5060 Ti 16 GB (2026-11-25, with VICTORY_TEXTURE_BACK=1 and the -Fast switches, 1920x1080): a 30-minute session from the boat mission to the camp, the water right (no black patches, the hull cuts no hole in it, the boat floats), 3.2 fps median at about 4,900 draws, no device loss. Unit tests: victory-shader and victory-hle pass; victory-gpu's WARP tests (indirect::warp_budget..., inplace::warp_a_title_buffer..., watch::written_pages...) fail one at a time from run to run on origin/main too, without these changes.
- Three console wave64 compute programs a 32-lane host refuses as translated now take the
  wave-wide branches form by default (shader_cache WAVE_WIDE_SEEN): the water's transmission
  volumetrics `_VolumePortalsOnly` / `Submerged` (926c46bab3b86bd6, a10179ab7eda0dc3) and
  sr_tracing's `CS_Tiling_Generate_Opaque` (2cc4c197ee29e291). The translation of these is
  cached apart from the plain one. VICTORY_WAVE_WIDE_LIST adds hashes, VICTORY_WAVE_WIDE_SEEN=0
  leaves the three out, VICTORY_WAVE_WIDE=0 turns the form off; VICTORY_WAVE_WIDE=last still
  works as before. Left out on purpose: the volumetrics' `_Tiled` and `_Tiled_LocalLights`
  (5dc3b25986622949, 6f225b641c5b0708), which with this form put black patches on the water
  around the boat in the first boat mission, and the particles' `CS_Visibility`
  (369cbe906ea72764), which stopped the card on the first world frame. A TRANSLATOR EDIT for
  those programs only.
- Dynamic descriptor slots: when the ring has none free, the flights in the air are settled and
  the slots asked for again before a draw is dropped (VICTORY_TABLE_SETTLE=0: not). Counted in
  the meter line.
- RECHECK_FRAMES gains looks at 1,200 and 3,600 frames: in a six-minute run more changes turned
  up at the fifth look than at the fourth.
- VICTORY_WATCH_SHADER=<hash>: at a compute shader's dispatches, what it is given and what the
  title memory it names holds by the next one (used on ShallowWaterSim:CS_ResolveHeightLookUps).
- VICTORY_TIME_SCALE=<0..1> (new HLE module `clock`): the title's QueryPerformanceCounter,
  _Query_perf_counter, _Xtime_get_ticks and GetTickCount64 run at that share of real time, a
  test of whether the title's large physics steps sink the boat.

Measured on a Ryzen 7 5800X3D + RTX 5060 Ti 16 GB (2026-11-25, with VICTORY_TEXTURE_BACK=1 and
the -Fast switches, 1920x1080): a 30-minute session from the boat mission to the camp, the water
right (no black patches, the hull cuts no hole in it, the boat floats), 3.2 fps median at about
4,900 draws, no device loss. Unit tests: victory-shader and victory-hle pass; victory-gpu's WARP
tests (indirect::warp_budget..., inplace::warp_a_title_buffer..., watch::written_pages...) fail
one at a time from run to run on origin/main too, without these changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:20 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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