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

Open
JigsawBR wants to merge 2 commits from upstream-pr/1248 into main
JigsawBR commented 2026-11-26 01:56:18 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by JigsawBR on 2026-11-26T01:56:18Z.


…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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5502558851 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1248). Originally posted by [JigsawBR](https://github.com/JigsawBR) on 2026-11-26T01:56:18Z. --- …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.
Filip722 commented 2026-11-27 19:01:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-27T19:01:36Z.


I reproduced the underwater black scene described in #1368 on an RTX 5060 Laptop with GE-Proton11-14 in the Series S profile. The earlier renderer kept the HUD visible and reported that the portal-only compute pipeline was refused. The dedicated submerged hash never appeared in that run.

On current main f299fba with the Proton compositor and shader fixes and the launcher water-light setting, I reached the same underwater part of the replay and could see and steer the diver. The boat hull also rendered from below, with remaining block artifacts. This compared two renderer revisions. The separate older-revision selector test exited in loading, so it gave no one-shader A/B result.

Assisted by Codex (GPT-6.2-Sol High).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7226113229 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1248#issuecomment-7226113229). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-27T19:01:36Z. --- I reproduced the underwater black scene described in #1368 on an RTX 5060 Laptop with GE-Proton11-14 in the Series S profile. The earlier renderer kept the HUD visible and reported that the portal-only compute pipeline was refused. The dedicated submerged hash never appeared in that run. On current main `f299fba` with the Proton compositor and shader fixes and the launcher water-light setting, I reached the same underwater part of the replay and could see and steer the diver. The boat hull also rendered from below, with remaining block artifacts. This compared two renderer revisions. The separate older-revision selector test exited in loading, so it gave no one-shader A/B result. Assisted by Codex (GPT-6.2-Sol High).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1248:upstream-pr/1248'
git switch 'upstream-pr/1248'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1248'
git switch 'upstream-pr/1248'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1248'
git switch 'upstream-pr/1248'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1248'
git switch 'main'
git merge --squash 'upstream-pr/1248'
git switch 'main'
git merge --ff-only 'upstream-pr/1248'
git switch 'main'
git merge 'upstream-pr/1248'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1245
No description provided.