feat(vk-rt): ray tracing on the mod API: AO, sun shadows, GI, reflections, lamp shadows, lantern lights #2966

Merged
HumanBean merged 1 commit from HumanBean/Longshot:rt-ray-tracing into main 2026-12-05 17:54:44 +00:00
Owner

Summary

Experimental ray tracing for the Vulkan renderer: ambient occlusion, sun shadows, global illumination and reflections (the work of #727 by winterelfeas), plus lamp shadows (from #2755), and lantern lights, glowing panes and specular highlights (from #1151 by Drommedhar, bulbs, panes and highlights only). Off by default, and turning it on needs no restart.

  • The Graphics tab's Detail page has one Ray tracing row (Off, Low, Medium, High; Custom when set by hand) and a Ray tracing settings page with each part's own row. The preset levels are provisional until measured.
  • The rows are offered only on GPUs that can ray trace; on NVIDIA only on RTX cards.
  • Every ray tracing row's help starts with [EXPERIMENTAL], as DLSS 5's does.
  • Works with HDR Off, Expanded and Native (the RGBA16F scene).
  • Settings are [[settings]] of the graphics system mod. RX_VK_RT=<bits> overrides them for a run.
  • GI and reflections patch the game's lit fragment SPIR-V into per-program variants, made in the background; draws keep the plain program until a variant is ready.
  • Skinned characters' bottom levels are updated in place between full builds, one every 16 frames (RX_VK_RT_REFIT=0 builds each frame).
  • A foliage draw on the compute fallback is captured right where its records are made, with no game pass ended for it; a failed fallback no longer captures the previous draw's records.
  • With RX_VK_RT_LOG=1: per-pass GPU timings. The acceleration structures are freed after the rows have been off for 900 presents.

Read first: gpu/vk/vk_rt_scene.cpp (structures), vk_rt_lit.cpp (variants), vk_rt_gi.cpp, vk_rt_lamps.cpp, vk_rt_di.cpp; the doc is docs/dev/reference/ray-tracing.md.

Known problems, not fixed here:

  • A tester saw shadow flicker on the simulated turf after reloading a save with sun shadows on (RX 7900 XT, Windows). A likely cause is fixed, but the flicker was not reproduced, so it is not shown to be gone.
  • High cost on the heaviest settings, above all reflections' max roughness at Max.
  • Without opacity micromaps (AMD, Intel): grazing sun rays through dense foliage count everything past 64 cards as solid, and the static shadow map's cards cast as solid quads.
  • Material slots are never freed: after about 4095 textures in one session, new materials are grey to the rays.
  • Not changed from the review: arena space of casters gone with an area is held for 600 frames; lit variants are never freed; the sun gate's sums are read without a fence; deep recursion in the emission analysis was not checked against a Windows stack; whether the reflection lookup's quad operations always sit in quad-uniform control flow was not checked.

Testing

Tested: Linux, RTX 3090, headless. The head, a626e569, is 77d3f1ad rebased onto main @ 6dbebabe, with the menu code moved to main's gpu/vk/settings/ and the help texts tagged: the runtime builds and cargo check --workspace --all-targets passes but for two test targets this PR does not change (build-driver's driver test and modtool's lib tests do not compile). No tests were run and nothing was played. At 77d3f1ad: all parts on at Kokiri start, Market entrance and the castle gate, Kokiri also with RX_VK_RT_OMM=0, and Kokiri with RX_VK_RT_OMM=0 RX_VK_MESH_SHADERS=compute (the path AMD takes on Linux); screenshots match 5672bf5d apart from what moves, and the logs show no device loss. No validation layers are installed, so none ran.

At 5672bf5d, with screenshots: Kokiri start, Market entrance and the castle gate with rays off and all parts on; the castle gate also with RX_VK_RT_OMM=0 and all parts on under Native HDR (forced in headless gamescope). The logs show the parts running. At earlier heads of this branch: each part alone under Native HDR, switching the HDR setting mid-game, and Expanded HDR. The screenshots are in a comment below.

A tester ran 3ec4959d on an RX 7900 XT, Windows: it works, with the cost and the turf flicker above.

Still to test:

  • Windows, AMD and Intel (a GPU with ray queries): rows on, the picture, no device loss; Steam Deck with rows off (@Beanstalk).
  • The turf after a save reload with sun shadows on, on the tester's AMD card: no flicker (by hand).
  • A GPU without ray tracing: the rows are hidden and nothing else differs (@Beanstalk).
  • Native HDR on a real HDR display: brightness and colour with rays on (by hand).
  • Market and Kakariko at night: lamp shadows, lantern lights, window lights and glossy highlights (by hand).

Measurements

Verdict: the whole feature is not measured against main at this head. The character refit was measured against 5672bf5d and is a small gain.

Refit and foliage capture against 5672bf5d (Linux, RTX 3090, RX_VK_RT=63, one timed run a side, RX_VK_RT_LOG=1 lines; frame time was at the 60 fps cap):

GPU time a frame Kokiri before Kokiri after Market before Market after
Bottom levels built 0.343 ms 0.270 ms 0.466 ms 0.360 ms
All ray tracing passes 4.64 ms 4.52 ms 3.38 ms 3.30 ms

Recording those builds on the CPU went from 0.117 to 0.074 ms (Kokiri) and 0.247 to 0.147 ms (Market). The foliage capture change showed no measurable gain with native mesh shaders; on the compute path, where it could, it is not measured.

Older numbers, from before the rebases and fixes (Linux, RTX 3090, Kokiri Forest, 67 % render scale, uncapped, 45 s, 3 interleaved runs each): rows off 166 fps (5.9 to 6.3 ms), AO + sun + GI + reflections 74 to 81 fps (12.1 to 12.8 ms). Rows off against ray tracing disabled was within the spread.

From the tester's log at 3ec4959d (RX 7900 XT, 3440x1440, no upscaler; GPU time a frame, one session, not a controlled run):

Rows GPU time
Off 6 to 7 ms
All, reflections' max roughness 0.35 or less 20 to 34 ms
All, max roughness Max 42 to 88 ms

Risks

Everything is off by default, and RX_VK_RT=0 disables it completely.

With the rows off, a GPU that can ray trace still gets a different device from main: the ray tracing extensions and features are enabled and pool buffers carry the acceleration structure build input usage, so that a row can be turned on without a restart. Startup time, memory, AMD and Intel are not measured with this.

The new settings keys are frozen in tests/test_menu_ini_keys.py. A link failure of a patched lit program turns reflections off, not the game.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (On main @ 6dbebabe at the last rebase.)
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes. (Not run since the rebase. At 77d3f1ad: 911 passed, 1 failed, 13 skipped: test_lifter fails in build-driver on files this PR does not change, but was not confirmed on main.)
  • 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 (#727, #2755, #1151 are GPL).

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def. (The 17 RX_VK_RT* rows are there; no measurements chose them.)
  • 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. (Linux only.)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (Rays off against on, both on this PR.)
  • Docs updated.
  • 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.ai/code/session_017vw8e1HDsYuvW83jB4TRWM

## Summary Experimental ray tracing for the Vulkan renderer: ambient occlusion, sun shadows, global illumination and reflections (the work of #727 by winterelfeas), plus lamp shadows (from #2755), and lantern lights, glowing panes and specular highlights (from #1151 by Drommedhar, bulbs, panes and highlights only). **Off by default**, and turning it on needs no restart. - The Graphics tab's Detail page has one **Ray tracing** row (Off, Low, Medium, High; Custom when set by hand) and a **Ray tracing settings** page with each part's own row. The preset levels are provisional until measured. - The rows are offered only on GPUs that can ray trace; on NVIDIA only on RTX cards. - Every ray tracing row's help starts with `[EXPERIMENTAL]`, as DLSS 5's does. - Works with HDR Off, Expanded and Native (the RGBA16F scene). - Settings are `[[settings]]` of the graphics system mod. `RX_VK_RT=<bits>` overrides them for a run. - GI and reflections patch the game's lit fragment SPIR-V into per-program variants, made in the background; draws keep the plain program until a variant is ready. - Skinned characters' bottom levels are updated in place between full builds, one every 16 frames (`RX_VK_RT_REFIT=0` builds each frame). - A foliage draw on the compute fallback is captured right where its records are made, with no game pass ended for it; a failed fallback no longer captures the previous draw's records. - With `RX_VK_RT_LOG=1`: per-pass GPU timings. The acceleration structures are freed after the rows have been off for 900 presents. Read first: `gpu/vk/vk_rt_scene.cpp` (structures), `vk_rt_lit.cpp` (variants), `vk_rt_gi.cpp`, `vk_rt_lamps.cpp`, `vk_rt_di.cpp`; the doc is `docs/dev/reference/ray-tracing.md`. **Known problems, not fixed here:** - A tester saw shadow flicker on the simulated turf after reloading a save with sun shadows on (RX 7900 XT, Windows). A likely cause is fixed, but the flicker was not reproduced, so it is not shown to be gone. - High cost on the heaviest settings, above all reflections' max roughness at Max. - Without opacity micromaps (AMD, Intel): grazing sun rays through dense foliage count everything past 64 cards as solid, and the static shadow map's cards cast as solid quads. - Material slots are never freed: after about 4095 textures in one session, new materials are grey to the rays. - Not changed from the review: arena space of casters gone with an area is held for 600 frames; lit variants are never freed; the sun gate's sums are read without a fence; deep recursion in the emission analysis was not checked against a Windows stack; whether the reflection lookup's quad operations always sit in quad-uniform control flow was not checked. ## Testing **Tested:** Linux, RTX 3090, headless. The head, a626e569, is 77d3f1ad rebased onto `main` @ 6dbebabe, with the menu code moved to main's `gpu/vk/settings/` and the help texts tagged: the runtime builds and `cargo check --workspace --all-targets` passes but for two test targets this PR does not change (`build-driver`'s `driver` test and `modtool`'s lib tests do not compile). No tests were run and nothing was played. At 77d3f1ad: all parts on at Kokiri start, Market entrance and the castle gate, Kokiri also with `RX_VK_RT_OMM=0`, and Kokiri with `RX_VK_RT_OMM=0 RX_VK_MESH_SHADERS=compute` (the path AMD takes on Linux); screenshots match 5672bf5d apart from what moves, and the logs show no device loss. No validation layers are installed, so none ran. At 5672bf5d, with screenshots: Kokiri start, Market entrance and the castle gate with rays off and all parts on; the castle gate also with `RX_VK_RT_OMM=0` and all parts on under Native HDR (forced in headless gamescope). The logs show the parts running. At earlier heads of this branch: each part alone under Native HDR, switching the HDR setting mid-game, and Expanded HDR. The screenshots are in a comment below. A tester ran 3ec4959d on an RX 7900 XT, Windows: it works, with the cost and the turf flicker above. **Still to test:** - Windows, AMD and Intel (a GPU with ray queries): rows on, the picture, no device loss; Steam Deck with rows off (@Beanstalk). - The turf after a save reload with sun shadows on, on the tester's AMD card: no flicker (by hand). - A GPU without ray tracing: the rows are hidden and nothing else differs (@Beanstalk). - Native HDR on a real HDR display: brightness and colour with rays on (by hand). - Market and Kakariko at night: lamp shadows, lantern lights, window lights and glossy highlights (by hand). ## Measurements **Verdict:** the whole feature is not measured against `main` at this head. The character refit was measured against 5672bf5d and is a small gain. Refit and foliage capture against 5672bf5d (Linux, RTX 3090, `RX_VK_RT=63`, one timed run a side, `RX_VK_RT_LOG=1` lines; frame time was at the 60 fps cap): | GPU time a frame | Kokiri before | Kokiri after | Market before | Market after | |---|---|---|---|---| | Bottom levels built | 0.343 ms | 0.270 ms | 0.466 ms | 0.360 ms | | All ray tracing passes | 4.64 ms | 4.52 ms | 3.38 ms | 3.30 ms | Recording those builds on the CPU went from 0.117 to 0.074 ms (Kokiri) and 0.247 to 0.147 ms (Market). The foliage capture change showed no measurable gain with native mesh shaders; on the compute path, where it could, it is not measured. Older numbers, from before the rebases and fixes (Linux, RTX 3090, Kokiri Forest, 67 % render scale, uncapped, 45 s, 3 interleaved runs each): rows off 166 fps (5.9 to 6.3 ms), AO + sun + GI + reflections 74 to 81 fps (12.1 to 12.8 ms). Rows off against ray tracing disabled was within the spread. From the tester's log at 3ec4959d (RX 7900 XT, 3440x1440, no upscaler; GPU time a frame, one session, not a controlled run): | Rows | GPU time | |---|---| | Off | 6 to 7 ms | | All, reflections' max roughness 0.35 or less | 20 to 34 ms | | All, max roughness Max | 42 to 88 ms | ## Risks Everything is off by default, and `RX_VK_RT=0` disables it completely. **With the rows off, a GPU that can ray trace still gets a different device from main:** the ray tracing extensions and features are enabled and pool buffers carry the acceleration structure build input usage, so that a row can be turned on without a restart. Startup time, memory, AMD and Intel are not measured with this. The new settings keys are frozen in `tests/test_menu_ini_keys.py`. A link failure of a patched lit program turns reflections off, not the game. ## Checklist ### Ready for review - [ ] One topic, on current `main`; the title is a Conventional Commit. (On main @ 6dbebabe at the last rebase.) - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes. (Not run since the rebase. At 77d3f1ad: 911 passed, 1 failed, 13 skipped: `test_lifter` fails in build-driver on files this PR does not change, but was not confirmed on `main`.) - [ ] 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 (#727, #2755, #1151 are GPL). ### When it applies - [ ] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. (The 17 `RX_VK_RT*` rows are there; no measurements chose them.) - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] The SPIR-V headers regenerated (a shader changed). - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux only.) - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. (Rays off against on, both on this PR.) - [x] Docs updated. - [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) https://claude.ai/code/session_017vw8e1HDsYuvW83jB4TRWM
feat(vk-rt): ray tracing on the mod API: AO, sun shadows, GI, reflections, lamp shadows, lantern lights
All checks were successful
PR description / Title and description (pull_request_target) Successful in 6s
3428ab8b09
Ray-traced ambient occlusion, sun shadows, global illumination and reflections (#727, winterelfeas), built on
mod-api: seven live Graphics-tab rows (no restart), lit program variants made on demand, histories that survive
dynamic resolution, lamp shadows (#2755), lantern lights, glowing panes and specular highlights (#1151,
Drommedhar), per-pass GPU timings (RX_VK_RT_LOG=1), memory freed when the rows are off. The switches are cut to
kill, hardware and diagnostic ones.

Co-Authored-By: winterelfeas <[email protected]>
Co-Authored-By: Drommedhar <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1S2RB56f4F7wG3EcDz
Author
Owner

Tested in game: Linux, RTX 3090, the starting area and Kokiri Forest with all seven rows on: no flicker, no flashes at resolution changes, the water and lanterns draw, no device loss.

Tested in game: Linux, RTX 3090, the starting area and Kokiri Forest with all seven rows on: no flicker, no flashes at resolution changes, the water and lanterns draw, no device loss.
HumanBean force-pushed rt-ray-tracing from 3428ab8b09
All checks were successful
PR description / Title and description (pull_request_target) Successful in 6s
to 4571673dc6
All checks were successful
PR description / Title and description (pull_request_target) Successful in 9s
2026-12-02 22:15:57 +00:00
Compare
Author
Owner

Rebased onto mod-api @ b15d47e3 (old head 3428ab8b, new head 4571673d).

Conflicts:

  • scripts/shaders.py is gone on mod-api: the 52 ray tracing builds are now in gpu/vk/shaders/recipes.toml, and the tests and doc that named the script read or name that file.
  • settings_at_start is host API version 89, after mod-api's cursor (88).
  • The settings ABI files are regenerated by schema-gen.

Checked on Linux:

  • dev.py rt builds with 0 failures (nothing run in game since the rebase).
  • Shaders compile; schema-gen --check and ffi-gen --check pass; cargo fmt --check and cargo test -p gen-shaders -p schema pass.
  • 44 of 45 selected Python checks pass. test_late_fix_build.py fails to compile (wb_cpu_words_fast undeclared), and does the same against mod-api's own vk_memory.cpp.
Rebased onto `mod-api` @ b15d47e3 (old head 3428ab8b, new head 4571673d). Conflicts: - `scripts/shaders.py` is gone on `mod-api`: the 52 ray tracing builds are now in `gpu/vk/shaders/recipes.toml`, and the tests and doc that named the script read or name that file. - `settings_at_start` is host API version 89, after `mod-api`'s `cursor` (88). - The settings ABI files are regenerated by `schema-gen`. Checked on Linux: - `dev.py rt` builds with 0 failures (nothing run in game since the rebase). - Shaders compile; `schema-gen --check` and `ffi-gen --check` pass; `cargo fmt --check` and `cargo test -p gen-shaders -p schema` pass. - 44 of 45 selected Python checks pass. `test_late_fix_build.py` fails to compile (`wb_cpu_words_fast` undeclared), and does the same against `mod-api`'s own `vk_memory.cpp`.
HumanBean force-pushed rt-ray-tracing from 4571673dc6
All checks were successful
PR description / Title and description (pull_request_target) Successful in 9s
to 464228827f
All checks were successful
PR description / Title and description (pull_request_target) Successful in 8s
2026-12-03 05:07:02 +00:00
Compare
Author
Owner

Rebased again, onto mod-api @ 2393f086 (old head 4571673d, new head 46422882).

No text conflicts. One compile error after the clean merge: mod-api moved fallback_records_address's declaration below the PR's fallback_records_now() in vk_draw.cpp, so the function now sits after it.

Checked on Linux: dev.py rt builds with 0 failures; shaders compile; schema-gen and ffi-gen --check, cargo fmt --check, cargo test -p gen-shaders -p schema and 45 of 45 selected Python checks pass (test_late_fix_build.py passes now). Nothing was run in game, and nothing was built for Windows.

Rebased again, onto `mod-api` @ 2393f086 (old head 4571673d, new head 46422882). No text conflicts. One compile error after the clean merge: `mod-api` moved `fallback_records_address`'s declaration below the PR's `fallback_records_now()` in `vk_draw.cpp`, so the function now sits after it. Checked on Linux: `dev.py rt` builds with 0 failures; shaders compile; `schema-gen` and `ffi-gen --check`, `cargo fmt --check`, `cargo test -p gen-shaders -p schema` and 45 of 45 selected Python checks pass (`test_late_fix_build.py` passes now). Nothing was run in game, and nothing was built for Windows.
Author
Owner
@review
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L4) The feature has not been run in game at this head, and its effects on other supported hardware remain untested. The review is also incomplete: the change is too large for the code inspected here to support a merge recommendation.

This adds optional Vulkan ray-traced lighting, shadows and reflections. The reported older run shows the effects in two areas, with a substantial GPU cost when enabled; the current head and several lighting features still need validation.

Blocking (1): must change before merging.

  1. L4: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

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

  • L1: The game run reported for the feature predates both rebases, and the lamp shadows, window lights and glossy highlights have not been observed working. When: The current head builds, but the reported runs do not establish that its lighting paths produce the intended picture in the affected scenes. Do: Run the current head in game, including Market and Kakariko at night, and record the results and comparable screenshots.
  • L2: The new device extensions and rendering paths have not been exercised on the other supported systems they can affect. When: Players on Windows, AMD or Steam Deck, or on a GPU without ray queries, may encounter device creation or rendering failures that the Linux RTX 3090 run cannot reveal. Do: Test the current head with rows off and on as applicable on Windows and Linux tier-1 hardware, including AMD and Steam Deck, and check a GPU without ray-query support.
  • L3: The reported rows-off comparison does not compare this head against its base, and the lamp and lantern costs are not measured. When: Device extensions are requested even when all rows are off, while enabling the lights adds GPU work whose frame-time and memory cost are unknown. Do: Measure the base and current head with rows off, then measure the lighting options on, using interleaved runs and reporting frame times, 1% lows and memory.
More: does it help, other systems, switches, what was read

Does it help: Unproven at this head. The author reports 74–81 fps with four effects enabled versus 166 fps with rows off on an RTX 3090, and reports that the picture worked before the rebases; neither is an in-game run of 46422882.

Other systems: The change affects Vulkan device creation even with the rows off, as well as rendering, GPU memory and timing when enabled. Windows, AMD, Intel, Steam Deck and devices without ray queries have not been validated for this head in the supplied reports.

Switches: The change adds or changes numerous RX_VK_RT switches and seven graphics settings. The effects default off; the roughness setting defaults to Medium. A complete switch-by-switch review was not completed.

Reviewed: 464228827f against 2393f0865b: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the commit message, vk_rt_lit.cpp and test_rt_budget.py. Read portions of standards.md, the device setup, settings integration, draw hooks, retirement logic, test runner and recorded runs; skimmed the file list and remaining diff. Most changed renderer files, shaders, tests and documentation were not read in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The renderer API version is bumped for the added host callback.
  • The new saved settings have entries in the frozen settings-key test.
  • The commit records AI assistance.

Testing: No commands from the project were run, as requested. The author reports a Linux build and selected checks passing at this head, but no in-game run after the rebase.

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


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

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L4) The feature has not been run in game at this head, and its effects on other supported hardware remain untested. The review is also incomplete: the change is too large for the code inspected here to support a merge recommendation. This adds optional Vulkan ray-traced lighting, shadows and reflections. The reported older run shows the effects in two areas, with a substantial GPU cost when enabled; the current head and several lighting features still need validation. **Blocking (1)**: must change before merging. 1. **L4**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The game run reported for the feature predates both rebases, and the lamp shadows, window lights and glossy highlights have not been observed working. *When:* The current head builds, but the reported runs do not establish that its lighting paths produce the intended picture in the affected scenes. **Do:** Run the current head in game, including Market and Kakariko at night, and record the results and comparable screenshots. - **L2**: The new device extensions and rendering paths have not been exercised on the other supported systems they can affect. *When:* Players on Windows, AMD or Steam Deck, or on a GPU without ray queries, may encounter device creation or rendering failures that the Linux RTX 3090 run cannot reveal. **Do:** Test the current head with rows off and on as applicable on Windows and Linux tier-1 hardware, including AMD and Steam Deck, and check a GPU without ray-query support. - **L3**: The reported rows-off comparison does not compare this head against its base, and the lamp and lantern costs are not measured. *When:* Device extensions are requested even when all rows are off, while enabling the lights adds GPU work whose frame-time and memory cost are unknown. **Do:** Measure the base and current head with rows off, then measure the lighting options on, using interleaved runs and reporting frame times, 1% lows and memory. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven at this head. The author reports 74–81 fps with four effects enabled versus 166 fps with rows off on an RTX 3090, and reports that the picture worked before the rebases; neither is an in-game run of 46422882. **Other systems:** The change affects Vulkan device creation even with the rows off, as well as rendering, GPU memory and timing when enabled. Windows, AMD, Intel, Steam Deck and devices without ray queries have not been validated for this head in the supplied reports. **Switches:** The change adds or changes numerous RX_VK_RT switches and seven graphics settings. The effects default off; the roughness setting defaults to Medium. A complete switch-by-switch review was not completed. **Reviewed:** 464228827f2c against 2393f0865beb: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the commit message, vk_rt_lit.cpp and test_rt_budget.py. Read portions of standards.md, the device setup, settings integration, draw hooks, retirement logic, test runner and recorded runs; skimmed the file list and remaining diff. Most changed renderer files, shaders, tests and documentation were not read in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The renderer API version is bumped for the added host callback. - The new saved settings have entries in the frozen settings-key test. - The commit records AI assistance. **Testing:** No commands from the project were run, as requested. The author reports a Linux build and selected checks passing at this head, but no in-game run after the rebase. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean changed target branch from mod-api to main 2026-12-03 05:48:39 +00:00
HumanBean force-pushed rt-ray-tracing from 464228827f
All checks were successful
PR description / Title and description (pull_request_target) Successful in 8s
to aa597d03f7
Some checks failed
PR description / Title and description (pull_request_target) Successful in 9s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 34s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m28s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m40s
CI / Website build and checks (pull_request) Successful in 1m16s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m30s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 45m7s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 58m11s
2026-12-03 05:54:28 +00:00
Compare
HumanBean force-pushed rt-ray-tracing from aa597d03f7
Some checks failed
PR description / Title and description (pull_request_target) Successful in 9s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 34s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m28s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m40s
CI / Website build and checks (pull_request) Successful in 1m16s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m30s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 45m7s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 58m11s
to c8a865c919
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 15s
CI / Lint (pre-commit, ShellCheck, actionlint) (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-03 09:32:01 +00:00
Compare
HumanBean force-pushed rt-ray-tracing from c8a865c919
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 15s
CI / Lint (pre-commit, ShellCheck, actionlint) (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 dc2091f9e5
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 18s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m9s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m9s
CI / Website build and checks (pull_request) Failing after 42s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 52m22s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
2026-12-03 16:45:10 +00:00
Compare
HumanBean force-pushed rt-ray-tracing from dc2091f9e5
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 18s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m9s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m9s
CI / Website build and checks (pull_request) Failing after 42s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 52m22s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
to 3ec4959d7a
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-04 06:26:04 +00:00
Compare
HumanBean force-pushed rt-ray-tracing from 3ec4959d7a
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 0f566ad1b6
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-04 07:13:45 +00:00
Compare
HumanBean force-pushed rt-ray-tracing from 0f566ad1b6
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 5672bf5d0d
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-04 11:05:53 +00:00
Compare
Author
Owner

Rebased onto main @ 1c8c2634 and fixed (old head 46422882, new head 5672bf5d).

  • Since the last comment: all parts on no longer destroys the picture (an uninitialized variable in the linked reflection lookup); the castle gate's sun-shadowed floor is shadowed again; ray tracing runs under Native HDR; one preset row with a settings page.
  • Rebase: 25 conflicted files; a caps layout number both sides had bumped merged cleanly and is fixed.
  • Self-review by separate agents, then fixes: cascade mesh entries keyed per cascade, refused alpha bakes, bounds and lifetime problems, missing flushes and barriers, histories reset on scene format changes, less work with the rows off. What is left is listed under Known problems; parts of the scene code's behaviour are checked by reading only.

Screenshots, Linux, RTX 3090, headless: left rays off, right all parts on; Kokiri start, Market entrance, castle gate, and the castle gate under Native HDR (raw HDR output, so it looks washed out). The fairy is in a different place in each run, which changes how Link is lit.

rays off and all on

Rebased onto `main` @ 1c8c2634 and fixed (old head 46422882, new head 5672bf5d). - Since the last comment: all parts on no longer destroys the picture (an uninitialized variable in the linked reflection lookup); the castle gate's sun-shadowed floor is shadowed again; ray tracing runs under Native HDR; one preset row with a settings page. - Rebase: 25 conflicted files; a caps layout number both sides had bumped merged cleanly and is fixed. - Self-review by separate agents, then fixes: cascade mesh entries keyed per cascade, refused alpha bakes, bounds and lifetime problems, missing flushes and barriers, histories reset on scene format changes, less work with the rows off. What is left is listed under Known problems; parts of the scene code's behaviour are checked by reading only. Screenshots, Linux, RTX 3090, headless: left rays off, right all parts on; Kokiri start, Market entrance, castle gate, and the castle gate under Native HDR (raw HDR output, so it looks washed out). The fairy is in a different place in each run, which changes how Link is lit. ![rays off and all on](https://git.magicbean.dev/attachments/51a47dbe-9b57-4bb5-a710-176fc1ee41b3)
HumanBean force-pushed rt-ray-tracing from 5672bf5d0d
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 77d3f1ad80
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-04 16:43:16 +00:00
Compare
Author
Owner

Pushed 77d3f1ad (old head 5672bf5d), not rebased.

  • Skinned characters' ray tracing models are now updated in place between full builds: about 0.1 ms of GPU a frame less on an RTX 3090 (RX_VK_RT_REFIT=0 turns it off).
  • Foliage on the compute fallback is captured with no game pass ended for it, and a failed fallback no longer reuses the previous draw's data. No measured gain.
  • Skipping the game's shadow maps was looked at and left out: it would change the picture, since the traced sun shadows are still checked against them.

Neither change affects anything with ray tracing off. Not run on AMD or Windows.

Pushed 77d3f1ad (old head 5672bf5d), not rebased. - Skinned characters' ray tracing models are now updated in place between full builds: about 0.1 ms of GPU a frame less on an RTX 3090 (`RX_VK_RT_REFIT=0` turns it off). - Foliage on the compute fallback is captured with no game pass ended for it, and a failed fallback no longer reuses the previous draw's data. No measured gain. - Skipping the game's shadow maps was looked at and left out: it would change the picture, since the traced sun shadows are still checked against them. Neither change affects anything with ray tracing off. Not run on AMD or Windows.
Author
Owner

For whoever reported the turf shadow flicker (RX 7900 XT, Windows): could you try a build of 77d3f1ad?

  1. Set RX_VK_RT_LOG=1 for the run.
  2. With ray tracing and sun shadows on, reload your save and look at the same simulated turf.
  3. Say whether the shadows still flicker, and attach longshot_log.txt.

For frame rate in the meantime: in your earlier log, GPU time was 42 to 88 ms with Reflections: max roughness at Max, and 20 to 34 ms at 0.35 or less. Try Medium or Low.

The flicker was never reproduced here, so this run is what tells us whether it is fixed.

For whoever reported the turf shadow flicker (RX 7900 XT, Windows): could you try a build of 77d3f1ad? 1. Set `RX_VK_RT_LOG=1` for the run. 2. With ray tracing and sun shadows on, reload your save and look at the same simulated turf. 3. Say whether the shadows still flicker, and attach `longshot_log.txt`. For frame rate in the meantime: in your earlier log, GPU time was 42 to 88 ms with **Reflections: max roughness** at Max, and 20 to 34 ms at 0.35 or less. Try Medium or Low. The flicker was never reproduced here, so this run is what tells us whether it is fixed.
HumanBean force-pushed rt-ray-tracing from 77d3f1ad80
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 3e734c741a
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-04 16:59:41 +00:00
Compare
Author
Owner

Rebased onto main @ b77c2f4b (old head 77d3f1ad, new head 3e734c74). Three conflicts, both sides kept: the user docs' settings table, a menu test, and a draw hook in vk_draw.cpp. It builds on Linux; the tests and the game have not been run on the new head.

For the turf flicker test asked above, use 3e734c74.

Rebased onto `main` @ b77c2f4b (old head 77d3f1ad, new head 3e734c74). Three conflicts, both sides kept: the user docs' settings table, a menu test, and a draw hook in `vk_draw.cpp`. It builds on Linux; the tests and the game have not been run on the new head. For the turf flicker test asked above, use 3e734c74.
First-time contributor

Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off.

Windows 11
9800x3d
Rtx 5080, nvidia drivers 617.42
48gb ram.

Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off. Windows 11 9800x3d Rtx 5080, nvidia drivers 617.42 48gb ram.
Author
Owner

@Noa@NoahClue wrote in #2966 (comment):

Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off.

Windows 11 9800x3d Rtx 5080, nvidia drivers 617.42 48gb ram.

Thanks. Which commit is your build from? Could you try 3e734c74 with RX_VK_RT_LOG=1, turn on ray tracing and PsychoV35, and attach longshot_log.txt? Also: does the Ray tracing setting itself change to Off, or do the effects just disappear? And are DLSS or frame generation on?

@Noa@NoahClue wrote in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2966#issuecomment-104052: > Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off. > > Windows 11 9800x3d Rtx 5080, nvidia drivers 617.42 48gb ram. Thanks. Which commit is your build from? Could you try 3e734c74 with RX_VK_RT_LOG=1, turn on ray tracing and PsychoV35, and attach longshot_log.txt? Also: does the Ray tracing setting itself change to Off, or do the effects just disappear? And are DLSS or frame generation on?
HumanBean force-pushed rt-ray-tracing from 3e734c741a
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 d37c4a8979
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Successful in 8s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 22s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m17s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 12m42s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m1s
CI / Website build and checks (pull_request) Failing after 38s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m59s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 47m16s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m4s
2026-12-04 21:57:56 +00:00
Compare
Author
Owner

Rebased onto main @ f8b54338 (old head 3e734c74, new head d37c4a89). Conflicts with the new Volumetric Fog settings (menu layout, strings, menu test, user docs) were resolved keeping both, as were two includes in vk_main.cpp; the settings ABI was regenerated. Not built, tested or run.

Rebased onto `main` @ f8b54338 (old head 3e734c74, new head d37c4a89). Conflicts with the new Volumetric Fog settings (menu layout, strings, menu test, user docs) were resolved keeping both, as were two includes in `vk_main.cpp`; the settings ABI was regenerated. Not built, tested or run.
First-time contributor

@HumanBean wrote in #2966 (comment):

@Noa@NoahClue wrote in #2966 (comment):

Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off.
Windows 11 9800x3d Rtx 5080, nvidia drivers 617.42 48gb ram.

Thanks. Which commit is your build from? Could you try 3e734c74 with RX_VK_RT_LOG=1, turn on ray tracing and PsychoV35, and attach longshot_log.txt? Also: does the Ray tracing setting itself change to Off, or do the effects just disappear? And are DLSS or frame generation on?

Problem is solved with 3e734c74, i was using an old commit! Works with DLSS 5, Frame gen and PsychoV35 on.

@HumanBean wrote in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2966#issuecomment-104105: > @Noa@NoahClue wrote in #2966 (comment): > > > Ray Tracing does not work currently with PsychoV35, HDR Tone Mapper. With PsychoV35 on, Ray Tracing gets turned off. > > Windows 11 9800x3d Rtx 5080, nvidia drivers 617.42 48gb ram. > > Thanks. Which commit is your build from? Could you try [`3e734c74`](/MagicBeanDev/Longshot/commit/3e734c74) with RX_VK_RT_LOG=1, turn on ray tracing and PsychoV35, and attach longshot_log.txt? Also: does the Ray tracing setting itself change to Off, or do the effects just disappear? And are DLSS or frame generation on? Problem is solved with 3e734c74, i was using an old commit! Works with DLSS 5, Frame gen and PsychoV35 on.
HumanBean force-pushed rt-ray-tracing from d37c4a8979
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Successful in 8s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 22s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m17s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 12m42s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m1s
CI / Website build and checks (pull_request) Failing after 38s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m59s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 47m16s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m4s
to 44bf048b43
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:42:08 +00:00
Compare
Author
Owner

Rebased onto main @ 150c8bcc; force-pushed, old head d37c4a89, new head 44bf048b.

  • Main moved the renderer's menu code to gpu/vk/settings/, so ray tracing's pieces moved there too.
  • Every ray tracing row's help now starts with [EXPERIMENTAL], as DLSS 5's does.
  • Compile check only (Linux): the runtime builds and the Rust workspace checks, except two test targets this PR does not change, which do not compile: builder/crates/build-driver/tests/driver.rs and modtool's lib tests (src/import.rs). No tests were run and nothing was played; Windows was not compiled.
Rebased onto `main` @ 150c8bcc; force-pushed, old head d37c4a89, new head 44bf048b. - Main moved the renderer's menu code to `gpu/vk/settings/`, so ray tracing's pieces moved there too. - Every ray tracing row's help now starts with `[EXPERIMENTAL]`, as DLSS 5's does. - Compile check only (Linux): the runtime builds and the Rust workspace checks, except two test targets this PR does not change, which do not compile: `builder/crates/build-driver/tests/driver.rs` and `modtool`'s lib tests (`src/import.rs`). No tests were run and nothing was played; Windows was not compiled.
HumanBean force-pushed rt-ray-tracing from 44bf048b43
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 af0f09f9d3
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:47:02 +00:00
Compare
Author
Owner

Rebased onto main @ df19b740; force-pushed, old head 44bf048b, new head af0f09f9.

Only the generated settings files conflicted. Compile check only (Linux): the runtime builds, and the Rust workspace checks except the same two test targets as above, which this PR does not change. No tests were run and nothing was played.

Rebased onto `main` @ df19b740; force-pushed, old head 44bf048b, new head af0f09f9. Only the generated settings files conflicted. Compile check only (Linux): the runtime builds, and the Rust workspace checks except the same two test targets as above, which this PR does not change. No tests were run and nothing was played.
HumanBean force-pushed rt-ray-tracing from af0f09f9d3
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 a626e56966
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
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 / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
PR description / Title and description (pull_request_target) Failing after 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
2026-12-05 17:53:36 +00:00
Compare
Author
Owner

Rebased onto main @ 6dbebabe; force-pushed, old head af0f09f9, new head a626e569.

Only the generated settings files conflicted. Compile check only (Linux): the runtime builds, and the Rust workspace checks except the same two test targets, which this PR does not change. No tests were run and nothing was played.

Rebased onto `main` @ 6dbebabe; force-pushed, old head af0f09f9, new head a626e569. Only the generated settings files conflicted. Compile check only (Linux): the runtime builds, and the Rust workspace checks except the same two test targets, which this PR does not change. No tests were run and nothing was played.
HumanBean changed title from WIP: feat(vk-rt): ray tracing on the mod API: AO, sun shadows, GI, reflections, lamp shadows, lantern lights to feat(vk-rt): ray tracing on the mod API: AO, sun shadows, GI, reflections, lamp shadows, lantern lights 2026-12-05 17:54:39 +00:00
HumanBean deleted branch rt-ray-tracing 2026-12-05 17:54:45 +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!2966
No description provided.