feat(vk): add volumetric fog controls #2423
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2423
Loading…
Reference in a new issue
No description provided.
Delete branch "erlo68/Longshot:feat/fog-controls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.iniwriter, copy step, and import code are gone from the feature. Settings-file reviewCloses #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, andgame/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
926458dawith 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
8ceb065band 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. Windowsmise run testreported 684 passes, 168 failures, and 52 skips. Exactmainat9f76a437reproduced all 168 failing checks and also failedtest_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 onto3b3ea2cb, the Windows host and renderer built together. The fog fixture, program-hooks ABI check, PCIe check, and Fog catalogue check passed.test_ui_renderer.pyfailed 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
ca5d3078also passed the Windows menu and WSL 2 system-mod checks.On the previous tested base,
9a1f19b4:mise run testwith 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 at6b856df5. All 66 menu tests passed.test_longshot_ctl.pyandtest_pipeline_cache_save.pypassed when rerun in isolation. The fog fixture and corrected translation check also passed on the final head.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, andtest_lifter.pythrough the same formatter and generatedgame/game.hchecks.Still to test:
Measurements
These are the last completed measurements, on main
9a1f19b4and fog6b856df5. 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 abcollected two interleaved pairs with 30 seconds of renderer frame traces per run after warm-up.9a1f19b46b856df5The 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
settings.toml. Density controls use steps of 0.1 and include Game's for the original value.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). See the matched failures and successful retries above.main, or Measurements says why there is nothing to measure. See the tested base above.third_party/untouched.When it applies
tests/that reads changed source is updated.MKWVK_API_VERSIONbumped (MkwVkHostorMkwVkRendereringpu/vk/vk_api.hchanged).Assisted-by:trailers on the fog commits.Ready to merge
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.
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.
@review
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.
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.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.
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.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)
@fixdoes its part first: Replace the full-window scan with resource-load tracking to shrink the platform and pacing impact.)@fixcan 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:
dc7f3fa70fagainst90fae88c13: 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:
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.
@ -0,0 +142,4 @@dirty_at = host && host->now_ns ? host->now_ns() : 0;}void load_config() {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;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 @@#elsewhile (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);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++")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.
@fix
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
@fixchangedI changed this pull request: the new head is
968c11fa82. It was already up to date withmain. I edited its description to match the change.Changed
Changed in part (the rest is for the author)
Not done
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)
Checks: they run again on this head; a failure shows on the pull request.
Also noticed (3; not asked for, not blocking)
dc7f3fa7have not yet been tested in game.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
dc7f3fa7were 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:
968c11fa82against90fae88c13: 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:
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.
968c11fa82def6ddb372Rebased onto current main and pushed the transition/palette, conditional-heading, and guide-capture fixes. Rechecked untouched main
8aa5ab87and current PR headdef6ddb3with 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.Review recheck at
def6ddb3: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.
def6ddb37261b202da74Rebased onto main
9046a8d7and 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
be663a08after 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.61b202da7484a7289e5884a7289e589656810b1eRebased onto
4687ad58and fixed the Fog tab's control bridge entry in42fef5ad. Windows renderer builds, lint, and the fog/menu fixtures passed onf8f1583e. 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.f8f1583e110f3ced96f4Rebased onto
201f8868and completed the matched Windows A/B on0f3ced96. 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.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.WIP: feat(vk): add volumetric fog controlsto feat(vk): add volumetric fog controls361202d35898acee5f980ec1727b7e021930b5bb021930b5bba90881ea46Awesome work! We'll merge this in one mod-api is in :)
a90881ea4689471d13ce89471d13cefafad15a46fafad15a46f064977b146423abc4d9b3947347a6Pushed
6b856df5with 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 is76092c5eand has settings backend conflicts with the tested head. The PR remains open for review.6b856df5662c5c8769d7Rebased onto main at
ca5d3078and 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 on76092c5e.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.2c5c8769d7038e17cfb7Rebased 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.
@review
There's a separate fog_settings.ini, not in standard settings
Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry 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.
@fixor@rebasetry first). (for the author)Should fix (1): not blocking, but worth doing before merging.
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)
@fixcan 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 (
@fixor@rebasetry first).)Checks: Still running: 10 checks.
Also noticed (1; not asked for, not blocking)
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:
805387e046againstca830e8959: 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:
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.
@ -0,0 +556,4 @@}was_overridden = wanted;}// Let an active scan finish with the latest settings. Restart from the beginning when the area changes.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.
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
6079531cremoved 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.
805387e046ce646d9ea2Review update on
ce646d9eafter testing926458daon Windows with the usual saves.fog.paletteLinkedworker 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 reviewfog_settings.inicopy step, one-time import and marker, and legacy fog-row migration. Fog settings use the standard profilesettings.tomlundersystem/fog. Settings-file comment3b3ea2cb. Kept main's pop-out callbacks at version 94, appendedgame_fog_palette_nextatMKWVK_API_VERSION95, 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 intest_ui_renderer.pyalso fails on exact main. On926458da, both Linux renderer variants linked, and exact main reproduced all 168 Windowsmisefailures. 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
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)
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 (
@fixor@rebasetry 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)
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:
ce646d9ea2against3b3ea2cb33: 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:
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.