feat(vk): add volumetric fog controls #2423

Merged
HumanBean merged 14 commits from erlo68/Longshot:feat/fog-controls into main 2026-12-04 18:58:18 +00:00
Contributor

Summary

Ocarina of Time's volumetric Ground and Sky layers previously had no player-facing control. This adds a Volumetric Fog page under Graphics → Detail, immediately below Simulated turf, with a master switch and six presets, Game's, Less close Fog, Clear Ground, Clear Sky, Fully clear, and Custom. Named presets apply globally and preserve the player's Custom values. Custom exposes global or per-area profiles for layer enablement, near and far density, noise, combined scattering, absorption, and emission attenuation. Changes apply live and save with the profile in settings.toml.

Each Custom slider shows its value and has a Game's stop immediately to the left of numeric zero. The layer reset restores the original palette values.

The engine reports the address when a fog palette's resource links are visited. The presenting thread validates that palette and its Ground or Sky links and applies the active override directly. Discovery stays idle between relevant events. A bounded pass handles activation, area changes, fog edits after a finished pass, or an overflow of the notification queue. The Linux pass uses allocated memfd extents, with a pagemap fallback. Resource identity checks guard writes and restoration. Original values return when the feature or a layer returns to Game's. Placed mist and local fog volumes remain separate. Late-palette review

Fog uses the standard settings path. The earlier test build's fog_settings.ini writer, copy step, and import code are gone from the feature. Settings-file review

Closes #373 and addresses the closed duplicate #1438. PR #1377 covers complementary fog lighting performance work.

Start with gpu/vk/menu/fog_settings.h, game/mods/fog/sites.toml, game/mods/fog/mod.toml, and game/crates/longshot-game/src/fog_profiles.rs.

Testing

Tested: Windows 11 build 26200, AMD Radeon RX 7900 XT, AMD proprietary driver 26.11.2 (LLPC), Vulkan 1.4. The author tested and approved 926458da with their regular saves. Earlier in-game coverage exercised all six presets, both named and Custom menu states, restart persistence, and the Hyrule Field to Kokiri Forest transition. The comparison screenshots are attached in the PR history.

  • The late-palette fixture fails at 8ceb065b and passes with the fix. It checks that an announced fog palette receives the active Custom override without starting a scan. The new hook resolves exactly once on the supported game image.

  • At 926458da, the Windows runtime built and both Linux renderer variants linked with the current builder. Windows mise run test reported 684 passes, 168 failures, and 52 skips. Exact main at 9f76a437 reproduced all 168 failing checks and also failed test_frame_wait_bounds.py. The Linux strict equivalent reported 766 passes, 125 failures, and 13 skips, including missing Vulkan and SPIR-V test headers and two lifter timeouts. The fog fixture, settings keys, and renderer ABI checks passed on both systems.

  • At ce646d9e, rebased onto 3b3ea2cb, the Windows host and renderer built together. The fog fixture, program-hooks ABI check, PCIe check, and Fog catalogue check passed. test_ui_renderer.py failed the same pop-out paint assertion on exact main. The renderer interface keeps main's version 94 pop-out callbacks and appends the fog callback at version 95. The code for the fog palette hook, preset logic, and settings is identical to the approved build.

  • After moving Volumetric Fog into Detail, all 73 Windows menu tests and the focused Fog catalogue test passed. The shared F1 selector code matches main.

  • Rebased onto ca830e89. The Windows fog fixture, menu translations, area and saved-settings checks passed. WSL 2 passed 76 settings tests, both fog-profile tests and 173 UI tests. The regenerated settings ABI, guide table order and Fog catalogue entry also passed their checks.

  • The wider website catalogue check encounters the same DualSense game-aware-trigger condition error on exact main and the fog branch.

  • The previous rebase on ca5d3078 also passed the Windows menu and WSL 2 system-mod checks.

On the previous tested base, 9a1f19b4:

  • Windows mise run test with pinned LLVM reported 670 passes, 168 failures, and 51 skips. The exact-main rerun reproduced 167 failing check names, with 109 baseline failures reporting missing GCC or G++. The remaining failure, tests/test_menu_i18n.py, caught the missing translated Reset tooltip. Restoring that tooltip made all 13 translation assertions pass at 6b856df5. All 66 menu tests passed.
  • The Ubuntu WSL 2 equivalent strict suite reported 864 passes, 13 failures, and 12 skips. test_longshot_ctl.py and test_pipeline_cache_save.py passed when rerun in isolation. The fog fixture and corrected translation check also passed on the final head.
  • The other 10 Linux failures matched main. These were test_cursor_hidden_in_play.py, test_cursor_hidden_linux.py, test_display_pointer.py, test_dlss_why.py, test_game_menu_mouse_buttons.py, test_menu_size.py, test_screensaver.py, test_switch_table.py, test_target_retention.py, and test_lifter.py through the same formatter and generated game/game.h checks.
  • Both Linux renderer variants linked, with and without AMD FSR 4. All 159 Rust UI tests and both fog-profile tests passed. Schema generation, pre-commit, and actionlint passed on Linux.

Still to test:

  • Author, by hand. Verify a same-area late palette load with Custom active, transition to a new area and switch back to Game's. Repeat the Hyrule Field A/B on the current head.
  • Maintainer, by hand. Approve fork CI for the updated head if prompted, then check the official results.
  • Linux and other GPU vendors, by hand. Cycle presets, edit a Custom profile, transition between areas, switch back to Game's, and restart. On Linux, also record resident memory and on-screen frame pacing during palette discovery. The WSL 2 runs covered builds and game-free tests.

Measurements

These are the last completed measurements, on main 9a1f19b4 and fog 6b856df5. The current head's comparison is pending.

Verdict: Custom fog had no measurable steady-state performance regression. The +1.0% median FPS difference was within the observed run-to-run spread.

Setup: Windows 11, AMD Radeon RX 7900 XT, driver 26.11.2 (LLPC), Vulkan 1.4. Child Link in Hyrule Field, facing the open view. Both sides used a 2150×900 window, 3440×1440 output, 67% render resolution, and Custom graphics quality. Frame generation and VSync were off and HOS_FPS_MAX=1000. The fog branch used Custom with Ground near density x0.5, Ground scattering 3.0, and Sky near density x1.5. dev.py ab collected two interleaved pairs with 30 seconds of renderer frame traces per run after warm-up.

Metric Before: main @ 9a1f19b4 After: this PR @ 6b856df5 Δ
FPS per run 165.4 / 169.7 169.0 / 169.6
Median FPS 167.6 169.3 +1.0%
1% low FPS 136.8 140.2 +2.5%
Median frame time 5.94 ms 5.88 ms −0.05 ms
p99 frame time 7.32 ms 7.13 ms −0.18 ms
Frames of 50 ms or more (median) 0 0 0

The harness verified matching shared settings and the same destination. The first Custom trial recorded one cold frame. The other three trials recorded zero. These results cover steady-state rendering on the tested base. Discovery-time memory and on-screen frame pacing remain open.

Risks

  • On a fresh start, Custom values can take a little while to apply because the game has to load the palette resources before discovery can find them.
  • The master switch and clear presets can remove gameplay cues such as the Lost Woods' black exits. Game's restores the original values.
  • Fog profiles live in settings.toml. Density controls use steps of 0.1 and include Game's for the original value.
  • The resource layout is game-version-sensitive. The fog fixture covers shared-palette ownership and stale or reused resource addresses.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC in the game, as recorded above.
  • mise run test passes (any failure that also fails on main is named). See the matched failures and successful retries above.
  • Measured against main, or Measurements says why there is nothing to measure. See the tested base above.
  • No game files, build output or hand-edited generated files. third_party/ untouched.

When it applies

  • A check under tests/ that reads changed source is updated.
  • Screenshots of the same spot and both named and Custom UI states are attached in a PR comment.
  • Docs updated.
  • MKWVK_API_VERSION bumped (MkwVkHost or MkwVkRenderer in gpu/vk/vk_api.h changed).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths, as covered earlier in the PR.
  • AI assistance recorded with Assisted-by: trailers on the fog commits.

Ready to merge

  • Everything in Still to test has run, with results in Tested.
  • Tier 1 hardware it can affect is tested.
  • Approved in review, every comment answered.
  • CI passes on the head and the comparison is current with main.
## Summary Ocarina of Time's volumetric Ground and Sky layers previously had no player-facing control. This adds a **Volumetric Fog** page under **Graphics → Detail**, immediately below **Simulated turf**, with a master switch and six presets, **Game's**, **Less close Fog**, **Clear Ground**, **Clear Sky**, **Fully clear**, and **Custom**. Named presets apply globally and preserve the player's Custom values. Custom exposes global or per-area profiles for layer enablement, near and far density, noise, combined scattering, absorption, and emission attenuation. Changes apply live and save with the profile in `settings.toml`. Each Custom slider shows its value and has a **Game's** stop immediately to the left of numeric zero. The layer reset restores the original palette values. The engine reports the address when a fog palette's resource links are visited. The presenting thread validates that palette and its Ground or Sky links and applies the active override directly. Discovery stays idle between relevant events. A bounded pass handles activation, area changes, fog edits after a finished pass, or an overflow of the notification queue. The Linux pass uses allocated memfd extents, with a pagemap fallback. Resource identity checks guard writes and restoration. Original values return when the feature or a layer returns to **Game's**. Placed mist and local fog volumes remain separate. [Late-palette review](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2423#issuecomment-103022) Fog uses the standard settings path. The earlier test build's `fog_settings.ini` writer, copy step, and import code are gone from the feature. [Settings-file review](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2423#issuecomment-103021) Closes #373 and addresses the closed duplicate #1438. PR #1377 covers complementary fog lighting performance work. Start with `gpu/vk/menu/fog_settings.h`, `game/mods/fog/sites.toml`, `game/mods/fog/mod.toml`, and `game/crates/longshot-game/src/fog_profiles.rs`. ## Testing **Tested:** Windows 11 build 26200, AMD Radeon RX 7900 XT, AMD proprietary driver 26.11.2 (LLPC), Vulkan 1.4. The author tested and approved `926458da` with their regular saves. Earlier in-game coverage exercised all six presets, both named and Custom menu states, restart persistence, and the Hyrule Field to Kokiri Forest transition. The comparison screenshots are attached in the PR history. - The late-palette fixture fails at `8ceb065b` and passes with the fix. It checks that an announced fog palette receives the active Custom override without starting a scan. The new hook resolves exactly once on the supported game image. - At `926458da`, the Windows runtime built and both Linux renderer variants linked with the current builder. Windows `mise run test` reported 684 passes, 168 failures, and 52 skips. Exact `main` at `9f76a437` reproduced all 168 failing checks and also failed `test_frame_wait_bounds.py`. The Linux strict equivalent reported 766 passes, 125 failures, and 13 skips, including missing Vulkan and SPIR-V test headers and two lifter timeouts. The fog fixture, settings keys, and renderer ABI checks passed on both systems. - At `ce646d9e`, rebased onto `3b3ea2cb`, the Windows host and renderer built together. The fog fixture, program-hooks ABI check, PCIe check, and Fog catalogue check passed. `test_ui_renderer.py` failed the same pop-out paint assertion on exact main. The renderer interface keeps main's version 94 pop-out callbacks and appends the fog callback at version 95. The code for the fog palette hook, preset logic, and settings is identical to the approved build. - After moving Volumetric Fog into Detail, all 73 Windows menu tests and the focused Fog catalogue test passed. The shared F1 selector code matches main. - Rebased onto `ca830e89`. The Windows fog fixture, menu translations, area and saved-settings checks passed. WSL 2 passed 76 settings tests, both fog-profile tests and 173 UI tests. The regenerated settings ABI, guide table order and Fog catalogue entry also passed their checks. - The wider website catalogue check encounters the same DualSense game-aware-trigger condition error on exact main and the fog branch. - The previous rebase on `ca5d3078` also passed the Windows menu and WSL 2 system-mod checks. On the previous tested base, `9a1f19b4`: - Windows `mise run test` with pinned LLVM reported 670 passes, 168 failures, and 51 skips. The exact-main rerun reproduced 167 failing check names, with 109 baseline failures reporting missing GCC or G++. The remaining failure, `tests/test_menu_i18n.py`, caught the missing translated Reset tooltip. Restoring that tooltip made all 13 translation assertions pass at `6b856df5`. All 66 menu tests passed. - The Ubuntu WSL 2 equivalent strict suite reported 864 passes, 13 failures, and 12 skips. `test_longshot_ctl.py` and `test_pipeline_cache_save.py` passed when rerun in isolation. The fog fixture and corrected translation check also passed on the final head. - The other 10 Linux failures matched main. These were `test_cursor_hidden_in_play.py`, `test_cursor_hidden_linux.py`, `test_display_pointer.py`, `test_dlss_why.py`, `test_game_menu_mouse_buttons.py`, `test_menu_size.py`, `test_screensaver.py`, `test_switch_table.py`, `test_target_retention.py`, and `test_lifter.py` through the same formatter and generated `game/game.h` checks. - Both Linux renderer variants linked, with and without AMD FSR 4. All 159 Rust UI tests and both fog-profile tests passed. Schema generation, pre-commit, and actionlint passed on Linux. **Still to test:** - Author, by hand. Verify a same-area late palette load with Custom active, transition to a new area and switch back to **Game's**. Repeat the Hyrule Field A/B on the current head. - Maintainer, by hand. Approve fork CI for the updated head if prompted, then check the official results. - Linux and other GPU vendors, by hand. Cycle presets, edit a Custom profile, transition between areas, switch back to **Game's**, and restart. On Linux, also record resident memory and on-screen frame pacing during palette discovery. The WSL 2 runs covered builds and game-free tests. ## Measurements These are the last completed measurements, on main `9a1f19b4` and fog `6b856df5`. The current head's comparison is pending. **Verdict:** Custom fog had no measurable steady-state performance regression. The +1.0% median FPS difference was within the observed run-to-run spread. **Setup:** Windows 11, AMD Radeon RX 7900 XT, driver 26.11.2 (LLPC), Vulkan 1.4. Child Link in Hyrule Field, facing the open view. Both sides used a 2150×900 window, 3440×1440 output, 67% render resolution, and Custom graphics quality. Frame generation and VSync were off and `HOS_FPS_MAX=1000`. The fog branch used Custom with Ground near density x0.5, Ground scattering 3.0, and Sky near density x1.5. `dev.py ab` collected two interleaved pairs with 30 seconds of renderer frame traces per run after warm-up. | Metric | Before: main @ 9a1f19b4 | After: this PR @ 6b856df5 | Δ | |---|---:|---:|---:| | FPS per run | 165.4 / 169.7 | 169.0 / 169.6 | | | Median FPS | 167.6 | 169.3 | +1.0% | | 1% low FPS | 136.8 | 140.2 | +2.5% | | Median frame time | 5.94 ms | 5.88 ms | −0.05 ms | | p99 frame time | 7.32 ms | 7.13 ms | −0.18 ms | | Frames of 50 ms or more (median) | 0 | 0 | 0 | The harness verified matching shared settings and the same destination. The first Custom trial recorded one cold frame. The other three trials recorded zero. These results cover steady-state rendering on the tested base. Discovery-time memory and on-screen frame pacing remain open. ## Risks - On a fresh start, Custom values can take a little while to apply because the game has to load the palette resources before discovery can find them. - The master switch and clear presets can remove gameplay cues such as the Lost Woods' black exits. **Game's** restores the original values. - Fog profiles live in `settings.toml`. Density controls use steps of 0.1 and include **Game's** for the original value. - The resource layout is game-version-sensitive. The fog fixture covers shared-palette ownership and stale or reused resource addresses. ## 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, as recorded above. - [x] `mise run test` passes (any failure that also fails on `main` is named). See the matched failures and successful retries above. - [x] Measured against `main`, or Measurements says why there is nothing to measure. See the tested base above. - [x] No game files, build output or hand-edited generated files. `third_party/` untouched. ### When it applies - [x] A check under `tests/` that reads changed source is updated. - [x] Screenshots of the same spot and both named and Custom UI states are attached in a PR comment. - [x] Docs updated. - [x] `MKWVK_API_VERSION` bumped (`MkwVkHost` or `MkwVkRenderer` in `gpu/vk/vk_api.h` changed). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths, as covered earlier in the PR. - [x] AI assistance recorded with `Assisted-by:` trailers on the fog commits. ### Ready to merge - [ ] Everything in Still to test has run, with results in Tested. - [ ] Tier 1 hardware it can affect is tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head and the comparison is current with main.
feat(vk): add volumetric fog controls
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
dc7f3fa70f
Add global presets and per-area Custom controls for the environment palette's Ground and Sky fog layers, with persistence, live restoration, menu integration, documentation, and regression coverage.

Assisted-by: OpenAI Codex
Author
Contributor

Tested in game: Windows 11 build 26200, AMD Radeon RX 7900 XT, driver 26.11.2 (LLPC): cycled and visually verified all six presets plus Custom global/per-area controls in Kokiri Forest; final Hyrule Field A/B ran six valid cross-map rounds with no crash or repeatable default-path regression.

Tested in game: Windows 11 build 26200, AMD Radeon RX 7900 XT, driver 26.11.2 (LLPC): cycled and visually verified all six presets plus Custom global/per-area controls in Kokiri Forest; final Hyrule Field A/B ran six valid cross-map rounds with no crash or repeatable default-path regression.
Author
Contributor

Volumetric Fog presets and UI

The first six screenshots use the same Kokiri Forest view for Game's, Less close Fog, Clear Ground, Clear Sky, Fully clear, and Custom. The final two show the compact named-preset UI and the expanded Custom controls.

01 - Game's.png

02 - Less close Fog.png

03 - Clear Ground.png

04 - Clear Sky.png

05 - Fully clear.png

06 - Custom.png

07 - UI - Game's (no custom sliders).png

08 - UI - Custom (sliders visible).png

## Volumetric Fog presets and UI The first six screenshots use the same Kokiri Forest view for Game's, Less close Fog, Clear Ground, Clear Sky, Fully clear, and Custom. The final two show the compact named-preset UI and the expanded Custom controls. ![01 - Game's.png](https://git.magicbean.dev/attachments/e0fd8f5c-6b74-4942-92b4-11f18551fb09) ![02 - Less close Fog.png](https://git.magicbean.dev/attachments/f3c83d6e-0009-4053-8096-b623a03c1de1) ![03 - Clear Ground.png](https://git.magicbean.dev/attachments/2a8dedb5-909d-416e-a1e2-99a799d81d23) ![04 - Clear Sky.png](https://git.magicbean.dev/attachments/10bd4693-a060-4e4f-b4ee-2ce998cdeb49) ![05 - Fully clear.png](https://git.magicbean.dev/attachments/47c3ff07-65a0-45ce-a0eb-0d4667c4b6bf) ![06 - Custom.png](https://git.magicbean.dev/attachments/5a1f924f-c001-4b29-83ab-d2b3af40797e) ![07 - UI - Game's (no custom sliders).png](https://git.magicbean.dev/attachments/8fd5103c-fa01-40ea-9629-bc7123a47ac7) ![08 - UI - Custom (sliders visible).png](https://git.magicbean.dev/attachments/0fd411ed-b69b-4f30-9675-f9f56058cfa4)
Member
@review
BeanBot left a comment

Recommendation: Request changes. Fog discovery can stop permanently before the relevant resources load. The Linux scan also touches the entire 4 GiB resource window, creating a substantial memory risk on memfd-backed systems.

Adds global fog presets and per-area or global Custom controls, with restoration and persistence. The controls worked in the reported Windows run, but discovery, resource synchronization and Linux memory use need changes before merge.

Blocking (2): must change before merging.

  1. L1 gpu/vk/menu/fog_settings.h:295: Discovery stops permanently after three seconds without a palette, or as soon as it finds any palette, even if other resources have not loaded yet. (more on the line) Do: Tie discovery to resource load and unload events, or continue bounded discovery while overrides are active and incorporate newly loaded targets. Add a fixture where a palette appears after the first scan and after the current retry window.
  2. L2 gpu/vk/menu/fog_settings.h:344: The Linux scan reads all 4 GiB of the resource window, including unallocated pages of the shared memfd mapping. (more on the line) Do: Scan only known allocated resource ranges or discover resources through their allocation or load path without touching holes. Verify resident memory during a scan on the memfd path.

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

  • L3 gpu/vk/menu/fog_settings.h:145: Deleting fog_settings.ini does not reliably reset the settings as the PR describes, because the same rows are also saved in longshot_options.ini and treated as migration input. (more on the line) Do: Make the dedicated file authoritative after a one-time migration, remove the duplicate saved values, and test deletion and restart after both Custom and named presets.
  • L4 tests/test_fog_settings.py:20: The standalone test ignores the configured compiler unless the caller supplies --cxx. (more on the line) Do: Default to the configured CXX, with a portable fallback, while retaining the explicit --cxx override.

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

  • L5: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. When: Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. Do: After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery. (@fix does its part first: Replace the full-window scan with resource-load tracking to shrink the platform and pacing impact.)

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

Questions (2) (not confirmed from the code; they don't hold the recommendation)

  • gpu/vk/menu/fog_settings.h:93: Can the game load, free, reuse or read these palette fields concurrently with menu_tick during an area transition?
  • tests/test_menu_sections.py:89: Is there a current heading behavior case that fails at HEAD and that this test misses?

Checks: Still running: 10 checks.

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

Does it help: Yes for the tested Windows configuration: the author reports visually verifying all six presets and Custom profiles. The default-path A/B median was 147.1 versus 146.3 FPS across three interleaved pairs, with overlapping spreads; that does not establish a performance gain.

Other systems: The live resource edits and discovery affect both Windows and Linux and all GPUs. Only Windows on an RX 7900 XT was reported tested; Linux, NVIDIA and Steam Deck behavior remain unverified. The scan runs on the present path and reads memory concurrently with game resource loading.

Switches: No environment switches added. The player-facing master defaults off, the preset defaults to Game's, and Custom defaults to global settings; those defaults preserve the game's appearance.

Reviewed: dc7f3fa70f against 90fae88c13: Read the repository rules, PR template, standards, commit and changed fog implementation, menu integration, documentation and fog fixture. Reviewed the remaining test diffs and relevant menu, guest mapping and bridge code; skimmed the rest of vk_menu.cpp and the reported runs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance.
  • The renderer API structure and shader sources are unchanged, so no API version bump or shader regeneration is required.
  • The reported Windows screenshots and game run cover the named presets and Custom menu states.
  • The frozen grass-distance key remains present; its diff only moves its position in the table.

Testing: Read-only review; no build, test, project script or game run was executed. The supplied CI checks are still running.

Overlaps and merge order: PR #1377 is described as complementary fog-pass performance work; coordinate its merge and repeat affected measurements if either change lands first.


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

**Recommendation: Request changes.** Fog discovery can stop permanently before the relevant resources load. The Linux scan also touches the entire 4 GiB resource window, creating a substantial memory risk on memfd-backed systems. Adds global fog presets and per-area or global Custom controls, with restoration and persistence. The controls worked in the reported Windows run, but discovery, resource synchronization and Linux memory use need changes before merge. **Blocking (2)**: must change before merging. 1. **L1** `gpu/vk/menu/fog_settings.h:295`: Discovery stops permanently after three seconds without a palette, or as soon as it finds any palette, even if other resources have not loaded yet. (more on the line) **Do:** Tie discovery to resource load and unload events, or continue bounded discovery while overrides are active and incorporate newly loaded targets. Add a fixture where a palette appears after the first scan and after the current retry window. 2. **L2** `gpu/vk/menu/fog_settings.h:344`: The Linux scan reads all 4 GiB of the resource window, including unallocated pages of the shared memfd mapping. (more on the line) **Do:** Scan only known allocated resource ranges or discover resources through their allocation or load path without touching holes. Verify resident memory during a scan on the memfd path. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `gpu/vk/menu/fog_settings.h:145`: Deleting fog_settings.ini does not reliably reset the settings as the PR describes, because the same rows are also saved in longshot_options.ini and treated as migration input. (more on the line) **Do:** Make the dedicated file authoritative after a one-time migration, remove the duplicate saved values, and test deletion and restart after both Custom and named presets. - **L4** `tests/test_fog_settings.py:20`: The standalone test ignores the configured compiler unless the caller supplies --cxx. (more on the line) **Do:** Default to the configured CXX, with a portable fallback, while retaining the explicit --cxx override. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. *When:* Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. **Do:** After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery. *(`@fix` does its part first: Replace the full-window scan with resource-load tracking to shrink the platform and pacing impact.)* `@fix` can do L1, L2, L3, L4 and L5. **Questions (2)** (not confirmed from the code; they don't hold the recommendation) - `gpu/vk/menu/fog_settings.h:93`: Can the game load, free, reuse or read these palette fields concurrently with menu_tick during an area transition? - `tests/test_menu_sections.py:89`: Is there a current heading behavior case that fails at HEAD and that this test misses? **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested Windows configuration: the author reports visually verifying all six presets and Custom profiles. The default-path A/B median was 147.1 versus 146.3 FPS across three interleaved pairs, with overlapping spreads; that does not establish a performance gain. **Other systems:** The live resource edits and discovery affect both Windows and Linux and all GPUs. Only Windows on an RX 7900 XT was reported tested; Linux, NVIDIA and Steam Deck behavior remain unverified. The scan runs on the present path and reads memory concurrently with game resource loading. **Switches:** No environment switches added. The player-facing master defaults off, the preset defaults to Game's, and Custom defaults to global settings; those defaults preserve the game's appearance. **Reviewed:** dc7f3fa70f9a against 90fae88c1396: Read the repository rules, PR template, standards, commit and changed fog implementation, menu integration, documentation and fog fixture. Reviewed the remaining test diffs and relevant menu, guest mapping and bridge code; skimmed the rest of vk_menu.cpp and the reported runs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance. - The renderer API structure and shader sources are unchanged, so no API version bump or shader regeneration is required. - The reported Windows screenshots and game run cover the named presets and Custom menu states. - The frozen grass-distance key remains present; its diff only moves its position in the table. **Testing:** Read-only review; no build, test, project script or game run was executed. The supplied CI checks are still running. **Overlaps and merge order:** PR #1377 is described as complementary fog-pass performance work; coordinate its merge and repeat affected measurements if either change lands first. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -0,0 +142,4 @@
dirty_at = host && host->now_ns ? host->now_ns() : 0;
}
void load_config() {
Member

L3 (should fix): Deleting fog_settings.ini does not reliably reset the settings as the PR describes, because the same rows are also saved in longshot_options.ini and treated as migration input.

When: After using a Custom profile, deleting fog_settings.ini and restarting loads the last active profile from longshot_options.ini; load_config() then migrates it back and recreates the dedicated file. The master and a named preset can also survive there.

Do: Make the dedicated file authoritative after a one-time migration, remove the duplicate saved values, and test deletion and restart after both Custom and named presets.

**L3** (should fix): Deleting fog_settings.ini does not reliably reset the settings as the PR describes, because the same rows are also saved in longshot_options.ini and treated as migration input. *When:* After using a Custom profile, deleting fog_settings.ini and restarting loads the last active profile from longshot_options.ini; load_config() then migrates it back and recreates the dedicated file. The master and a named preset can also survive there. **Do:** Make the dedicated file authoritative after a one-time migration, remove the duplicate saved values, and test deletion and restart after both Custom and named presets.
@ -0,0 +292,4 @@
const bool found = std::any_of(targets.begin(), targets.end(), [](const Target& target) {
return target.kind == TargetKind::palette && target.matches();
});
scan_at = !found && now < retry_until ? now + 250'000'000 : 0;
Member

L1 (blocking): Discovery stops permanently after three seconds without a palette, or as soon as it finds any palette, even if other resources have not loaded yet.

When: If an area takes longer than the retry window to load, or another palette or child appears after the scan passes its address, no further scan is requested while the area and override remain unchanged. The selected preset then leaves that fog unchanged until another area change or override toggle.

Do: Tie discovery to resource load and unload events, or continue bounded discovery while overrides are active and incorporate newly loaded targets. Add a fixture where a palette appears after the first scan and after the current retry window.

**L1** (blocking): Discovery stops permanently after three seconds without a palette, or as soon as it finds any palette, even if other resources have not loaded yet. *When:* If an area takes longer than the retry window to load, or another palette or child appears after the scan passes its address, no further scan is requested while the area and override remain unchanged. The selected preset then leaves that fog unchanged until another area change or override toggle. **Do:** Tie discovery to resource load and unload events, or continue bounded discovery while overrides are active and incorporate newly loaded targets. Add a fixture where a palette appears after the first scan and after the current retry window.
@ -0,0 +341,4 @@
#else
while (reads < 8 && scan_cursor < limit) {
const auto bytes = std::min<uint64_t>(limit - scan_cursor, words.size() * sizeof(uint64_t));
std::memcpy(words.data(), base + scan_cursor, bytes);
Member

L2 (blocking): The Linux scan reads all 4 GiB of the resource window, including unallocated pages of the shared memfd mapping.

When: On a Linux system using the default udmabuf-backed guest memfd, selecting any non-default fog setting faults through the whole window. The shared mapping can populate gigabytes of otherwise unused shmem pages, causing memory pressure, swapping or an out-of-memory kill, especially on Steam Deck.

Do: Scan only known allocated resource ranges or discover resources through their allocation or load path without touching holes. Verify resident memory during a scan on the memfd path.

**L2** (blocking): The Linux scan reads all 4 GiB of the resource window, including unallocated pages of the shared memfd mapping. *When:* On a Linux system using the default udmabuf-backed guest memfd, selecting any non-default fog setting faults through the whole window. The shared mapping can populate gigabytes of otherwise unused shmem pages, causing memory pressure, swapping or an out-of-memory kill, especially on Steam Deck. **Do:** Scan only known allocated resource ranges or discover resources through their allocation or load path without touching holes. Verify resident memory during a scan on the memfd path.
@ -0,0 +17,4 @@
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--cxx", default="clang++")
Member

L4 (should fix): The standalone test ignores the configured compiler unless the caller supplies --cxx.

When: A developer with CXX set to an installed compiler but no clang++ on PATH cannot run the documented test command, even though the configured C++ compiler is available.

Do: Default to the configured CXX, with a portable fallback, while retaining the explicit --cxx override.

**L4** (should fix): The standalone test ignores the configured compiler unless the caller supplies --cxx. *When:* A developer with CXX set to an installed compiler but no clang++ on PATH cannot run the documented test command, even though the configured C++ compiler is available. **Do:** Default to the configured CXX, with a portable fallback, while retaining the explicit --cxx override.
Member
@fix
fix(tests): honor CXX in fog settings check
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Successful in 6s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 9s
CI / Workflow lint (actionlint) (pull_request) Successful in 10s
Third-party parts / As their notes say (pull_request) Successful in 11s
CI / Website build and checks (pull_request) Failing after 40s
968c11fa82
As the review on #2423 asked.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The fog controls worked in the reported Windows AMD game run, but the changed resource and platform paths still need an in-game exercise on Linux or another GPU vendor. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 968c11fa82. It was already up to date with main. I edited its description to match the change.

Changed

  • Compiler selection in tests/test_fog_settings.py:20: The test now defaults to CXX, falling back to c++, while retaining --cxx. Tests were not run as requested.
  • Continuing discovery in gpu/vk/menu/fog_settings.h:300: Rescan while overrides are active and added a fixture for a late palette and child. The fixture was not run.
  • Fog settings migration in gpu/vk/vk_menu.cpp:1105: Persist the master switch in the dedicated file and remove shared fog rows after a successful migration. Added deletion and restart fixtures for Custom and named presets; they were not run.

Changed in part (the rest is for the author)

  • Sparse Linux scan in gpu/vk/menu/fog_settings.h:347: Scan memfd data extents, with a pagemap fallback, instead of reading the full window. The author must measure resident memory during a scan on the memfd path.

Not done

  • Replace scanning with resource-load tracking: Needs resource-load tracking across the host and renderer, including target lifetime handling. The author must then exercise the changed paths on Linux or another GPU vendor.

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

Adds global fog presets and persistent global or per-area Custom controls, with restoration of game values. Continuous resource discovery adds scanning work while overrides are active.

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

  • L5: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. When: Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. Do: After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (3; not asked for, not blocking)
  • The repeated discovery scans and Linux resident-memory behavior have not been measured on the fixed code.
  • The fog settings fixes after dc7f3fa7 have not yet been tested in game.
  • The frozen menu-key test also removes grass_distance from its list.
More: does it help, other systems, switches, what was read

Does it help: Yes for the feature on the tested Windows AMD system: the author reports that all six presets and Custom profiles worked in game. The default-path measurements at dc7f3fa7 were 146.3 versus 147.1 median FPS over three runs, with overlapping spreads; the later fixes were not tested.

Other systems: The discovery and live resource edits also run on Linux and other GPUs, but no in-game result is reported for them. Linux uses memfd extent scanning or a pagemap fallback; Windows uses VirtualQuery and ReadProcessMemory.

Switches: The player-facing master switch defaults off and the preset defaults to Game's, preserving the game's fog. Custom defaults to global settings with game values. No environment switch was added.

Reviewed: 968c11fa82 against 90fae88c13: Read AGENTS.md, CONTRIBUTING.md, the pull request template, fog settings implementation and the fix diff; inspected the fog menu, relevant vk_menu integration, host memory allocation, changed tests and documentation. The large vk_menu.cpp and test files were inspected around the changes rather than read in full; screenshots and recorded runs were described in the supplied comments but not inspected directly.; nothing run (a code review).

Checked and fine:

  • The default Game's preset leaves resource scanning inactive until an override is selected.
  • The fix retains the fog controls and continues discovery while overrides are active.

Testing: No commands that build or run the project were executed. The author reports nine targeted checks and a Windows game run at dc7f3fa7; CI has not run on the current head.

Overlaps and merge order: PR #1377 is described as complementary fog-pass performance work; no merge dependency was established.


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

**Recommendation: Approve.** The code is ready: only testing is left. The fog controls worked in the reported Windows AMD game run, but the changed resource and platform paths still need an in-game exercise on Linux or another GPU vendor. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 968c11fa8220. It was already up to date with `main`. I edited its description to match the change. **Changed** - **Compiler selection in tests/test_fog_settings.py:20**: The test now defaults to CXX, falling back to c++, while retaining --cxx. Tests were not run as requested. - **Continuing discovery in gpu/vk/menu/fog_settings.h:300**: Rescan while overrides are active and added a fixture for a late palette and child. The fixture was not run. - **Fog settings migration in gpu/vk/vk_menu.cpp:1105**: Persist the master switch in the dedicated file and remove shared fog rows after a successful migration. Added deletion and restart fixtures for Custom and named presets; they were not run. **Changed in part (the rest is for the author)** - **Sparse Linux scan in gpu/vk/menu/fog_settings.h:347**: Scan memfd data extents, with a pagemap fallback, instead of reading the full window. The author must measure resident memory during a scan on the memfd path. **Not done** - **Replace scanning with resource-load tracking**: Needs resource-load tracking across the host and renderer, including target lifetime handling. The author must then exercise the changed paths on Linux or another GPU vendor. Nothing was built or run: the checks run again on the new head. Adds global fog presets and persistent global or per-area Custom controls, with restoration of game values. Continuous resource discovery adds scanning work while overrides are active. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. *When:* Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. **Do:** After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The repeated discovery scans and Linux resident-memory behavior have not been measured on the fixed code. - The fog settings fixes after dc7f3fa7 have not yet been tested in game. - The frozen menu-key test also removes grass_distance from its list. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the feature on the tested Windows AMD system: the author reports that all six presets and Custom profiles worked in game. The default-path measurements at dc7f3fa7 were 146.3 versus 147.1 median FPS over three runs, with overlapping spreads; the later fixes were not tested. **Other systems:** The discovery and live resource edits also run on Linux and other GPUs, but no in-game result is reported for them. Linux uses memfd extent scanning or a pagemap fallback; Windows uses VirtualQuery and ReadProcessMemory. **Switches:** The player-facing master switch defaults off and the preset defaults to Game's, preserving the game's fog. Custom defaults to global settings with game values. No environment switch was added. **Reviewed:** 968c11fa8220 against 90fae88c1396: Read AGENTS.md, CONTRIBUTING.md, the pull request template, fog settings implementation and the fix diff; inspected the fog menu, relevant vk_menu integration, host memory allocation, changed tests and documentation. The large vk_menu.cpp and test files were inspected around the changes rather than read in full; screenshots and recorded runs were described in the supplied comments but not inspected directly.; nothing run (a code review). **Checked and fine:** - The default Game's preset leaves resource scanning inactive until an override is selected. - The fix retains the fog controls and continues discovery while overrides are active. **Testing:** No commands that build or run the project were executed. The author reports nine targeted checks and a Windows game run at dc7f3fa7; CI has not run on the current head. **Overlaps and merge order:** PR #1377 is described as complementary fog-pass performance work; no merge dependency was established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
erlo68 force-pushed feat/fog-controls from 968c11fa82
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Successful in 6s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 9s
CI / Workflow lint (actionlint) (pull_request) Successful in 10s
Third-party parts / As their notes say (pull_request) Successful in 11s
CI / Website build and checks (pull_request) Failing after 40s
to def6ddb372
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
2026-11-24 12:22:34 +00:00
Compare
Author
Contributor

Rebased onto current main and pushed the transition/palette, conditional-heading, and guide-capture fixes. Rechecked untouched main 8aa5ab87 and current PR head def6ddb3 with the same stable save through the shared queue: main startup/gameplay was normal; the fog presets, Custom visibility, and area transition behaved as expected. The existing timed numbers still apply because main changed only .tooling-rev. The description now leaves the whole-suite Windows failures and Linux/cross-vendor testing explicitly unresolved.

Rebased onto current main and pushed the transition/palette, conditional-heading, and guide-capture fixes. Rechecked untouched main 8aa5ab87 and current PR head def6ddb3 with the same stable save through the shared queue: main startup/gameplay was normal; the fog presets, Custom visibility, and area transition behaved as expected. The existing timed numbers still apply because main changed only .tooling-rev. The description now leaves the whole-suite Windows failures and Linux/cross-vendor testing explicitly unresolved.
Author
Contributor

Review recheck at def6ddb3:

  • L1 fixed: discovery continues in bounded 250 ms cycles while overrides are active, keeps still-valid targets across a transiently missed scan, and incorporates a late palette and child. The late-load/transient-miss fixture passes.
  • L2 code fixed: Linux scans memfd data extents, with a pagemap fallback, instead of reading the full 4 GiB window. Linux resident-memory verification is still outstanding.
  • L3 fixed: fog_settings.ini becomes authoritative after a successful save; shared fog rows are then omitted, and deleting the dedicated file resets both Custom and named presets. The deletion/restart fixture passes.
  • L4 fixed: test_fog_settings defaults to CXX and retains --cxx. The fixture passes through both the CXX-default and explicit-compiler paths.
  • L5 remains: Linux or another GPU vendor still needs an in-game preset/Custom/area-transition/restart run; Linux should record resident memory during discovery. NVIDIA and Steam Deck-specific testing has not been run.
  • The resource-lifetime question is narrowed but not eliminated: target identity is revalidated immediately before each restore/edit and the stale-target fixture passes, while the final check-to-write interval still lacks host lifecycle synchronization. Today's current-main/current-PR area-transition comparison showed no issue but cannot prove that interval race-free.
  • The heading question is fixed with a compiled behavior fixture; it passes under both compiler entry points. The frozen-key check also passes and confirms grass_distance remains in FROZEN.

CI is still blocked by required conditions while the PR is WIP. The whole-tree Windows suite's unrelated failures and the Linux/cross-vendor items remain, so I am leaving the PR WIP.

Review recheck at def6ddb3: - L1 fixed: discovery continues in bounded 250 ms cycles while overrides are active, keeps still-valid targets across a transiently missed scan, and incorporates a late palette and child. The late-load/transient-miss fixture passes. - L2 code fixed: Linux scans memfd data extents, with a pagemap fallback, instead of reading the full 4 GiB window. Linux resident-memory verification is still outstanding. - L3 fixed: fog_settings.ini becomes authoritative after a successful save; shared fog rows are then omitted, and deleting the dedicated file resets both Custom and named presets. The deletion/restart fixture passes. - L4 fixed: test_fog_settings defaults to CXX and retains --cxx. The fixture passes through both the CXX-default and explicit-compiler paths. - L5 remains: Linux or another GPU vendor still needs an in-game preset/Custom/area-transition/restart run; Linux should record resident memory during discovery. NVIDIA and Steam Deck-specific testing has not been run. - The resource-lifetime question is narrowed but not eliminated: target identity is revalidated immediately before each restore/edit and the stale-target fixture passes, while the final check-to-write interval still lacks host lifecycle synchronization. Today's current-main/current-PR area-transition comparison showed no issue but cannot prove that interval race-free. - The heading question is fixed with a compiled behavior fixture; it passes under both compiler entry points. The frozen-key check also passes and confirms grass_distance remains in FROZEN. CI is still blocked by required conditions while the PR is WIP. The whole-tree Windows suite's unrelated failures and the Linux/cross-vendor items remain, so I am leaving the PR WIP.
erlo68 force-pushed feat/fog-controls from def6ddb372
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 61b202da74
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
2026-11-25 00:13:17 +00:00
Compare
Author
Contributor

Rebased onto main 9046a8d7 and resolved the four Graphics guide conflicts. Preserved the upstream FSR 4 and Dynamic resolution text and retained the documented fog capture after visual comparison and source checks. The website now renders Volumetric Fog and preserves Frame generation visibility validation. The site build, guide-image checks, and focused fog and menu tests passed. A Windows save-scrub test still has a CRLF mismatch that also reproduces with the main sources. The description identifies the revisions used for the earlier gameplay and timing results.

Rebased onto main 9046a8d7 and resolved the four Graphics guide conflicts. Preserved the upstream FSR 4 and Dynamic resolution text and retained the documented fog capture after visual comparison and source checks. The website now renders Volumetric Fog and preserves Frame generation visibility validation. The site build, guide-image checks, and focused fog and menu tests passed. A Windows save-scrub test still has a CRLF mismatch that also reproduces with the main sources. The description identifies the revisions used for the earlier gameplay and timing results.
Author
Contributor

Rebased onto be663a08 after the Rust builder and game-module changes. Resolved the Graphics manifest and website parser conflicts. Both runtimes built with the pinned tools and passed the Windows gameplay smoke check. All presets and Custom visibility were checked on the fog build, and the Custom value persisted through restart and an area transition. The accepted six-run A/B found a 4.3% lower fog median within overlapping run ranges. The description records the test and website failures and the outstanding cross-platform work.

Rebased onto be663a08 after the Rust builder and game-module changes. Resolved the Graphics manifest and website parser conflicts. Both runtimes built with the pinned tools and passed the Windows gameplay smoke check. All presets and Custom visibility were checked on the fog build, and the Custom value persisted through restart and an area transition. The accepted six-run A/B found a 4.3% lower fog median within overlapping run ranges. The description records the test and website failures and the outstanding cross-platform work.
erlo68 force-pushed feat/fog-controls from 61b202da74
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
to 84a7289e58
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-25 14:54:43 +00:00
Compare
erlo68 force-pushed feat/fog-controls from 84a7289e58
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 9656810b1e
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 22s
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-11-26 07:20:34 +00:00
Compare
Assisted-by: OpenAI Codex
docs(guide): record the fog control bridge source review
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 16s
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
f8f1583e11
Assisted-by: OpenAI Codex
Author
Contributor

Rebased onto 4687ad58 and fixed the Fog tab's control bridge entry in 42fef5ad. Windows renderer builds, lint, and the fog/menu fixtures passed on f8f1583e. The full Windows suite reported 17 baseline failures plus a control relaunch failure that passed in a fresh PR checkout. The website built, with its single Windows line-ending failure reproduced on main. The Linux CI run is waiting for maintainer approval. The PR remains WIP.

Rebased onto `4687ad58` and fixed the Fog tab's control bridge entry in `42fef5ad`. Windows renderer builds, lint, and the fog/menu fixtures passed on `f8f1583e`. The full Windows suite reported 17 baseline failures plus a control relaunch failure that passed in a fresh PR checkout. The website built, with its single Windows line-ending failure reproduced on main. The [Linux CI run](https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/55052) is waiting for maintainer approval. The PR remains WIP.
erlo68 force-pushed feat/fog-controls from f8f1583e11
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 16s
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 0f3ced96f4
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 6s
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-11-26 11:25:28 +00:00
Compare
Author
Contributor

Rebased onto 201f8868 and completed the matched Windows A/B on 0f3ced96. Hyrule Field at the Game’s fog preset gave median FPS of 170.2 on main and 170.5 on the PR, within the observed spread. A maintainer can release the Linux renderer build by choosing Approve once on this PR.

Rebased onto `201f8868` and completed the matched Windows A/B on `0f3ced96`. Hyrule Field at the Game’s fog preset gave median FPS of 170.2 on main and 170.5 on the PR, within the observed spread. A maintainer can release the [Linux renderer build](https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/55148/jobs/6) by choosing **Approve once** on this PR.
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
test(vk): keep option parser fixtures in sync with fog migration
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Failing after 11s
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
361202d358
Assisted-by: OpenAI Codex
Author
Contributor

Fixed shared-palette restoration and failed settings-save retries. The regressions reproduced on the old implementation and pass at 361202d3. Ubuntu 24.04 under WSL 2 built the Linux renderer with and without FSR 4. The fog fixture passed with Clang and GCC, and both parser fixtures passed on Windows and Ubuntu. The official CI run still awaits fork approval.

Fixed shared-palette restoration and failed settings-save retries. The regressions reproduced on the old implementation and pass at `361202d3`. Ubuntu 24.04 under WSL 2 built the Linux renderer with and without FSR 4. The fog fixture passed with Clang and GCC, and both parser fixtures passed on Windows and Ubuntu. The [official CI run](https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/55263) still awaits fork approval.
erlo68 changed title from WIP: feat(vk): add volumetric fog controls to feat(vk): add volumetric fog controls 2026-11-26 17:43:56 +00:00
erlo68 force-pushed feat/fog-controls from 361202d358
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Failing after 11s
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 98acee5f98
Some checks failed
Website / Website preview, upload (pull_request_target) Has been skipped
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Failing after 6s
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-11-27 23:18:59 +00:00
Compare
test(vk): keep the atomic save fixture compatible with fog migration
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 7s
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
0ec1727b7e
Assisted-by: OpenAI Codex
erlo68 force-pushed feat/fog-controls from 0ec1727b7e
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 7s
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 021930b5bb
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 13s
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-11-27 23:38:49 +00:00
Compare
erlo68 force-pushed feat/fog-controls from 021930b5bb
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 13s
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 a90881ea46
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 10s
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-11-27 23:43:25 +00:00
Compare
Owner

Awesome work! We'll merge this in one mod-api is in :)

Awesome work! We'll merge this in one mod-api is in :)
erlo68 force-pushed feat/fog-controls from a90881ea46
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 10s
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 89471d13ce
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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-01 17:56:20 +00:00
Compare
erlo68 force-pushed feat/fog-controls from 89471d13ce
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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 fafad15a46
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-03 15:05:02 +00:00
Compare
erlo68 force-pushed feat/fog-controls from fafad15a46
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 f064977b14
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-03 15:06:40 +00:00
Compare
fix(menu): register fog settings in their own system mod
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
6423abc4d9
erlo68 force-pushed feat/fog-controls from 6423abc4d9
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 b3947347a6
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-03 16:41:45 +00:00
Compare
fix(vk): run fog discovery only when the area or settings change
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
0218e01e4c
fix(menu): show numeric fog slider values at consistent steps
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
a456433273
fix(menu): use the translated fog reset help
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
6b856df566
Author
Contributor

Pushed 6b856df5 with Game's restored to the Custom sliders and layer resets, wider value labels, and consistent dropdown styling when reopening settings. The description includes the Windows and Linux test results and the matched Hyrule Field A/B. Median FPS was 167.6 on main and 169.3 with Custom fog, within the observed spread.

The A/B used main at 9a1f19b4. Current main is 76092c5e and has settings backend conflicts with the tested head. The PR remains open for review.

Pushed `6b856df5` with **Game's** restored to the Custom sliders and layer resets, wider value labels, and consistent dropdown styling when reopening settings. The description includes the Windows and Linux test results and the matched Hyrule Field A/B. Median FPS was 167.6 on main and 169.3 with Custom fog, within the observed spread. The A/B used main at `9a1f19b4`. Current main is `76092c5e` and has settings backend conflicts with the tested head. The PR remains open for review.
erlo68 force-pushed feat/fog-controls from 6b856df566
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 2c5c8769d7
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-03 20:45:22 +00:00
Compare
Author
Contributor

Rebased onto main at ca5d3078 and resolved the six settings conflicts. The fog area and reset hooks use main’s cached settings service. The additional DLSS logging and mod-import changes left the fog diff identical to the checked rebase on 76092c5e.

The Windows menu and fog checks, WSL settings, UI, fog and system-mod tests, and schema generation passed. The previous A/B stays in Measurements with its original baseline. The new head is 2c5c8769.

Rebased onto main at `ca5d3078` and resolved the six settings conflicts. The fog area and reset hooks use main’s cached settings service. The additional DLSS logging and mod-import changes left the fog diff identical to the checked rebase on `76092c5e`. The Windows menu and fog checks, WSL settings, UI, fog and system-mod tests, and schema generation passed. The previous A/B stays in Measurements with its original baseline. The new head is `2c5c8769`.
erlo68 force-pushed feat/fog-controls from 2c5c8769d7
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 038e17cfb7
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 04:17:33 +00:00
Compare
Author
Contributor

Rebased onto main at ca830e89. Volumetric Fog is listed under Graphics → More graphics settings, and the guide and catalogue follow the new menu order. The rebase preserves the fog sliders and resets, the settings search, the bindings reset, and main’s new input handling. The settings ABI was regenerated from the merged declarations.

The focused Windows checks and the WSL settings, UI and fog-profile checks passed. The wider website catalogue check reproduces the same DualSense trigger condition error on main. The earlier A/B is still listed with its original baseline.

Rebased onto main at `ca830e89`. **Volumetric Fog** is listed under **Graphics → More graphics settings**, and the guide and catalogue follow the new menu order. The rebase preserves the fog sliders and resets, the settings search, the bindings reset, and main’s new input handling. The settings ABI was regenerated from the merged declarations. The focused Windows checks and the WSL settings, UI and fog-profile checks passed. The wider website catalogue check reproduces the same DualSense trigger condition error on main. The earlier A/B is still listed with its original baseline.
Assisted-by: OpenAI Codex
fix(menu): place volumetric fog below simulated turf
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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
805387e046
Assisted-by: OpenAI Codex
Owner
@review
Owner

There's a separate fog_settings.ini, not in standard settings

There's a separate fog_settings.ini, not in standard settings
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L7) The controls have been exercised in game on Windows with AMD hardware, but the requested Linux or other-vendor run remains outstanding. A palette loaded after discovery finishes can also miss the active override.

Adds live volumetric fog presets and global or per-area Custom controls, with settings persistence. It gives players control over the two fog layers at the cost of resource discovery and palette-editing complexity.

Blocking (1): must change before merging.

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

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

  • L6 gpu/vk/menu/fog_settings.h:559: Discovery stops after one scan, so palettes loaded later in the same area are not picked up. (more on the line) Do: Track palette loads or schedule further bounded discovery while overrides are active, and cover a palette arriving after a completed scan in the fixture.

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

  • L5: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. When: Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. Do: After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery.

@fix can do L6.

Since the last review (on 968c11fa82)
Still open: L5 (The changed resource and platform paths have only been exercised in game on Windows with A…)
New: L6 (Discovery stops after one scan, so palettes loaded later in the same area are not picked u…); L7 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)

Checks: Still running: 10 checks.

Also noticed (1; not asked for, not blocking)
  • The current-head Windows gameplay and A/B repeat, discovery-time memory and pacing checks, and official CI results are still pending.
More: does it help, other systems, switches, what was read

Does it help: Yes for the feature on the tested Windows AMD setup: the author reports exercising all presets, Custom controls, persistence and area transitions. On an earlier base, median FPS was 167.6 before and 169.3 after, within the observed spread; discovery-time pacing and memory remain unmeasured.

Other systems: Palette discovery has separate Windows and Linux paths and can affect resource loading, frame pacing and memory. In-game coverage is reported only for Windows on an AMD RX 7900 XT; Linux, other vendors and Steam Deck remain untested in game.

Switches: No environment switches added or changed. The player-facing fog settings default to the game's values.

Reviewed: 805387e046 against ca830e8959: Read AGENTS.md, CONTRIBUTING.md, the pull request template, docs/dev/standards.md, fog_profiles.rs, fog.cpp, fog.h and menu layout in full. Reviewed the fog discovery and application code, settings and menu diffs, and skimmed the manifest, generated ABI, tests, translations and remaining changed files; not every changed code file was read in full.; nothing run (a code review).

Checked and fine:

  • The menu places Volumetric Fog under Graphics → Detail after Simulated turf.
  • The settings code retains separate global and per-area Custom values and provides layer resets.
  • The author reports prior Windows gameplay coverage and game-free checks on both Windows and WSL.

Testing: No commands that build or run the project were executed. The author reports Windows AMD gameplay coverage and passing focused checks; CI is still running.

Overlaps and merge order: PR #1377 is described as complementary fog-lighting performance work; no required merge order is established.


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). (L7) The controls have been exercised in game on Windows with AMD hardware, but the requested Linux or other-vendor run remains outstanding. A palette loaded after discovery finishes can also miss the active override. Adds live volumetric fog presets and global or per-area Custom controls, with settings persistence. It gives players control over the two fog layers at the cost of resource discovery and palette-editing complexity. **Blocking (1)**: must change before merging. 1. **L7**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Should fix (1)**: not blocking, but worth doing before merging. - **L6** `gpu/vk/menu/fog_settings.h:559`: Discovery stops after one scan, so palettes loaded later in the same area are not picked up. (more on the line) **Do:** Track palette loads or schedule further bounded discovery while overrides are active, and cover a palette arriving after a completed scan in the fixture. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. *When:* Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. **Do:** After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery. `@fix` can do L6. **Since the last review** (on 968c11fa8220) Still open: L5 (The changed resource and platform paths have only been exercised in game on Windows with A…) New: L6 (Discovery stops after one scan, so palettes loaded later in the same area are not picked u…); L7 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The current-head Windows gameplay and A/B repeat, discovery-time memory and pacing checks, and official CI results are still pending. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the feature on the tested Windows AMD setup: the author reports exercising all presets, Custom controls, persistence and area transitions. On an earlier base, median FPS was 167.6 before and 169.3 after, within the observed spread; discovery-time pacing and memory remain unmeasured. **Other systems:** Palette discovery has separate Windows and Linux paths and can affect resource loading, frame pacing and memory. In-game coverage is reported only for Windows on an AMD RX 7900 XT; Linux, other vendors and Steam Deck remain untested in game. **Switches:** No environment switches added or changed. The player-facing fog settings default to the game's values. **Reviewed:** 805387e046c4 against ca830e895926: Read AGENTS.md, CONTRIBUTING.md, the pull request template, docs/dev/standards.md, fog_profiles.rs, fog.cpp, fog.h and menu layout in full. Reviewed the fog discovery and application code, settings and menu diffs, and skimmed the manifest, generated ABI, tests, translations and remaining changed files; not every changed code file was read in full.; nothing run (a code review). **Checked and fine:** - The menu places Volumetric Fog under Graphics → Detail after Simulated turf. - The settings code retains separate global and per-area Custom values and provides layer resets. - The author reports prior Windows gameplay coverage and game-free checks on both Windows and WSL. **Testing:** No commands that build or run the project were executed. The author reports Windows AMD gameplay coverage and passing focused checks; CI is still running. **Overlaps and merge order:** PR #1377 is described as complementary fog-lighting performance work; no required merge order is established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -0,0 +556,4 @@
}
was_overridden = wanted;
}
// Let an active scan finish with the latest settings. Restart from the beginning when the area changes.
Member

L6 (should fix): Discovery stops after one scan, so palettes loaded later in the same area are not picked up.

When: With an override active, if the scan finishes before a palette is loaded and neither the area nor a fog option subsequently changes, no new scan starts. That palette keeps the game's fog values until another scan is triggered.

Do: Track palette loads or schedule further bounded discovery while overrides are active, and cover a palette arriving after a completed scan in the fixture.

**L6** (should fix): Discovery stops after one scan, so palettes loaded later in the same area are not picked up. *When:* With an override active, if the scan finishes before a palette is loaded and neither the area nor a fog option subsequently changes, no new scan starts. That palette keeps the game's fog values until another scan is triggered. **Do:** Track palette loads or schedule further bounded discovery while overrides are active, and cover a palette arriving after a completed scan in the fixture.
Author
Contributor

Replying to L6. The 250 ms repeat scan was originally added to catch palettes loaded after the first discovery pass. Each completed pass then scheduled another pass while an override was active, even in a settled scene with unchanged fog settings. Slicing each pass across frames capped the work per frame, but the repeated guest-memory reads still cost frame time.

In a same-build Hyrule Field diagnostic on Windows, pausing just the repeat scans raised throughput from 155.9 to 168.8 FPS and reduced p99 frame time from 8.40 to 7.23 ms. After the fix, the two-pair comparison measured 168.9 median FPS on main and 169.5 with Custom fog, within the observed run-to-run spread. That is why 6079531c removed timer-driven rediscovery. The remaining 250 ms timer samples the area. A fog discovery pass starts when an override becomes active, the area changes, or a fog edit arrives after the previous pass. Its targets and writes are limited to validated Ground and Sky fog data.

The fixture already loads a second fog palette after a completed scan and checks that discovery stays idle until a fog setting changes, then applies the override to that palette. L6 identifies the case where there is no subsequent change. A notification when a fog palette loads could cover that case and keep discovery idle between relevant events.

Replying to [L6](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2423#issuecomment-103022). The 250 ms repeat scan was originally added to catch palettes loaded after the first discovery pass. Each completed pass then scheduled another pass while an override was active, even in a settled scene with unchanged fog settings. Slicing each pass across frames capped the work per frame, but the repeated guest-memory reads still cost frame time. In a same-build Hyrule Field diagnostic on Windows, pausing just the repeat scans raised throughput from 155.9 to 168.8 FPS and reduced p99 frame time from 8.40 to 7.23 ms. After the fix, the two-pair comparison measured 168.9 median FPS on main and 169.5 with Custom fog, within the observed run-to-run spread. That is why `6079531c` removed timer-driven rediscovery. The remaining 250 ms timer samples the area. A fog discovery pass starts when an override becomes active, the area changes, or a fog edit arrives after the previous pass. Its targets and writes are limited to validated Ground and Sky fog data. The fixture already loads a second fog palette after a completed scan and checks that discovery stays idle until a fog setting changes, then applies the override to that palette. L6 identifies the case where there is no subsequent change. A notification when a fog palette loads could cover that case and keep discovery idle between relevant events.
erlo68 force-pushed feat/fog-controls from 805387e046
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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 ce646d9ea2
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 7s
2026-12-04 18:47:18 +00:00
Compare
Author
Contributor

Review update on ce646d9e after testing 926458da on Windows with the usual saves.

  • L6. Late fog palettes. Added the fog.paletteLinked worker hook and a bounded queue of palette addresses. The presenting thread validates the reported palette and its Ground and Sky links, then applies the active override directly. The 250 ms timer samples area changes. The existing bounded scan runs on override activation, an area change, a fog edit after the last pass, or queue overflow. The fixture reproduces the same-area late-load failure before the fix and verifies that the load notification applies both the enable override and Custom density with the scan cursor idle. It also checks that a notification without a valid environment palette causes no writes. L6 review
  • Settings storage. Removed the pre-mod fog_settings.ini copy step, one-time import and marker, and legacy fog-row migration. Fog settings use the standard profile settings.toml under system/fog. Settings-file comment
  • L7. Main conflicts. Resolved the Graphics guide and menu test conflicts and rebased the approved changes onto 3b3ea2cb. Kept main's pop-out callbacks at version 94, appended game_fog_palette_next at MKWVK_API_VERSION 95, and updated the host initializer and ABI order test. Forgejo reports the PR is mergeable.

The Windows host and renderer built on ce646d9e. The fog fixture, ABI check, PCIe check, and Fog catalogue check passed. The pop-out paint assertion in test_ui_renderer.py also fails on exact main. On 926458da, both Linux renderer variants linked, and exact main reproduced all 168 Windows mise failures. The Linux strict suite passed the fog fixture, settings keys, and ABI checks, with missing test headers and lifter timeouts among its failures.

L5 remains open. Windows AMD gameplay and Linux build and game-free checks are recorded in the description. Linux, NVIDIA, and Steam Deck still need in-game preset changes, an area transition, restoration to Game's, and restart coverage. Linux discovery-time resident memory and frame pacing also remain to be measured.

Review update on `ce646d9e` after testing `926458da` on Windows with the usual saves. - **L6. Late fog palettes.** Added the `fog.paletteLinked` worker hook and a bounded queue of palette addresses. The presenting thread validates the reported palette and its Ground and Sky links, then applies the active override directly. The 250 ms timer samples area changes. The existing bounded scan runs on override activation, an area change, a fog edit after the last pass, or queue overflow. The fixture reproduces the same-area late-load failure before the fix and verifies that the load notification applies both the enable override and Custom density with the scan cursor idle. It also checks that a notification without a valid environment palette causes no writes. [L6 review](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2423#issuecomment-103022) - **Settings storage.** Removed the pre-mod `fog_settings.ini` copy step, one-time import and marker, and legacy fog-row migration. Fog settings use the standard profile `settings.toml` under `system/fog`. [Settings-file comment](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2423#issuecomment-103021) - **L7. Main conflicts.** Resolved the Graphics guide and menu test conflicts and rebased the approved changes onto `3b3ea2cb`. Kept main's pop-out callbacks at version 94, appended `game_fog_palette_next` at `MKWVK_API_VERSION` 95, and updated the host initializer and ABI order test. Forgejo reports the PR is mergeable. The Windows host and renderer built on `ce646d9e`. The fog fixture, ABI check, PCIe check, and Fog catalogue check passed. The pop-out paint assertion in `test_ui_renderer.py` also fails on exact main. On `926458da`, both Linux renderer variants linked, and exact main reproduced all 168 Windows `mise` failures. The Linux strict suite passed the fog fixture, settings keys, and ABI checks, with missing test headers and lifter timeouts among its failures. **L5 remains open.** Windows AMD gameplay and Linux build and game-free checks are recorded in the description. Linux, NVIDIA, and Steam Deck still need in-game preset changes, an area transition, restoration to **Game's**, and restart coverage. Linux discovery-time resident memory and frame pacing also remain to be measured.
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The late-palette notification addresses the reported discovery gap, and the branch is mergeable. In-game Linux or other-vendor coverage and Linux discovery memory measurements remain outstanding, as does head CI. Recommend approval; not approved on the forge.

Adds live volumetric fog presets and Custom profiles, saved through the standard settings path. Event-driven palette discovery avoids the earlier repeated scans but adds resource tracking and platform-specific discovery code.

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

  • L5: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. When: Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. Do: After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery.

Since the last review (on 805387e046)
Resolved: L6 (Discovery stops after one scan, so palettes loaded later in the same area are not picked u…); L7 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L5 (The changed resource and platform paths have only been exercised in game on Windows with A…)

Checks: Still running: 11 checks.

Also noticed (2; not asked for, not blocking)
  • The final resource identity check and write are not synchronized with resource lifetime; the existing code comments acknowledge the remaining interval.
  • The current-head Hyrule Field comparison and same-area late-load gameplay check remain pending.
More: does it help, other systems, switches, what was read

Does it help: Unproven on the current head. The earlier Windows AMD comparison measured 167.6 versus 169.3 median FPS, a 1.0% difference within run-to-run spread; gameplay checks showed the controls working on Windows AMD.

Other systems: The palette and resource paths affect Windows and Linux and all GPU vendors. Windows AMD gameplay and Linux builds and game-free checks are reported; Linux and other-vendor gameplay, Linux discovery memory and frame pacing remain unverified.

Switches: Adds a volumetric fog master control, default off, and presets defaulting to Game's; Custom settings default to the game's values. The defaults preserve the original appearance. No new environment switch identified.

Reviewed: ce646d9ea2 against 3b3ea2cb33: Read AGENTS.md, CONTRIBUTING.md, the pull request template, fog_settings.h, fog_palettes.rs, sites.toml and the displayed host ABI changes in full. Skimmed the commit list and prior settings diff; the remaining changed files and referenced developer standards were not read in full.; nothing run (a code review).

Checked and fine:

  • The notification queue has a bounded overflow fallback to a discovery pass.
  • The renderer ABI version is bumped to 95 and the host initializes the appended callback.

Testing: No commands from the project or tests were run. Reported focused fixtures and Windows builds passed; the listed head CI checks are still running.

Overlaps and merge order: PR #1377 covers complementary fog-lighting performance work; no merge order was established.


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 late-palette notification addresses the reported discovery gap, and the branch is mergeable. In-game Linux or other-vendor coverage and Linux discovery memory measurements remain outstanding, as does head CI. Recommend approval; not approved on the forge. Adds live volumetric fog presets and Custom profiles, saved through the standard settings path. Event-driven palette discovery avoids the earlier repeated scans but adds resource tracking and platform-specific discovery code. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The changed resource and platform paths have only been exercised in game on Windows with AMD hardware. *When:* Linux memory mapping and resource discovery, and the effect of live changes on the other Tier 1 systems, have no reported game run. **Do:** After fixing discovery and synchronization, run preset changes, area transitions, restoration and restart on Linux, NVIDIA and Steam Deck; record frame pacing and memory during discovery. **Since the last review** (on 805387e046c4) Resolved: L6 (Discovery stops after one scan, so palettes loaded later in the same area are not picked u…); L7 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L5 (The changed resource and platform paths have only been exercised in game on Windows with A…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The final resource identity check and write are not synchronized with resource lifetime; the existing code comments acknowledge the remaining interval. - The current-head Hyrule Field comparison and same-area late-load gameplay check remain pending. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the current head. The earlier Windows AMD comparison measured 167.6 versus 169.3 median FPS, a 1.0% difference within run-to-run spread; gameplay checks showed the controls working on Windows AMD. **Other systems:** The palette and resource paths affect Windows and Linux and all GPU vendors. Windows AMD gameplay and Linux builds and game-free checks are reported; Linux and other-vendor gameplay, Linux discovery memory and frame pacing remain unverified. **Switches:** Adds a volumetric fog master control, default off, and presets defaulting to Game's; Custom settings default to the game's values. The defaults preserve the original appearance. No new environment switch identified. **Reviewed:** ce646d9ea2ca against 3b3ea2cb33e0: Read AGENTS.md, CONTRIBUTING.md, the pull request template, fog_settings.h, fog_palettes.rs, sites.toml and the displayed host ABI changes in full. Skimmed the commit list and prior settings diff; the remaining changed files and referenced developer standards were not read in full.; nothing run (a code review). **Checked and fine:** - The notification queue has a bounded overflow fallback to a discovery pass. - The renderer ABI version is bumped to 95 and the host initializes the appended callback. **Testing:** No commands from the project or tests were run. Reported focused fixtures and Windows builds passed; the listed head CI checks are still running. **Overlaps and merge order:** PR #1377 covers complementary fog-lighting performance work; no merge order was established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/fog-controls 2026-12-04 18:58:18 +00:00
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 7s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2423
No description provided.