fix(vk): the mods' world layer is drawn with the game's own upscaler #3261

Merged
HumanBean merged 3 commits from dyst/Longshot:fix/world-layer-scene into main 2026-12-05 19:24:55 +00:00
Member

Summary

With the game's own upscaler (no DLSS, FSR, XeSS or frame generation), nothing a mod draws with gfx.world shows: shapes, models, labels, and World roots with occlude: "depth". The mod's calls succeed and its shapes are made, but the renderer never gets a 3D scene to draw them in.

There are two causes, both in gpu/vk/vk_draw.cpp:

  1. The fast draw path (RX_VK_DRAW_OVERHEAD_LEAN, on by default since #3048) leaves the mods out. draw() hands scene draws to temporal_note_scene_draw only when an upscaler, frame generation or ReShade's depth wants them (temporal_scene_on). That function also keeps the scene for the mods' world layer, World roots' depth, the effects' depth and the Sharpness row's depth, but none of those reach it on this path.
  2. The upscale's picture size is noted only for the Sharpness row. temporal_note_scene_draw keeps only scenes of a size the picture comes from (temporal_scene_size). Those sizes are noted from the picture (temporal_note_picture) in upscale_stub and dispatch only while sharpen_depth_wanted() is true. With the Sharpness row at 0, every scene is refused, and temporal_world_scene finds no camera.

What this changes:

  • draw() now asks for the scene for each of temporal_note_scene_draw's other takers, scene_takers_no_engine(): four relaxed loads (world_layer_any(), world_depth_wanted(), fx_depth_wanted(), sharpen_depth_wanted()), asked only for a draw with a depth target.
  • upscale_stub and dispatch note the picture's size for each of them. Before, only the Sharpness row's depth did: an effect that samples the depth had no scene either when it was the only taker, nor did World roots' depth on upscale_stub's path (the networks left out on GPUs without cooperative matrices).
  • The RGBA16F scene (a mod's: HDR Native with the PsychoV35 tone mapper) with the game's own upscaler was a picture only the Sharpness row took. The world layer now takes it too: temporal_note_scene_draw keeps its camera, upscale_picture finds it and finish_upscale_picture draws the world layer on it (its pipelines are made per picture format; an engine already gives it RGBA16F pictures). The effects, ReShade and frame generation still don't.
  • The =check mode compares against temporal_note_scene_draw's whole list, so it would have reported this.

To see the bug on main: run a mod that draws with gfx.world (docs/modding/examples/debug-hitboxes: the ring around Link and his label) with the Upscaler on the game's own (Auto, on a build with no DLSS). Nothing is drawn. With this PR, the shapes are there.

Read first: scene_takers_no_engine and draw()'s temporal_scene_on, upscale_stub, dispatch's temporal_note_picture line, upscale_picture and finish_upscale_picture in gpu/vk/vk_draw.cpp; then temporal_note_scene_draw and temporal_world_scene in gpu/vk/vk_temporal.cpp; then check_takers in tests/test_gfx_world.py.

Testing

Tested: Windows 11, RTX 3080, NVIDIA 621.47, 3440-wide window, the game's own upscaler (Auto: "this build has no DLSS"). A local mod drew a ring, a box and a label around Link from gfx.world, run with dev.py game-tests --window from the kokiri-start save, and the window was captured.

  • Without the fix (main f359e2621 with only a mod API branch's clock functions on top, no renderer change): the mod's shapes are made (its test passes), but none is drawn.
  • With this PR (over the same base): the ring is on the ground around Link, the box around him, the label above.
  • The same fix ran in a mod's own map on a local mod API branch: a room model drawn with gfx.world.model, invisible before the fix and drawn after it.
  • 8f732af20 (the review's fixes) over the same base, the same mod, headless (dev.py game-tests, kokiri-start): the log has vk: mods' world layer: drawn (71 quads in 2 groups, ...) on the picture, 2560x1440. Not seen in game: the RGBA16F scene (it needs an HDR10 display) and an effect sampling the depth alone (here the effects take no picture before the upscale at any Render resolution share tried: Auto, 100 % and 75 % read it as RGB9E5); both are covered by the checks below.

Checks:

  • tests/test_gfx_world.py (new checks) fails on main (13 failures) and on this PR's first head (6: the effects' and World roots' depth, the RGBA16F picture), and passes here. It reads each condition on the scene's path from the source (draw()'s temporal_scene_on, temporal_note_scene_draw's two gates, the picture notes in upscale_stub and dispatch, upscale_picture's two gates, the world layer's in finish_upscale_picture, temporal_world_scene's) and evaluates it with each taker on alone, with the game's own upscaler: the scene is handed on, its camera kept and the picture's size noted. Also the RGBA16F scene with the world layer alone, and with no taker nothing new runs. A gate written as Sharpness && world layer fails it, and a condition that reads a name it doesn't know fails too.
  • tests/test_fsr3fi_hud_capture.py's RGBA16F case now expects the picture found for the world layer, and still not for the effects or frame generation.
  • tests/test_upscale_fallback.py (it compiles upscale_stub cut from the source) has a stand-in for world_layer_any; it passes with clang++ and g++.
  • tests/run_all.py --strict on Windows: 22 failures, all of which also fail on main 7bc53f841 on this PC. They come from tools this PC lacks (glslang, spirv-val, llvm-mc, zstandard) and Windows-only failures of main.
  • On 8f732af20, the checks that read these functions (test_gfx_world, test_upscale_fallback, test_sharpen, test_fsr3fi_hud_capture, test_fx_depth, test_rgba16f_scene_dlss, test_dlss_checks, test_dlss_pre_bloom, test_upscaler_rows, test_dummy_views and the test_dlssg* family): pass, but test_dlssg and test_vk_draw_overhead_lean, which fail the same on 5317553ab (ui_modal undeclared in its cut; an anchor in draw_overhead_lean.h, which this doesn't touch). test_gfx_effects skipped (no glslang here).
  • Built as a pack over main's base with llvm-mingw: the renderer compiles.

Still to test:

  • Linux, RADV or another GPU: a mod drawing with gfx.world under the game's own upscaler, expecting its shapes to show (by hand or @Beanstalk).
  • An HDR10 display, HDR Native with PsychoV35, the game's own upscaler: the world layer's shapes show (by hand).
  • An effect sampling the depth alone at a Render resolution whose upscale input the effects take: it draws, no "no scene depth this frame" in the log (by hand).
  • DLSS, FSR 3.1 or XeSS: the world layer still draws as before. This path was already taken there; the change only adds takers (by hand).

Measurements

Verdict: no difference shown. With no taker the extra reads cost nothing measurable (Market +1.2 % fps, Hyrule Field +0.1 %, both within the runs' spread); with the world layer on, this PR draws it where main draws nothing, at no measurable cost (Market -0.4 %, Hyrule Field +0.4 %, within the spread).

Setup: Windows 11, Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47), the game's own upscaler (Auto: no DLSS in the build), dev.py ab's settings (V-Sync and frame generation off, uncapped, Render resolution at its 67 %), timing mode, A1 B1 A2 B2, 60 s measured after 10 s. A: main 7bc53f841 (this PR's first base); B: this PR's change on the same commit (65d6cd31e, local: 8ba796875 + the review's fix, the same diff as the head 8f732af20 on 641bd48c7), both packed over one base of main f359e2621. World layer on: the probe mod drawing a ring, a box and a label around Link (LONGSHOT_DEV_MODS, its permissions granted in each run's profile); every B run logged mods' world layer: drawn (71 quads ...), every A run not drawn this frame (no 3D scene this frame).

Before: main @ 7bc53f841 After: this PR @ 65d6cd31e Δ
Market, no taker: fps (each run) 58.0 / 62.4 59.6 / 62.3 +1.2 % (medians)
Market, no taker: 1 % low / p99 41.6 fps / 24.59 ms 43.6 fps / 22.98 ms
Hyrule Field, no taker: fps 81.4 / 78.3 78.6 / 81.2 +0.1 %
Hyrule Field, no taker: 1 % low / p99 58.9 fps / 17.07 ms 59.5 fps / 16.89 ms
Market, world layer on: fps 59.9 / 61.6 60.3 / 60.7 -0.4 %
Market, world layer on: 1 % low / p99 44.7 fps / 22.38 ms 44.2 fps / 22.65 ms
Hyrule Field, world layer on: fps 79.3 / 79.2 79.3 / 79.8 +0.4 %
Hyrule Field, world layer on: 1 % low / p99 61.3 fps / 16.30 ms 61.4 fps / 16.31 ms

Two runs a side: a few percent either way would not show. A first world-layer series was thrown away: its probe mod never started (it waited for the player to grant its permissions).

Risks

  • With a mod's world layer, World roots' depth, the effects' depth or the Sharpness row's depth on, and no upscaler engine, the scene's camera and depth are now kept each frame. That is the work these features already did before #3048's fast path. With none of them on, nothing new runs past the four reads.
  • The world layer draws on the RGBA16F picture with the game's own upscaler, in the network's encoding, as it does on an engine's RGBA16F picture. Not seen on an HDR display yet (Still to test).
  • A revert is enough. RX_VK_DRAW_OVERHEAD_LEAN=0 takes the old path, which never had the first gap. The second gap is on both paths.
  • Nothing changes for a player's saves, settings or 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 (any failure that also fails on main is named). The 22 that fail here also fail on main 7bc53f841 on this PC, from missing tools.
  • 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.
  • Screenshots of the same spot on main and here, for a change that shows on screen. The before and after shots are game pictures, kept on the PC; Tested describes them. (not yet: the in-game runs here were headless, the world layer seen in their logs only; shots of the probe's ring on main and here are owed)
  • 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.

🤖 Generated with Claude Code

## Summary With the game's own upscaler (no DLSS, FSR, XeSS or frame generation), nothing a mod draws with `gfx.world` shows: shapes, models, labels, and World roots with `occlude: "depth"`. The mod's calls succeed and its shapes are made, but the renderer never gets a 3D scene to draw them in. There are two causes, both in `gpu/vk/vk_draw.cpp`: 1. **The fast draw path (`RX_VK_DRAW_OVERHEAD_LEAN`, on by default since #3048) leaves the mods out.** `draw()` hands scene draws to `temporal_note_scene_draw` only when an upscaler, frame generation or ReShade's depth wants them (`temporal_scene_on`). That function also keeps the scene for the mods' world layer, World roots' depth, the effects' depth and the Sharpness row's depth, but none of those reach it on this path. 2. **The upscale's picture size is noted only for the Sharpness row.** `temporal_note_scene_draw` keeps only scenes of a size the picture comes from (`temporal_scene_size`). Those sizes are noted from the picture (`temporal_note_picture`) in `upscale_stub` and `dispatch` only while `sharpen_depth_wanted()` is true. With the Sharpness row at 0, every scene is refused, and `temporal_world_scene` finds no camera. What this changes: - `draw()` now asks for the scene for each of `temporal_note_scene_draw`'s other takers, `scene_takers_no_engine()`: four relaxed loads (`world_layer_any()`, `world_depth_wanted()`, `fx_depth_wanted()`, `sharpen_depth_wanted()`), asked only for a draw with a depth target. - `upscale_stub` and `dispatch` note the picture's size for each of them. Before, only the Sharpness row's depth did: an effect that samples the depth had no scene either when it was the only taker, nor did World roots' depth on `upscale_stub`'s path (the networks left out on GPUs without cooperative matrices). - The RGBA16F scene (a mod's: HDR Native with the PsychoV35 tone mapper) with the game's own upscaler was a picture only the Sharpness row took. The world layer now takes it too: `temporal_note_scene_draw` keeps its camera, `upscale_picture` finds it and `finish_upscale_picture` draws the world layer on it (its pipelines are made per picture format; an engine already gives it RGBA16F pictures). The effects, ReShade and frame generation still don't. - The `=check` mode compares against `temporal_note_scene_draw`'s whole list, so it would have reported this. **To see the bug on main:** run a mod that draws with `gfx.world` (`docs/modding/examples/debug-hitboxes`: the ring around Link and his label) with the Upscaler on the game's own (Auto, on a build with no DLSS). Nothing is drawn. With this PR, the shapes are there. Read first: `scene_takers_no_engine` and `draw()`'s `temporal_scene_on`, `upscale_stub`, `dispatch`'s `temporal_note_picture` line, `upscale_picture` and `finish_upscale_picture` in `gpu/vk/vk_draw.cpp`; then `temporal_note_scene_draw` and `temporal_world_scene` in `gpu/vk/vk_temporal.cpp`; then `check_takers` in `tests/test_gfx_world.py`. ## Testing **Tested:** Windows 11, RTX 3080, NVIDIA 621.47, 3440-wide window, the game's own upscaler (Auto: "this build has no DLSS"). A local mod drew a ring, a box and a label around Link from `gfx.world`, run with `dev.py game-tests --window` from the `kokiri-start` save, and the window was captured. - Without the fix (main f359e2621 with only a mod API branch's clock functions on top, no renderer change): the mod's shapes are made (its test passes), but none is drawn. - With this PR (over the same base): the ring is on the ground around Link, the box around him, the label above. - The same fix ran in a mod's own map on a local mod API branch: a room model drawn with `gfx.world.model`, invisible before the fix and drawn after it. - 8f732af20 (the review's fixes) over the same base, the same mod, headless (`dev.py game-tests`, kokiri-start): the log has `vk: mods' world layer: drawn (71 quads in 2 groups, ...) on the picture, 2560x1440`. Not seen in game: the RGBA16F scene (it needs an HDR10 display) and an effect sampling the depth alone (here the effects take no picture before the upscale at any Render resolution share tried: Auto, 100 % and 75 % read it as RGB9E5); both are covered by the checks below. Checks: - `tests/test_gfx_world.py` (new checks) fails on main (13 failures) and on this PR's first head (6: the effects' and World roots' depth, the RGBA16F picture), and passes here. It reads each condition on the scene's path from the source (`draw()`'s `temporal_scene_on`, `temporal_note_scene_draw`'s two gates, the picture notes in `upscale_stub` and `dispatch`, `upscale_picture`'s two gates, the world layer's in `finish_upscale_picture`, `temporal_world_scene`'s) and evaluates it with each taker on alone, with the game's own upscaler: the scene is handed on, its camera kept and the picture's size noted. Also the RGBA16F scene with the world layer alone, and with no taker nothing new runs. A gate written as Sharpness && world layer fails it, and a condition that reads a name it doesn't know fails too. - `tests/test_fsr3fi_hud_capture.py`'s RGBA16F case now expects the picture found for the world layer, and still not for the effects or frame generation. - `tests/test_upscale_fallback.py` (it compiles `upscale_stub` cut from the source) has a stand-in for `world_layer_any`; it passes with clang++ and g++. - `tests/run_all.py --strict` on Windows: 22 failures, all of which also fail on main 7bc53f841 on this PC. They come from tools this PC lacks (glslang, spirv-val, llvm-mc, zstandard) and Windows-only failures of main. - On 8f732af20, the checks that read these functions (`test_gfx_world`, `test_upscale_fallback`, `test_sharpen`, `test_fsr3fi_hud_capture`, `test_fx_depth`, `test_rgba16f_scene_dlss`, `test_dlss_checks`, `test_dlss_pre_bloom`, `test_upscaler_rows`, `test_dummy_views` and the `test_dlssg*` family): pass, but `test_dlssg` and `test_vk_draw_overhead_lean`, which fail the same on 5317553ab (`ui_modal` undeclared in its cut; an anchor in `draw_overhead_lean.h`, which this doesn't touch). `test_gfx_effects` skipped (no glslang here). - Built as a pack over main's base with llvm-mingw: the renderer compiles. **Still to test:** - Linux, RADV or another GPU: a mod drawing with `gfx.world` under the game's own upscaler, expecting its shapes to show (by hand or `@Beanstalk`). - An HDR10 display, HDR Native with PsychoV35, the game's own upscaler: the world layer's shapes show (by hand). - An effect sampling the depth alone at a Render resolution whose upscale input the effects take: it draws, no "no scene depth this frame" in the log (by hand). - DLSS, FSR 3.1 or XeSS: the world layer still draws as before. This path was already taken there; the change only adds takers (by hand). ## Measurements **Verdict:** no difference shown. With no taker the extra reads cost nothing measurable (Market +1.2 % fps, Hyrule Field +0.1 %, both within the runs' spread); with the world layer on, this PR draws it where main draws nothing, at no measurable cost (Market -0.4 %, Hyrule Field +0.4 %, within the spread). Setup: Windows 11, Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47), the game's own upscaler (Auto: no DLSS in the build), `dev.py ab`'s settings (V-Sync and frame generation off, uncapped, Render resolution at its 67 %), timing mode, A1 B1 A2 B2, 60 s measured after 10 s. A: main 7bc53f841 (this PR's first base); B: this PR's change on the same commit (65d6cd31e, local: 8ba796875 + the review's fix, the same diff as the head 8f732af20 on 641bd48c7), both packed over one base of main f359e2621. World layer on: the probe mod drawing a ring, a box and a label around Link (`LONGSHOT_DEV_MODS`, its permissions granted in each run's profile); every B run logged `mods' world layer: drawn (71 quads ...)`, every A run `not drawn this frame (no 3D scene this frame)`. | | Before: main @ 7bc53f841 | After: this PR @ 65d6cd31e | Δ | |---|---|---|---| | Market, no taker: fps (each run) | 58.0 / 62.4 | 59.6 / 62.3 | +1.2 % (medians) | | Market, no taker: 1 % low / p99 | 41.6 fps / 24.59 ms | 43.6 fps / 22.98 ms | | | Hyrule Field, no taker: fps | 81.4 / 78.3 | 78.6 / 81.2 | +0.1 % | | Hyrule Field, no taker: 1 % low / p99 | 58.9 fps / 17.07 ms | 59.5 fps / 16.89 ms | | | Market, world layer on: fps | 59.9 / 61.6 | 60.3 / 60.7 | -0.4 % | | Market, world layer on: 1 % low / p99 | 44.7 fps / 22.38 ms | 44.2 fps / 22.65 ms | | | Hyrule Field, world layer on: fps | 79.3 / 79.2 | 79.3 / 79.8 | +0.4 % | | Hyrule Field, world layer on: 1 % low / p99 | 61.3 fps / 16.30 ms | 61.4 fps / 16.31 ms | | Two runs a side: a few percent either way would not show. A first world-layer series was thrown away: its probe mod never started (it waited for the player to grant its permissions). ## Risks - With a mod's world layer, World roots' depth, the effects' depth or the Sharpness row's depth on, and no upscaler engine, the scene's camera and depth are now kept each frame. That is the work these features already did before #3048's fast path. With none of them on, nothing new runs past the four reads. - The world layer draws on the RGBA16F picture with the game's own upscaler, in the network's encoding, as it does on an engine's RGBA16F picture. Not seen on an HDR display yet (Still to test). - A revert is enough. `RX_VK_DRAW_OVERHEAD_LEAN=0` takes the old path, which never had the first gap. The second gap is on both paths. - Nothing changes for a player's saves, settings or 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 (any failure that also fails on `main` is named). The 22 that fail here also fail on main 7bc53f841 on this PC, from missing tools. - [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. - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. The before and after shots are game pictures, kept on the PC; Tested describes them. (not yet: the in-game runs here were headless, the world layer seen in their logs only; shots of the probe's ring on main and here are owed) - [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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
draw() hands its scene draws to temporal_note_scene_draw only while one of that function's takers is on
(RX_VK_DRAW_OVERHEAD_LEAN, on by default), and the scene is kept only at the sizes noted from the upscale's
picture. The check reads both lists from the source: each taker temporal_note_scene_draw keeps the scene for is
asked in draw() (the upscalers' and frame generation's through temporal_note_scene_needed's arguments), and each
taker temporal_world_scene serves has the picture noted in upscale_stub and dispatch.

Fails on main: the mods' world layer, World roots' depth, the effects' depth and the Sharpness row's depth are not
asked in draw(), and the picture is noted for the Sharpness row only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): the mods' world layer is drawn with the game's own upscaler
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
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
8ba7968750
With no upscaler engine, frame generation or ReShade depth, draw() never handed the scene's draws to
temporal_note_scene_draw (RX_VK_DRAW_OVERHEAD_LEAN's temporal_scene_on, #3048), and the picture's size was noted
for the Sharpness row's depth alone, so temporal_scene_size refused every scene: temporal_world_scene found no
camera, and nothing a mod drew with gfx.world (shapes, models, World roots with occlude "depth") showed.

draw() now asks for the scene for each of temporal_note_scene_draw's takers (the world layer, World roots' depth,
the effects' depth, the Sharpness row's depth), each one relaxed load; upscale_stub and dispatch note the picture
for the world layer too. =check mode compares against temporal_note_scene_draw's whole list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 3080, NVIDIA 621.47, the game's own upscaler (Auto, no DLSS in the build), kokiri-start: a mod's gfx.world ring, box and label around Link. Without the fix (main f359e2621 base) the mod's shapes are made but none is drawn; with this PR all three are drawn around Link. Also a mod's own map's model (gfx.world.model) on a local mod API branch: invisible before, drawn after.

Tested in game: Windows 11, RTX 3080, NVIDIA 621.47, the game's own upscaler (Auto, no DLSS in the build), kokiri-start: a mod's gfx.world ring, box and label around Link. Without the fix (main f359e2621 base) the mod's shapes are made but none is drawn; with this PR all three are drawn around Link. Also a mod's own map's model (gfx.world.model) on a local mod API branch: invisible before, drawn after.
Owner
@rebase
Member

I rebased this pull request onto main (641bd48c79): the new head is 5317553abf.

Conflicts resolved

  • gpu/vk/vk_draw.cpp: Kept the base branch’s active upscaler row and spatial mode, alongside the pull request’s world layer and depth consumers and check-mode comparison.

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` (641bd48c7964): the new head is 5317553abf92. **Conflicts resolved** - gpu/vk/vk_draw.cpp: Kept the base branch’s active upscaler row and spatial mode, alongside the pull request’s world layer and depth consumers and check-mode comparison. 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 fix/world-layer-scene from 8ba7968750
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
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 5317553abf
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
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
2026-12-05 17:33:30 +00:00
Compare
BeanBot left a comment

Recommendation: Request changes. The world-layer fix is shown working on the tested Windows configuration, but it still leaves supported HDR scenes and depth-sampling effects without a usable scene in the cases described below. The new test also checks the spelling of the gates rather than whether they work.

The change restores scene capture for world-layer draws with the game's upscaler and adds source-level checks. It adds work to the draw path; its performance cost and behavior on other supported systems remain unmeasured.

Blocking (2): must change before merging.

  1. L1 gpu/vk/vk_draw.cpp:15185: The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene. (more on the line) Do: Allow the world layer to capture and draw on the supported RGBA16F picture independently of whether Sharpness is enabled, and cover that configuration in the fix's test.
  2. L2 gpu/vk/vk_draw.cpp:15185: Depth-sampling effects alone still do not cause the picture size to be recorded. (more on the line) Do: Record the gameplay picture size when fx_depth_wanted() is true on both the dispatch and fallback paths, and test an effect as the sole depth consumer.

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

  • L3 tests/test_gfx_world.py:156: The new checks verify that function names appear in the conditions, not that each consumer actually enables the calls. (more on the line) Do: Add a game-free behavioral test that exercises each consumer alone, including world layer with Sharpness off, and fails when either gate prevents the required call.

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

  • L4 gpu/vk/vk_draw.cpp:11038: The additional per-draw checks and enabled scene capture have no frame-time comparison. (more on the line) Do: Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times. (@fix does its part first: Move the consumer checks inside the depth-target and valid-UBO guard so draws that cannot supply a scene skip them.)
  • L5 gpu/vk/vk_draw.cpp:15185: The renderer change has not been exercised across the supported GPU and upscaler paths it affects. (more on the line) Do: Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available.

@fix can do L1, L2, L3 and L4.

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

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

Does it help: Yes for the reported Windows 11 RTX 3080 case: the author reports that a ring, box, label and model were invisible before and visible after. Performance is unmeasured, and the fix is incomplete for the configurations identified in the review.

Other systems: The changed path also serves HDR scenes, depth-sampling effects, World roots, Sharpness, external upscalers and frame generation. The reported run covers the game's upscaler on Windows/NVIDIA; Linux, RADV, Steam Deck and external upscalers have no reported runs.

Switches: No switches added, changed or removed. RX_VK_DRAW_OVERHEAD_LEAN remains on by default; both its normal and check paths are changed.

Reviewed: 5317553abf against 641bd48c79: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the full diff and commit messages, the changed test code, and the changed renderer functions with their scene-capture and picture-selection dependencies. Skimmed the remaining renderer file and related consumers; vk_draw.cpp and vk_temporal.cpp were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs changed.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance in its trailers.
  • The diff contains no game-derived files, generated outputs, API version changes or switch-table changes.
  • The reported before-and-after game run demonstrates the intended fix on its stated configuration.

Testing: No commands that execute project code or tests were run, as requested. The author reports a Windows game run and test results; the PR description check is still running.

Overlaps and merge order: Unknown; the network is closed and no overlapping PR information was supplied.


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

**Recommendation: Request changes.** The world-layer fix is shown working on the tested Windows configuration, but it still leaves supported HDR scenes and depth-sampling effects without a usable scene in the cases described below. The new test also checks the spelling of the gates rather than whether they work. The change restores scene capture for world-layer draws with the game's upscaler and adds source-level checks. It adds work to the draw path; its performance cost and behavior on other supported systems remain unmeasured. **Blocking (2)**: must change before merging. 1. **L1** `gpu/vk/vk_draw.cpp:15185`: The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene. (more on the line) **Do:** Allow the world layer to capture and draw on the supported RGBA16F picture independently of whether Sharpness is enabled, and cover that configuration in the fix's test. 2. **L2** `gpu/vk/vk_draw.cpp:15185`: Depth-sampling effects alone still do not cause the picture size to be recorded. (more on the line) **Do:** Record the gameplay picture size when fx_depth_wanted() is true on both the dispatch and fallback paths, and test an effect as the sole depth consumer. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `tests/test_gfx_world.py:156`: The new checks verify that function names appear in the conditions, not that each consumer actually enables the calls. (more on the line) **Do:** Add a game-free behavioral test that exercises each consumer alone, including world layer with Sharpness off, and fails when either gate prevents the required call. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4** `gpu/vk/vk_draw.cpp:11038`: The additional per-draw checks and enabled scene capture have no frame-time comparison. (more on the line) **Do:** Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times. *(`@fix` does its part first: Move the consumer checks inside the depth-target and valid-UBO guard so draws that cannot supply a scene skip them.)* - **L5** `gpu/vk/vk_draw.cpp:15185`: The renderer change has not been exercised across the supported GPU and upscaler paths it affects. (more on the line) **Do:** Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available. `@fix` can do L1, L2, L3 and L4. **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:** Yes for the reported Windows 11 RTX 3080 case: the author reports that a ring, box, label and model were invisible before and visible after. Performance is unmeasured, and the fix is incomplete for the configurations identified in the review. **Other systems:** The changed path also serves HDR scenes, depth-sampling effects, World roots, Sharpness, external upscalers and frame generation. The reported run covers the game's upscaler on Windows/NVIDIA; Linux, RADV, Steam Deck and external upscalers have no reported runs. **Switches:** No switches added, changed or removed. RX_VK_DRAW_OVERHEAD_LEAN remains on by default; both its normal and check paths are changed. **Reviewed:** 5317553abf92 against 641bd48c7964: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the full diff and commit messages, the changed test code, and the changed renderer functions with their scene-capture and picture-selection dependencies. Skimmed the remaining renderer file and related consumers; vk_draw.cpp and vk_temporal.cpp were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs changed.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance in its trailers. - The diff contains no game-derived files, generated outputs, API version changes or switch-table changes. - The reported before-and-after game run demonstrates the intended fix on its stated configuration. **Testing:** No commands that execute project code or tests were run, as requested. The author reports a Windows game run and test results; the PR description check is still running. **Overlaps and merge order:** Unknown; the network is closed and no overlapping PR information was supplied. </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>
@ -11035,0 +11035,4 @@
const bool temporal_scene_on =
draw_overhead_lean::temporal_note_scene_needed(kEnvTemporalOrFg, upscaler_row, opts.framegen,
reshade::depth_requested.load(std::memory_order_relaxed)) ||
world_layer_any() || world_depth_wanted() || fx_depth_wanted() || sharpen_depth_wanted();
Member

L4 (should fix): The additional per-draw checks and enabled scene capture have no frame-time comparison.

When: Players using the game's upscaler execute the added checks on draws, and active depth consumers additionally enter scene capture. The effect on heavy scenes and frame pacing is unknown.

Do: Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times.

**L4** (should fix): The additional per-draw checks and enabled scene capture have no frame-time comparison. *When:* Players using the game's upscaler execute the added checks on draws, and active depth consumers additionally enter scene capture. The effect on heavy scenes and frame pacing is unknown. **Do:** Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times.
@ -15178,2 +15183,3 @@
// (the scene sizes whose camera and depth are kept follow from it, with no engine too)
if (picture && sharpen_depth_wanted()) temporal_note_picture(picture, picture_level);
// (and the mods' world layer's: its scene is taken at those sizes too, temporal_world_scene)
if (picture && (sharpen_depth_wanted() || world_layer_any())) temporal_note_picture(picture, picture_level);
Member

L1 (blocking): The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene.

When: With Native HDR and the PsychoV35 tone mapper, scene_rgba16f() is true. temporal_scene_format() rejects that format for the game's own upscaler, so temporal_note_scene_draw() only accepts it for Sharpness; upscale_picture() also treats it as Sharpness-only and finish_upscale_picture() skips the mods. A gfx.world mod therefore remains invisible in this supported configuration.

Do: Allow the world layer to capture and draw on the supported RGBA16F picture independently of whether Sharpness is enabled, and cover that configuration in the fix's test.

**L1** (blocking): The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene. *When:* With Native HDR and the PsychoV35 tone mapper, scene_rgba16f() is true. temporal_scene_format() rejects that format for the game's own upscaler, so temporal_note_scene_draw() only accepts it for Sharpness; upscale_picture() also treats it as Sharpness-only and finish_upscale_picture() skips the mods. A gfx.world mod therefore remains invisible in this supported configuration. **Do:** Allow the world layer to capture and draw on the supported RGBA16F picture independently of whether Sharpness is enabled, and cover that configuration in the fix's test.
Member

L2 (blocking): Depth-sampling effects alone still do not cause the picture size to be recorded.

When: With the game's upscaler, a before-upscale effect requesting depth, Sharpness at zero and no world layer or World-depth request, this condition never calls temporal_note_picture. temporal_stand_in also returns without noting it, so temporal_scene_size rejects scene draws and temporal_scene_depth reports no scene depth for the effect.

Do: Record the gameplay picture size when fx_depth_wanted() is true on both the dispatch and fallback paths, and test an effect as the sole depth consumer.

**L2** (blocking): Depth-sampling effects alone still do not cause the picture size to be recorded. *When:* With the game's upscaler, a before-upscale effect requesting depth, Sharpness at zero and no world layer or World-depth request, this condition never calls temporal_note_picture. temporal_stand_in also returns without noting it, so temporal_scene_size rejects scene draws and temporal_scene_depth reports no scene depth for the effect. **Do:** Record the gameplay picture size when fx_depth_wanted() is true on both the dispatch and fallback paths, and test an effect as the sole depth consumer.
Member

L5 (should fix): The renderer change has not been exercised across the supported GPU and upscaler paths it affects.

When: The reported run covers Windows and NVIDIA with the game's upscaler; Linux/RADV, Steam Deck and external upscalers have no reported result for world-layer drawing after this change.

Do: Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available.

**L5** (should fix): The renderer change has not been exercised across the supported GPU and upscaler paths it affects. *When:* The reported run covers Windows and NVIDIA with the game's upscaler; Linux/RADV, Steam Deck and external upscalers have no reported result for world-layer drawing after this change. **Do:** Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available.
@ -136,0 +153,4 @@
first = scene[scene.index("{") + 1:].lstrip().split("\n", 1)[0]
served = set(re.findall(r"!(\w+)\(\)", first))
for fn, call in (("bool upscale_stub(", "temporal_note_picture(dst, 0)"),
("void dispatch(VkCommandBuffer cmd, NvnState& s, uint32_t x", "temporal_note_picture(picture, picture_level)")):
Member

L3 (should fix): The new checks verify that function names appear in the conditions, not that each consumer actually enables the calls.

When: For example, changing the picture gate to sharpen_depth_wanted() && world_layer_any() leaves both names in the extracted condition, so this test passes even though a world layer with Sharpness off again receives no picture size.

Do: Add a game-free behavioral test that exercises each consumer alone, including world layer with Sharpness off, and fails when either gate prevents the required call.

**L3** (should fix): The new checks verify that function names appear in the conditions, not that each consumer actually enables the calls. *When:* For example, changing the picture gate to sharpen_depth_wanted() && world_layer_any() leaves both names in the extracted condition, so this test passes even though a world layer with Sharpness off again receives no picture size. **Do:** Add a game-free behavioral test that exercises each consumer alone, including world layer with Sharpness off, and fails when either gate prevents the required call.
Owner
@fix
Member

I didn't fix this pull request: the change I made would take out 8 of the 14 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1, L2, L3 and L4 are the author's now. Nothing was pushed.


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

I didn't fix this pull request: the change I made would take out 8 of the 14 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1, L2, L3 and L4 are the author's now. Nothing was pushed. --- <sub>Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
fix(vk): the world layer takes the RGBA16F scene's picture, and every scene taker notes the picture's size
Some checks failed
CI / What the change needs (pull_request) Successful in 7s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 6s
8f732af20e
BeanBot's review of #3261 (5317553ab): with the game's own upscaler,

- the RGBA16F scene (a mod's, with Native HDR and the PsychoV35 tone mapper) was a picture only the Sharpness row
  took: temporal_note_scene_draw kept its camera, upscale_picture found it and finish_upscale_picture drew on it for
  Sharpness alone. The world layer now takes it too, at the same three places (its pipelines are made for the
  picture's format; an engine already gives it RGBA16F pictures). The effects, ReShade and frame generation still
  don't.
- an effect sampling the depth, alone, noted no picture size, so temporal_scene_size refused every scene and the
  effect had no depth; World roots' depth on upscale_stub's path (the networks left out on GPUs without cooperative
  matrices) the same. upscale_stub and dispatch now note the picture for every taker that keeps a scene with no
  engine: scene_takers_no_engine (the world layer, World roots' depth, the effects' depth, the Sharpness row's depth),
  which draw() asks too.
- draw() asks for the scene's takers only for a draw with a depth target, the only kind that can be the scene.

tests/test_gfx_world.py's checks of the takers now evaluate the source's own conditions (draw()'s, the scene note's
gates, the picture notes, upscale_picture's gates, the world layer's in finish_upscale_picture, temporal_world_scene's)
with each taker on alone, and the RGBA16F scene with the world layer alone, in place of finding the names in them: a
gate written as Sharpness && world layer fails it. On 5317553ab it fails 6 (the effects' and World roots' depth, the
RGBA16F picture), on main 13. test_fsr3fi_hud_capture's RGBA16F case follows: found for the world layer, not for the
effects or frame generation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

On BeanBot's review (5317553ab), answered in 8f732af20:

  • L1, the RGBA16F scene: fixed. With the game's own upscaler, the RGBA16F picture was the Sharpness row's alone at three places; the world layer now takes it at each: temporal_note_scene_draw keeps its camera with the world layer on (Sharpness off), upscale_picture finds the picture for it, and finish_upscale_picture draws the world layer on it with mods false (the effects, ReShade and frame generation still don't take it). Its pipelines are made per picture format, and an engine already gives it RGBA16F pictures in the same encoding. Not seen in game: it needs an HDR10 display; Still to test has it.
  • L2, the effects' depth alone: fixed, and the same gap was there for World roots' depth on upscale_stub's path. upscale_stub and dispatch now note the picture's size for every taker that keeps a scene with no engine, through one helper, scene_takers_no_engine(), which draw() asks too. Not seen in game here: on this PC the effects take no picture before the upscale at Auto, 100 % or 75 % (it is read as RGB9E5, and the effect says so), so it never reached the depth.
  • L3, the test: check_takers in tests/test_gfx_world.py now evaluates the source's own conditions (draw()'s gate, temporal_note_scene_draw's two, the two picture notes, upscale_picture's two, the world layer's in finish_upscale_picture, temporal_world_scene's) with each taker on alone, plus the RGBA16F scene with the world layer alone, and none on. Your example (the gate as Sharpness && world layer) fails it; so does 5317553ab (6 failures: L1 and L2) and main (13). A name a condition reads that the check doesn't know fails it too, so a new term gets looked at.
  • L4: the code part done: draw() asks for the takers only for a draw with a depth target, inside the guard. The A/B is still owed before this leaves WIP (Measurements says which).
  • L5: still to test, as Still to test lists it.

Checked: those checks and the others that read these functions pass on Windows; test_dlssg and test_vk_draw_overhead_lean fail here the same on 5317553ab (not this PR's). In game, headless with the game's own upscaler (Windows, RTX 3080), the world layer logs drawn (71 quads in 2 groups, ...) on the picture, 2560x1440.

On BeanBot's review (5317553ab), answered in 8f732af20: - **L1, the RGBA16F scene:** fixed. With the game's own upscaler, the RGBA16F picture was the Sharpness row's alone at three places; the world layer now takes it at each: `temporal_note_scene_draw` keeps its camera with the world layer on (Sharpness off), `upscale_picture` finds the picture for it, and `finish_upscale_picture` draws the world layer on it with `mods` false (the effects, ReShade and frame generation still don't take it). Its pipelines are made per picture format, and an engine already gives it RGBA16F pictures in the same encoding. Not seen in game: it needs an HDR10 display; Still to test has it. - **L2, the effects' depth alone:** fixed, and the same gap was there for World roots' depth on `upscale_stub`'s path. `upscale_stub` and `dispatch` now note the picture's size for every taker that keeps a scene with no engine, through one helper, `scene_takers_no_engine()`, which `draw()` asks too. Not seen in game here: on this PC the effects take no picture before the upscale at Auto, 100 % or 75 % (it is read as RGB9E5, and the effect says so), so it never reached the depth. - **L3, the test:** `check_takers` in `tests/test_gfx_world.py` now evaluates the source's own conditions (`draw()`'s gate, `temporal_note_scene_draw`'s two, the two picture notes, `upscale_picture`'s two, the world layer's in `finish_upscale_picture`, `temporal_world_scene`'s) with each taker on alone, plus the RGBA16F scene with the world layer alone, and none on. Your example (the gate as Sharpness && world layer) fails it; so does 5317553ab (6 failures: L1 and L2) and main (13). A name a condition reads that the check doesn't know fails it too, so a new term gets looked at. - **L4:** the code part done: `draw()` asks for the takers only for a draw with a depth target, inside the guard. The A/B is still owed before this leaves WIP (Measurements says which). - **L5:** still to test, as Still to test lists it. Checked: those checks and the others that read these functions pass on Windows; `test_dlssg` and `test_vk_draw_overhead_lean` fail here the same on 5317553ab (not this PR's). In game, headless with the game's own upscaler (Windows, RTX 3080), the world layer logs `drawn (71 quads in 2 groups, ...) on the picture, 2560x1440`.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The changes address the outstanding code issues, and the reported Windows run shows the world layer drawing. The per-draw cost and behavior on other affected renderer paths still need testing. Recommend approval; not approved on the forge.

The game's own upscaler can retain the scene needed by mod world layers and depth consumers, including the RGBA16F world-layer path. This adds consumer checks to depth-target draws and scene capture when those features are active; their performance cost is not yet measured.

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

  • L4 gpu/vk/vk_draw.cpp:11038: The additional per-draw checks and enabled scene capture have no frame-time comparison. When: Players using the game's upscaler execute the added checks on draws, and active depth consumers additionally enter scene capture. The effect on heavy scenes and frame pacing is unknown. Do: Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times.
  • L5 gpu/vk/vk_draw.cpp:15185: The renderer change has not been exercised across the supported GPU and upscaler paths it affects. When: The reported run covers Windows and NVIDIA with the game's upscaler; Linux/RADV, Steam Deck and external upscalers have no reported result for world-layer drawing after this change. Do: Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available.

Since the last review (on 5317553abf)
Resolved: L1 (The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene.); L2 (Depth-sampling effects alone still do not cause the picture size to be recorded.); L3 (The new checks verify that function names appear in the conditions, not that each consumer…)
Still open: L4 (The additional per-draw checks and enabled scene capture have no frame-time comparison.); L5 (The renderer change has not been exercised across the supported GPU and upscaler paths it…)

Checks: Still running: 11 checks.

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

Does it help: Yes for the reported world-layer bug: the author reports a ring, box, label and model invisible before and visible after on Windows with an RTX 3080. Performance cost is unproven; no before-and-after frame-time numbers are supplied.

Other systems: The changed scene capture and picture paths also affect depth-sampling effects, World-root depth, HDR RGBA16F, Linux and other GPUs and upscalers. The author reports source checks, but Linux or another GPU, HDR10, an effect sampling depth alone, and DLSS, FSR 3.1 or XeSS still need game runs.

Switches: No switch added, changed or removed. The existing RX_VK_DRAW_OVERHEAD_LEAN default remains on.

Reviewed: 8f732af20e against 641bd48c79: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changes since the ledger, and the relevant draw, picture and temporal scene paths. Skimmed the base diff, commit list, changed tests and standards references; the large changed renderer files and tests were not read in full. The referenced Tooling AGENTS.md was unavailable locally, and docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The fix retains the world-layer feature and extends its RGBA16F path.
  • The changed test evaluates each named consumer independently and rejects unknown condition names.

Testing: No commands that build or run project code were executed. The author reports Windows game testing and game-free checks; CI is still running.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The changes address the outstanding code issues, and the reported Windows run shows the world layer drawing. The per-draw cost and behavior on other affected renderer paths still need testing. Recommend approval; not approved on the forge. The game's own upscaler can retain the scene needed by mod world layers and depth consumers, including the RGBA16F world-layer path. This adds consumer checks to depth-target draws and scene capture when those features are active; their performance cost is not yet measured. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4** `gpu/vk/vk_draw.cpp:11038`: The additional per-draw checks and enabled scene capture have no frame-time comparison. *When:* Players using the game's upscaler execute the added checks on draws, and active depth consumers additionally enter scene capture. The effect on heavy scenes and frame pacing is unknown. **Do:** Compare the base and this head in the target and a heavy scene, with consumers off and on, using interleaved runs and reporting average FPS, 1% lows and frame times. - **L5** `gpu/vk/vk_draw.cpp:15185`: The renderer change has not been exercised across the supported GPU and upscaler paths it affects. *When:* The reported run covers Windows and NVIDIA with the game's upscaler; Linux/RADV, Steam Deck and external upscalers have no reported result for world-layer drawing after this change. **Do:** Run a world-layer scene on the affected Tier 1 systems and check the existing DLSS, FSR and XeSS paths where available. **Since the last review** (on 5317553abf92) Resolved: L1 (The world layer is still excluded when the game's upscaler receives an RGBA16F HDR scene.); L2 (Depth-sampling effects alone still do not cause the picture size to be recorded.); L3 (The new checks verify that function names appear in the conditions, not that each consumer…) Still open: L4 (The additional per-draw checks and enabled scene capture have no frame-time comparison.); L5 (The renderer change has not been exercised across the supported GPU and upscaler paths it…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported world-layer bug: the author reports a ring, box, label and model invisible before and visible after on Windows with an RTX 3080. Performance cost is unproven; no before-and-after frame-time numbers are supplied. **Other systems:** The changed scene capture and picture paths also affect depth-sampling effects, World-root depth, HDR RGBA16F, Linux and other GPUs and upscalers. The author reports source checks, but Linux or another GPU, HDR10, an effect sampling depth alone, and DLSS, FSR 3.1 or XeSS still need game runs. **Switches:** No switch added, changed or removed. The existing RX_VK_DRAW_OVERHEAD_LEAN default remains on. **Reviewed:** 8f732af20e30 against 641bd48c7964: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changes since the ledger, and the relevant draw, picture and temporal scene paths. Skimmed the base diff, commit list, changed tests and standards references; the large changed renderer files and tests were not read in full. The referenced Tooling AGENTS.md was unavailable locally, and docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The fix retains the world-layer feature and extends its RGBA16F path. - The changed test evaluates each named consumer independently and rejects unknown condition names. **Testing:** No commands that build or run project code were executed. The author reports Windows game testing and game-free checks; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Author
Member

The A/B BeanBot's L4 asked for (Windows 11, Ryzen 9 3900X, RTX 3080, the game's own upscaler, A1 B1 A2 B2 of 60 s, timing mode; A = main 7bc53f841, B = this change on the same commit, one base): no difference shown.

  • No taker: the Market +1.2 % fps (58.0 / 62.4 against 59.6 / 62.3), Hyrule Field +0.1 % (81.4 / 78.3 against 78.6 / 81.2), both within the runs' spread.
  • The world layer on (a probe mod's ring, box and label around Link): the Market -0.4 %, Hyrule Field +0.4 %, within the spread. Every B run drew it (drawn (71 quads ...)), every A run didn't (no 3D scene this frame).

Measurements has the table. Still to test is unchanged (Linux/RADV, an HDR display, an effect sampling the depth alone).

The A/B BeanBot's L4 asked for (Windows 11, Ryzen 9 3900X, RTX 3080, the game's own upscaler, A1 B1 A2 B2 of 60 s, timing mode; A = main 7bc53f841, B = this change on the same commit, one base): **no difference shown.** - No taker: the Market +1.2 % fps (58.0 / 62.4 against 59.6 / 62.3), Hyrule Field +0.1 % (81.4 / 78.3 against 78.6 / 81.2), both within the runs' spread. - The world layer on (a probe mod's ring, box and label around Link): the Market -0.4 %, Hyrule Field +0.4 %, within the spread. Every B run drew it (`drawn (71 quads ...)`), every A run didn't (`no 3D scene this frame`). Measurements has the table. Still to test is unchanged (Linux/RADV, an HDR display, an effect sampling the depth alone).
HumanBean changed title from WIP: fix(vk): the mods' world layer is drawn with the game's own upscaler to fix(vk): the mods' world layer is drawn with the game's own upscaler 2026-12-05 19:24:49 +00:00
HumanBean deleted branch fix/world-layer-scene 2026-12-05 19:24:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3261
No description provided.