perf(vk): cut 2880x1800 temporal and cropped-present GPU time -0.71 ms (+2.0-2.5% FPS) via 32-bit SDR targets and direct crop UVs #2706

Merged
HumanBean merged 2 commits from Jer9/Longshot:perf/vk-temporal-present-bandwidth into main 2026-11-28 01:22:01 +00:00
Contributor

Summary

What a player notices:

  • Helps: Cuts GPU bandwidth at 2880x1800 (-0.71 ms total GPU, -0.329 ms m fsr3, +2.0% Mean FPS, +2.9% 1% low at 50% render scale FSR 3.1) and +2.5% Mean FPS at 1920x1200 67% render scale with Auto FG by using 32-bit B10G11R11_UFLOAT for SDR FSR 3.1 temporal targets, sampling cropped presents directly in fg_scale.comp, and using 32-bit R8G8B8A8_UNORM for SDR FSR 3.1 FI hud.layer.
  • No measurable impact: HDR10 (hdr=1) and DLSS/DLAA/FSR 4/XeSS paths preserve 64-bit R16G16B16A16_SFLOAT.

Three bandwidth reductions:

  1. SDR FSR 3.1 B10G11R11_UFLOAT (gpu/vk/vk_temporal.cpp, gpu/vk/vk_fsr3.cpp, gpu/vk/shaders/dlss_prep.comp): When mode == ur::FSR3 in SDR (!chain_hdr(), !pre_bloom, dev.features.shaderStorageImageExtendedFormats), s.color and s.output use 32-bit VK_FORMAT_B10G11R11_UFLOAT_PACK32 instead of R16G16B16A16_SFLOAT (with DLSS_PREP_PACKED_COMP_SPV clamping >= 0).
  2. Direct crop-UV sampling (gpu/vk/shaders/fg_scale.comp, gpu/vk/vk_framegen.cpp): fg_scale.comp samples src directly using scalar crop_x/y/w/h push constants (36 B std430-clean), eliminating the full-res src -> scale.cropped copy + barrier.
  3. SDR hud.layer R8G8B8A8_UNORM (gpu/vk/vk_framegen.cpp, gpu/vk/shaders/fg_hud_layer.comp, gpu/vk/shaders/fg_hud_composite.comp): SDR FSR 3.1 FI HUD overlay uses 32-bit RGBA8 with sqrt(B) + quantized T pack/unpack (preserving RGBA16F in HDR).

Files to read first: gpu/vk/vk_temporal.cpp, gpu/vk/vk_framegen.cpp, gpu/vk/shaders/fg_scale.comp, and tests/test_temporal_present_bandwidth.py.

Testing

Tested:

  • Hardware / OS: Windows 11 (build 26300), AMD Ryzen AI 7 350 / Radeon 860M (8 CUs, RDNA 3.5 iGPU), Adrenalin 26.10.1 (LLPC).
  • How to test:
    1. Launch Market (market-entrance, walk 5 s 0:LUP/5000 to fountain) at 2880x1800 50% render scale FSR 3.1 Lanczos2 (FG Off) and 1920x1200 67% render scale FSR 3.1 + Built-in Auto FG (3-round interleaved RX_VK_PASS_TIMING=2, RX_VK_ANTILAG=0).
    2. Verify cropped 16:9-in-16:10 (1382x864 -> 1920x1200 Lanczos2 + sharpness 30) visual parity (crop_16x9_in_16x10_after_v2.png) and RX_VK_FSR_FG=1 (frame_generation=2, frame_generation_by=2) SDR HUD RGBA8 live dispatches (77 made frames, fsr3fi_hud_rgba8_smoke.png).
  • Checks:
    • python -I -B tests/test_temporal_present_bandwidth.py --headers <Vulkan-Headers/include>: failed on forge/main (86b3b9e4) and passes on both g++ and clang++ on d3343c3e (including SPIR-V OpMemberDecorate Offset push-constant layout check).
    • python -I -B scripts/shaders.py all --check: passes (CRT: 4, fsr3: 28, host: 4).
    • python -I -B tests/run_all.py --strict (8 targeted checks including test_fg_scale_sharpen.py, test_fsr3fi_hud_layer.py, test_fsr3fi_hud_mask.py, test_guide_screenshots.py): 8 passed, 0 failed, 0 skipped.
    • python -I -B tests/run_all.py --changed forge/main: 57 passed, 0 failed, 3 skipped (Linux-only).

Still to test:

  • Live HDR10 swapchain (hdr=1 on an HDR-capable display): verify RGBA16F hud.layer and HDR fg_scale_pq parity (@Beanstalk / HDR monitor).
  • NVIDIA DLSS / HDR + AMD RDNA 4 (@Beanstalk after push).

Measurements

Verdict: At 2880x1800 50% render scale FSR 3.1, total GPU time dropped -0.71 ms (-2.7%) and m fsr3 dropped -0.329 ms (-5.3%), lifting Market Mean FPS +2.0% (3/3 rounds) and 1% low +2.9% (3/3 rounds); 1920x1200 67% render scale + Auto FG lifted Mean FPS +2.5% (3/3 rounds), with clean cropped present and RX_VK_FSR_FG=1 RGBA8 HUD parity.

Setup: Windows 11, AMD Radeon 860M (26.10.1 LLPC), RX_VK_PASS_TIMING=2, RX_VK_ANTILAG=0, RX_VK_PRECOMPILE=0, Market (market-entrance, 0:LUP/5000 to fountain, 12.5 s settle), 3-round interleaved medians (5cedfc85 for A/B, 7cdcfa25/d3343c3e for fg_scale.comp scalar push-constant fix + RX_VK_FSR_FG=1 smoke).

Where it makes a difference:

Metric Before: main @ 86b3b9e4 After: this PR @ d3343c3e
Market 2880x1800 50% render scale FSR 3.1 Total GPU ms 26.73 ms 26.02 ms (-0.71 ms / -2.7%)
Market 2880x1800 50% render scale m fsr3 GPU ms 6.249 ms 5.920 ms (-0.329 ms / -5.3%)
Market 2880x1800 50% render scale FSR 3.1 Mean FPS 29.06 FPS 29.64 FPS (+2.0%)
Market 2880x1800 50% render scale FSR 3.1 1% low FPS 16.54 FPS 17.02 FPS (+2.9%)
Market 1920x1200 67% render scale FSR 3.1 + Auto FG Mean FPS 24.13 FPS 24.73 FPS (+2.5%)

Where it does NOT make a difference (within run-to-run variance):

Metric Before: main @ 86b3b9e4 After: this PR @ d3343c3e
Market 1920x1200 67% render scale + Auto FG 1% low FPS 13.14 FPS 12.63 FPS (-3.9%, noise)
Market 2880x1800 50% render scale VRAM (last sample) 3892 MB 3914 MB (+22 MB, noise)

Risks

  • Low risk: SDR B10G11R11_UFLOAT is gated on mode == ur::FSR3, !chain_hdr(), !pre_bloom, and dev.features.shaderStorageImageExtendedFormats; HDR10 preserves RGBA16F.
  • Regenerated SPIR-V headers (fg_scale*_comp_spv.h, fg_hud_*_comp_spv.h, dlss_prep_packed_comp_spv.h) are covered by scripts/shaders.py all --check and tests/test_temporal_present_bandwidth.py. Reverting the PR is clean; nothing changes in saves, longshot_options.ini, or shader caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (python -I -B tests/run_all.py: 745 passed, 14 failed, 102 skipped; all 14 are pre-existing Windows-env failures — 13 shared across clean main + 16-way test_sampler_admission.py flake).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • The SPIR-V headers regenerated (a shader changed).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary What a player notices: - **Helps:** Cuts GPU bandwidth at `2880x1800` (`-0.71 ms` total GPU, `-0.329 ms` `m fsr3`, `+2.0%` Mean FPS, `+2.9%` 1% low at `50% render scale` FSR 3.1) and `+2.5%` Mean FPS at `1920x1200` `67% render scale` with Auto FG by using 32-bit `B10G11R11_UFLOAT` for SDR FSR 3.1 temporal targets, sampling cropped presents directly in `fg_scale.comp`, and using 32-bit `R8G8B8A8_UNORM` for SDR FSR 3.1 FI `hud.layer`. - **No measurable impact:** HDR10 (`hdr=1`) and DLSS/DLAA/FSR 4/XeSS paths preserve 64-bit `R16G16B16A16_SFLOAT`. Three bandwidth reductions: 1. **SDR FSR 3.1 `B10G11R11_UFLOAT` (`gpu/vk/vk_temporal.cpp`, `gpu/vk/vk_fsr3.cpp`, `gpu/vk/shaders/dlss_prep.comp`):** When `mode == ur::FSR3` in SDR (`!chain_hdr()`, `!pre_bloom`, `dev.features.shaderStorageImageExtendedFormats`), `s.color` and `s.output` use 32-bit `VK_FORMAT_B10G11R11_UFLOAT_PACK32` instead of `R16G16B16A16_SFLOAT` (with `DLSS_PREP_PACKED_COMP_SPV` clamping `>= 0`). 2. **Direct crop-UV sampling (`gpu/vk/shaders/fg_scale.comp`, `gpu/vk/vk_framegen.cpp`):** `fg_scale.comp` samples `src` directly using scalar `crop_x/y/w/h` push constants (`36 B` `std430`-clean), eliminating the full-res `src -> scale.cropped` copy + barrier. 3. **SDR `hud.layer` `R8G8B8A8_UNORM` (`gpu/vk/vk_framegen.cpp`, `gpu/vk/shaders/fg_hud_layer.comp`, `gpu/vk/shaders/fg_hud_composite.comp`):** SDR FSR 3.1 FI HUD overlay uses 32-bit `RGBA8` with `sqrt(B)` + quantized `T` pack/unpack (preserving `RGBA16F` in HDR). Files to read first: `gpu/vk/vk_temporal.cpp`, `gpu/vk/vk_framegen.cpp`, `gpu/vk/shaders/fg_scale.comp`, and `tests/test_temporal_present_bandwidth.py`. ## Testing **Tested:** - **Hardware / OS:** Windows 11 (build 26300), AMD Ryzen AI 7 350 / Radeon 860M (8 CUs, RDNA 3.5 iGPU), Adrenalin `26.10.1 (LLPC)`. - **How to test:** 1. Launch Market (`market-entrance`, walk `5 s` `0:LUP/5000` to fountain) at `2880x1800` `50% render scale` FSR 3.1 Lanczos2 (FG Off) and `1920x1200` `67% render scale` FSR 3.1 + Built-in Auto FG (3-round interleaved `RX_VK_PASS_TIMING=2`, `RX_VK_ANTILAG=0`). 2. Verify cropped `16:9`-in-`16:10` (`1382x864 -> 1920x1200` Lanczos2 + sharpness 30) visual parity (`crop_16x9_in_16x10_after_v2.png`) and `RX_VK_FSR_FG=1` (`frame_generation=2`, `frame_generation_by=2`) SDR HUD `RGBA8` live dispatches (`77` made frames, `fsr3fi_hud_rgba8_smoke.png`). - **Checks:** - `python -I -B tests/test_temporal_present_bandwidth.py --headers <Vulkan-Headers/include>`: failed on `forge/main` (`86b3b9e4`) and passes on both `g++` and `clang++` on `d3343c3e` (including SPIR-V `OpMemberDecorate Offset` push-constant layout check). - `python -I -B scripts/shaders.py all --check`: passes (`CRT: 4`, `fsr3: 28`, `host: 4`). - `python -I -B tests/run_all.py --strict` (8 targeted checks including `test_fg_scale_sharpen.py`, `test_fsr3fi_hud_layer.py`, `test_fsr3fi_hud_mask.py`, `test_guide_screenshots.py`): `8 passed, 0 failed, 0 skipped`. - `python -I -B tests/run_all.py --changed forge/main`: `57 passed, 0 failed, 3 skipped` (Linux-only). **Still to test:** - Live HDR10 swapchain (`hdr=1` on an HDR-capable display): verify `RGBA16F` `hud.layer` and HDR `fg_scale_pq` parity (`@Beanstalk` / HDR monitor). - NVIDIA DLSS / HDR + AMD RDNA 4 (`@Beanstalk` after push). ## Measurements **Verdict:** At `2880x1800` `50% render scale` FSR 3.1, total GPU time dropped **-0.71 ms (-2.7%)** and `m fsr3` dropped **-0.329 ms (-5.3%)**, lifting Market Mean FPS **+2.0%** (`3/3` rounds) and 1% low **+2.9%** (`3/3` rounds); `1920x1200` `67% render scale` + Auto FG lifted Mean FPS **+2.5%** (`3/3` rounds), with clean cropped present and `RX_VK_FSR_FG=1` `RGBA8` HUD parity. Setup: Windows 11, AMD Radeon 860M (`26.10.1 LLPC`), `RX_VK_PASS_TIMING=2`, `RX_VK_ANTILAG=0`, `RX_VK_PRECOMPILE=0`, Market (`market-entrance`, `0:LUP/5000` to fountain, `12.5 s` settle), 3-round interleaved medians (`5cedfc85` for A/B, `7cdcfa25`/`d3343c3e` for `fg_scale.comp` scalar push-constant fix + `RX_VK_FSR_FG=1` smoke). Where it makes a difference: | Metric | Before: main @ 86b3b9e4 | After: this PR @ d3343c3e | | --- | ---: | ---: | | Market `2880x1800` `50% render scale` FSR 3.1 Total GPU ms | 26.73 ms | **26.02 ms (-0.71 ms / -2.7%)** | | Market `2880x1800` `50% render scale` `m fsr3` GPU ms | 6.249 ms | **5.920 ms (-0.329 ms / -5.3%)** | | Market `2880x1800` `50% render scale` FSR 3.1 Mean FPS | 29.06 FPS | **29.64 FPS (+2.0%)** | | Market `2880x1800` `50% render scale` FSR 3.1 1% low FPS | 16.54 FPS | **17.02 FPS (+2.9%)** | | Market `1920x1200` `67% render scale` FSR 3.1 + Auto FG Mean FPS | 24.13 FPS | **24.73 FPS (+2.5%)** | Where it does NOT make a difference (within run-to-run variance): | Metric | Before: main @ 86b3b9e4 | After: this PR @ d3343c3e | | --- | ---: | ---: | | Market `1920x1200` `67% render scale` + Auto FG 1% low FPS | 13.14 FPS | 12.63 FPS (-3.9%, noise) | | Market `2880x1800` `50% render scale` VRAM (last sample) | 3892 MB | 3914 MB (+22 MB, noise) | ## Risks - Low risk: SDR `B10G11R11_UFLOAT` is gated on `mode == ur::FSR3`, `!chain_hdr()`, `!pre_bloom`, and `dev.features.shaderStorageImageExtendedFormats`; HDR10 preserves `RGBA16F`. - Regenerated SPIR-V headers (`fg_scale*_comp_spv.h`, `fg_hud_*_comp_spv.h`, `dlss_prep_packed_comp_spv.h`) are covered by `scripts/shaders.py all --check` and `tests/test_temporal_present_bandwidth.py`. Reverting the PR is clean; nothing changes in saves, `longshot_options.ini`, or shader caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (`python -I -B tests/run_all.py`: `745 passed, 14 failed, 102 skipped`; all 14 are pre-existing Windows-env failures — 13 shared across clean `main` + 16-way `test_sampler_admission.py` flake). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] The SPIR-V headers regenerated (a shader changed). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
Assisted-by: Antigravity
perf(vk): use 32-bit SDR FSR 3.1 temporal/HUD targets and direct crop UVs in fg_scale
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d3343c3ede
Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11 Radeon 860M (26.10.1 LLPC): 3-round interleaved A/B at 2880x1800 50% FSR 3.1 (-0.71 ms GPU, -5.3% m fsr3, +2.0% FPS, +2.9% 1% low) and 1920x1200 67% Auto FG (+2.5% FPS), plus cropped 16:9-in-16:10 and RX_VK_FSR_FG=1 RGBA8 HUD live smoke (77 made frames), 0 DEVICE_LOST

Tested in game: Windows 11 Radeon 860M (26.10.1 LLPC): 3-round interleaved A/B at 2880x1800 50% FSR 3.1 (-0.71 ms GPU, -5.3% m fsr3, +2.0% FPS, +2.9% 1% low) and 1920x1200 67% Auto FG (+2.5% FPS), plus cropped 16:9-in-16:10 and RX_VK_FSR_FG=1 RGBA8 HUD live smoke (77 made frames), 0 DEVICE_LOST
Author
Contributor

@Beanstalk Please test live HDR10 swapchain (hdr=1 on an HDR-capable display) for RGBA16F hud.layer and HDR fg_scale_pq parity, plus NVIDIA DLSS/HDR and AMD RDNA 4 A/B.

@Beanstalk Please test live HDR10 swapchain (`hdr=1` on an HDR-capable display) for `RGBA16F` `hud.layer` and HDR `fg_scale_pq` parity, plus NVIDIA DLSS/HDR and AMD RDNA 4 A/B.
Member

@Jer9 only members of BigBeans can start the farm.

One of them can approve this request by reacting 👍 to it or to this comment. This request was for d3343c3, and the PR has changed since (dbfcea8), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@Jer9 only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `d3343c3`, and the PR has changed since (`dbfcea8`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
Owner
@rebase
Member

I rebased this pull request onto main (20bedc6da1): the new head is dbfcea8d28.

Conflicts resolved

  • gpu/vk/vk_temporal.cpp: Kept the base branch’s motion history across placement changes and the pull request’s packed temporal target selection.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (20bedc6da146): the new head is dbfcea8d2888. **Conflicts resolved** - gpu/vk/vk_temporal.cpp: Kept the base branch’s motion history across placement changes and the pull request’s packed temporal target selection. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed perf/vk-temporal-present-bandwidth from d3343c3ede
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval waiting for a BigBean's 👍 on the request
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to dbfcea8d28
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 12s
CI / What the change needs (pull_request) Successful in 13s
CI / Third-party parts and guide screenshots (pull_request) Failing after 17s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-28 01:01:14 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The new test inherits renderer switches and can fail on a correctly working checkout. The reported performance runs also predate this rebased head, and the affected Tier 1 hardware and HDR paths still need testing. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change reduces temporal and HUD target sizes and removes a cropped-present copy, at the cost of lower colour precision and new shader variants. The reported 860M runs are promising, but their results are not established for this head.

Should fix (2): not blocking, but worth doing before merging.

  • L1 tests/test_temporal_present_bandwidth.py:68: The compiled fixtures inherit the caller's renderer switches, so this test's result depends on the developer's environment. (more on the line) Do: Run the fixtures with those renderer variables removed or explicitly set to the values required by the test.
  • L2: The stated standalone test command omits its required Vulkan headers argument. When: Running the command as recorded exits with '--headers <Vulkan-Headers/include> is required' before performing the checks. Do: Record the actual command including --headers, or use the test runner invocation that supplies it.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The measured commits differ from this PR's base and head, and the Auto FG result includes a lower 1% low. When: The rebase could change the performance result; the reported 24.13 to 24.73 mean FPS with Auto FG accompanies a 13.14 to 12.63 FPS 1% low, without the individual run spreads needed to call that difference noise. Do: Repeat interleaved base-versus-head runs in the reported scenes, include individual runs, frame times and memory, and assess both mean and low results.
  • L4 gpu/vk/shaders/fg_scale.comp:23: The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge. (more on the line) Do: Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base.

@fix can do L1 and L2.

Checks: Still running: PR description / Title and description (pull_request_target).

More: does it help, other systems, switches, what was read

Does it help: Unproven for this head: the PR reports three interleaved runs on a Windows Radeon 860M, with 26.73 to 26.02 ms GPU time and 29.06 to 29.64 mean FPS at 2880x1800; those runs compare 86b3b9e4 with earlier PR commits, not base 20bedc6d with head dbfcea8d. Auto FG's reported 1% low fell from 13.14 to 12.63 FPS.

Other systems: The crop shader also runs for other upscalers, GPUs and HDR presentation; the HUD format affects FSR frame interpolation, and the packed temporal input also affects game upscaling with FSR frame interpolation. The supplied live evidence covers Windows Radeon 860M SDR; HDR, NVIDIA, AMD discrete GPUs, Linux and Steam Deck remain unverified.

Switches: No switches added, changed or removed.

Reviewed: dbfcea8d28 against 20bedc6da1: Read the repository rules and PR template, commit log, source diffs, changed shader sources, affected temporal and frame-generation paths, and portions of the changed tests and their runner. Skimmed generated SPIR-V headers; the full changed C++ files and test fixtures were not read in full. docs/review-checklist.md is absent; Tooling's rules were unavailable in the closed network.; nothing run (a code review).

Checked and fine:

  • Both commits carry AI-assistance trailers.
  • No game-derived files or third-party changes appear in the changed-file list.
  • The crop push constants use scalar fields and the test checks their SPIR-V offsets.
  • The new HUD pipeline setup drops both pipelines on partial creation failure.

Testing: No code, tests, builds or project scripts were run, as requested. The author reports SDR game runs and automated checks; HDR and Tier 1 runs remain outstanding.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The new test inherits renderer switches and can fail on a correctly working checkout. The reported performance runs also predate this rebased head, and the affected Tier 1 hardware and HDR paths still need testing. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change reduces temporal and HUD target sizes and removes a cropped-present copy, at the cost of lower colour precision and new shader variants. The reported 860M runs are promising, but their results are not established for this head. **Should fix (2)**: not blocking, but worth doing before merging. - **L1** `tests/test_temporal_present_bandwidth.py:68`: The compiled fixtures inherit the caller's renderer switches, so this test's result depends on the developer's environment. (more on the line) **Do:** Run the fixtures with those renderer variables removed or explicitly set to the values required by the test. - **L2**: The stated standalone test command omits its required Vulkan headers argument. *When:* Running the command as recorded exits with '--headers <Vulkan-Headers/include> is required' before performing the checks. **Do:** Record the actual command including --headers, or use the test runner invocation that supplies it. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The measured commits differ from this PR's base and head, and the Auto FG result includes a lower 1% low. *When:* The rebase could change the performance result; the reported 24.13 to 24.73 mean FPS with Auto FG accompanies a 13.14 to 12.63 FPS 1% low, without the individual run spreads needed to call that difference noise. **Do:** Repeat interleaved base-versus-head runs in the reported scenes, include individual runs, frame times and memory, and assess both mean and low results. - **L4** `gpu/vk/shaders/fg_scale.comp:23`: The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge. (more on the line) **Do:** Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base. `@fix` can do L1 and L2. **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for this head: the PR reports three interleaved runs on a Windows Radeon 860M, with 26.73 to 26.02 ms GPU time and 29.06 to 29.64 mean FPS at 2880x1800; those runs compare 86b3b9e4 with earlier PR commits, not base 20bedc6d with head dbfcea8d. Auto FG's reported 1% low fell from 13.14 to 12.63 FPS. **Other systems:** The crop shader also runs for other upscalers, GPUs and HDR presentation; the HUD format affects FSR frame interpolation, and the packed temporal input also affects game upscaling with FSR frame interpolation. The supplied live evidence covers Windows Radeon 860M SDR; HDR, NVIDIA, AMD discrete GPUs, Linux and Steam Deck remain unverified. **Switches:** No switches added, changed or removed. **Reviewed:** dbfcea8d2888 against 20bedc6da146: Read the repository rules and PR template, commit log, source diffs, changed shader sources, affected temporal and frame-generation paths, and portions of the changed tests and their runner. Skimmed generated SPIR-V headers; the full changed C++ files and test fixtures were not read in full. docs/review-checklist.md is absent; Tooling's rules were unavailable in the closed network.; nothing run (a code review). **Checked and fine:** - Both commits carry AI-assistance trailers. - No game-derived files or third-party changes appear in the changed-file list. - The crop push constants use scalar fields and the test checks their SPIR-V offsets. - The new HUD pipeline setup drops both pipelines on partial creation failure. **Testing:** No code, tests, builds or project scripts were run, as requested. The author reports SDR game runs and automated checks; HDR and Tier 1 runs remain outstanding. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
@ -21,1 +21,3 @@
layout(push_constant) uniform P { int mode; float sharp; float x0; float x1; int side; } pc;
layout(push_constant) uniform P { int mode; float sharp; float x0; float x1; int side; int crop_x; int crop_y; int crop_w; int crop_h; } pc;
// Map crop-normalized UVs [0, 1] into full-texture UVs clamped strictly to the crop's texel centers so
// bilinear sampling never bleeds across padding outside the crop rectangle.
Member

L4 (should fix): The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge.

When: Direct crop sampling now runs across GPU vendors and operating systems, including native HDR, while only an SDR Windows 860M run is reported.

Do: Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base.

**L4** (should fix): The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge. *When:* Direct crop sampling now runs across GPU vendors and operating systems, including native HDR, while only an SDR Windows 860M run is reported. **Do:** Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base.
@ -0,0 +65,4 @@
"-Wno-missing-field-initializers", "-Wno-unused-function", "-Wno-unused-parameter",
*extra_flags, str(cpp), "-o", str(exe)], check=True)
r = subprocess.run([str(exe)], capture_output=True, text=True)
if r.returncode:
Member

L1 (should fix): The compiled fixtures inherit the caller's renderer switches, so this test's result depends on the developer's environment.

When: With RX_VK_FSR_FG_HUDLESS=0 or RX_VK_FSR_FG_HUD_LAYER=0, the copied production functions disable the HUD layer; the SDR fixture then fails its expected RGBA8 allocation even though the implementation works.

Do: Run the fixtures with those renderer variables removed or explicitly set to the values required by the test.

**L1** (should fix): The compiled fixtures inherit the caller's renderer switches, so this test's result depends on the developer's environment. *When:* With RX_VK_FSR_FG_HUDLESS=0 or RX_VK_FSR_FG_HUD_LAYER=0, the copied production functions disable the HUD layer; the SDR fixture then fails its expected RGBA8 allocation even though the implementation works. **Do:** Run the fixtures with those renderer variables removed or explicitly set to the values required by the test.
Owner
@fix
BeanBot force-pushed perf/vk-temporal-present-bandwidth from dbfcea8d28
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 12s
CI / What the change needs (pull_request) Successful in 13s
CI / Third-party parts and guide screenshots (pull_request) Failing after 17s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 94c751cf00
Some checks failed
beanstalk/approval changed since the request: ask again
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Successful in 43s
CI / Third-party parts and guide screenshots (pull_request) Failing after 51s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 3m26s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-28 01:11:56 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The fixture environment fix preserves the bandwidth changes, and the standalone test command now includes its required headers argument. The reported performance comparison and Tier 1 and HDR coverage still need to be completed. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 94c751cf00. I rebased it onto main (aefc2383a6). I edited its description to match the change.

Changed

  • Fixture environment in tests/test_temporal_present_bandwidth.py:68: Removed the frame generation and HUD renderer switches from the environment passed to compiled fixtures. Tests were not run, as requested.

Nothing was built or run: the checks run again on the new head.

The pull request reduces temporal and HUD target bandwidth and removes a cropped-present copy, at the cost of additional format-specific shaders and rendering paths. The fixture change isolates the checks from three renderer environment switches.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The measured commits differ from this PR's base and head, and the Auto FG result includes a lower 1% low. When: The rebase could change the performance result; the reported 24.13 to 24.73 mean FPS with Auto FG accompanies a 13.14 to 12.63 FPS 1% low, without the individual run spreads needed to call that difference noise. Do: Repeat interleaved base-versus-head runs in the reported scenes, include individual runs, frame times and memory, and assess both mean and low results.
  • L4 gpu/vk/shaders/fg_scale.comp:23: The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge. When: Direct crop sampling now runs across GPU vendors and operating systems, including native HDR, while only an SDR Windows 860M run is reported. Do: Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base.

Checks: they run again on this head (CI / Third-party parts and guide screenshots (pull_request) failed on the last one); a failure shows on the pull request.

More: does it help, other systems, switches, what was read

Does it help: Unproven for this base and head. The PR reports a 0.71 ms total GPU reduction and a 2.0% mean FPS increase at 2880x1800 on a Radeon 860M across three interleaved rounds, but those measurements used different commits; the Auto FG result also reports a 3.9% lower 1% low.

Other systems: The direct crop path also affects HDR presentation and other upscalers; the packed temporal path is gated by format support and rendering mode. Live HDR and the requested Tier 1 hardware results remain outstanding.

Switches: The fixture clears RX_VK_FRAMEGEN, RX_VK_FSR_FG_HUDLESS and RX_VK_FSR_FG_HUD_LAYER only in its child environment, restoring their default behavior for the checks. The base-to-head diff also adds LONGSHOT_CHECK_CACHE, enabled by default with a shared cache directory and disabled by setting it to 0.

Reviewed: 94c751cf00 against aefc2383a6: Read AGENTS.md, CONTRIBUTING.md, the fix diff, the temporal bandwidth test and relevant rendering diffs. Skimmed generated headers and the broader base-to-head changes; the full changed code was not read.; nothing run (a code review).

Checked and fine:

  • All compiled fixtures use run_cpp, which removes the three named switches from their child environment without changing the parent environment.
  • The fix does not remove or disable the rendering optimizations.

Testing: No commands from the project or tests were run. The author reports Windows Radeon 860M gameplay and fixture checks; CI has not run on this head.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The fixture environment fix preserves the bandwidth changes, and the standalone test command now includes its required headers argument. The reported performance comparison and Tier 1 and HDR coverage still need to be completed. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 94c751cf0071. I rebased it onto `main` (aefc2383a6cf). I edited its description to match the change. **Changed** - **Fixture environment in tests/test_temporal_present_bandwidth.py:68**: Removed the frame generation and HUD renderer switches from the environment passed to compiled fixtures. Tests were not run, as requested. Nothing was built or run: the checks run again on the new head. The pull request reduces temporal and HUD target bandwidth and removes a cropped-present copy, at the cost of additional format-specific shaders and rendering paths. The fixture change isolates the checks from three renderer environment switches. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The measured commits differ from this PR's base and head, and the Auto FG result includes a lower 1% low. *When:* The rebase could change the performance result; the reported 24.13 to 24.73 mean FPS with Auto FG accompanies a 13.14 to 12.63 FPS 1% low, without the individual run spreads needed to call that difference noise. **Do:** Repeat interleaved base-versus-head runs in the reported scenes, include individual runs, frame times and memory, and assess both mean and low results. - **L4** `gpu/vk/shaders/fg_scale.comp:23`: The changed presentation and temporal paths need the Tier 1 and HDR coverage identified in the PR before merge. *When:* Direct crop sampling now runs across GPU vendors and operating systems, including native HDR, while only an SDR Windows 860M run is reported. **Do:** Run cropped presentation and relevant temporal/frame-generation paths on Tier 1 NVIDIA and AMD hardware, Linux/Steam Deck, and a live HDR10 swapchain; compare visual output and performance with the base. **Checks:** they run again on this head (`CI / Third-party parts and guide screenshots (pull_request)` failed on the last one); a failure shows on the pull request. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for this base and head. The PR reports a 0.71 ms total GPU reduction and a 2.0% mean FPS increase at 2880x1800 on a Radeon 860M across three interleaved rounds, but those measurements used different commits; the Auto FG result also reports a 3.9% lower 1% low. **Other systems:** The direct crop path also affects HDR presentation and other upscalers; the packed temporal path is gated by format support and rendering mode. Live HDR and the requested Tier 1 hardware results remain outstanding. **Switches:** The fixture clears RX_VK_FRAMEGEN, RX_VK_FSR_FG_HUDLESS and RX_VK_FSR_FG_HUD_LAYER only in its child environment, restoring their default behavior for the checks. The base-to-head diff also adds LONGSHOT_CHECK_CACHE, enabled by default with a shared cache directory and disabled by setting it to 0. **Reviewed:** 94c751cf0071 against aefc2383a6cf: Read AGENTS.md, CONTRIBUTING.md, the fix diff, the temporal bandwidth test and relevant rendering diffs. Skimmed generated headers and the broader base-to-head changes; the full changed code was not read.; nothing run (a code review). **Checked and fine:** - All compiled fixtures use run_cpp, which removes the three named switches from their child environment without changing the parent environment. - The fix does not remove or disable the rendering optimizations. **Testing:** No commands from the project or tests were run. The author reports Windows Radeon 860M gameplay and fixture checks; CI has not run on this head. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
Jer9 force-pushed perf/vk-temporal-present-bandwidth from 94c751cf00
Some checks failed
beanstalk/approval changed since the request: ask again
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Successful in 43s
CI / Third-party parts and guide screenshots (pull_request) Failing after 51s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 3m26s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 563e64fe1d
Some checks are pending
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 31s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
2026-11-28 01:16:51 +00:00
Compare
HumanBean deleted branch perf/vk-temporal-present-bandwidth 2026-11-28 01:22:03 +00:00
Some checks are pending
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 31s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
beanstalk/approval changed since the request: ask again
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
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
MagicBeanDev/Longshot!2706
No description provided.