Repository navigation
Fulgora: one 12-way tile argmax, ocean included; terrain matches the game on every pixel - #537
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…0 -> 0 px The game's generateBasicTiles runs a single argmax over all twelve candidate tiles (four oil-ocean, eight land). The port tested the ocean first and let a positive ocean score win outright, which painted shallow ocean over the 20 pixels where rock scores higher at seed 123456. - fulgora_ocean: add ocean_probabilities (the four formulas, written once); ocean_tile calls it. - fulgora_catalog: resolve_tile is one strict-> f32 argmax from -inf over [shallow, shallow-2, deep, deep-2, LAND_ORDER..], fallback LAND_ORDER[0], winner through poison::index_result(i, 12). Candidate order only decides exact ties and is not settled (commented). land_probabilities rounds every step to f32, constants included. - The Fulgora land mask (render.rs) and checksum field 41 (lib.rs) follow the same joint winner, so the island finder and the terrain view agree. - Tests: ocean_short_circuits_the_land_argmax checked nothing under the new rule; replaced by a_positive_ocean_score_loses_to_a_larger_land_score and an_ocean_score_that_beats_every_land_score_wins. - docs/noise/tile-correction-NOTES.md: Nauvis and Vulcanus are 0 px now. Moved counts, old -> new: - wasmFulgoraRenderParity terrain vs game PNG: 20 -> 0 differing pixels - fulgoran_dust_probability exact f32 matches: 46 -> 75 of 101 - fulgoran_rock_probability exact f32 matches: 78 -> 100 of 101 - tier-2 folds landDust, landRock, landDunes, landSand (both cases) re-recorded - unchanged: get_tile fixture 4915/7/11, tier-3 and islands freezes Landmask view speed (12 island windows, median of 15, interleaved): 0.998x to 1.039x at 8 tiles/px, 1.005x to 1.017x at 2 tiles/px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC
wormeyman
force-pushed
the
fulgora-joint-tile-argmax
branch
from
November 25, 2026 20:48
703cbe7 to
113bb38
Compare
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This was referenced Nov 26, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #535. Every planet's terrain render now matches the game's preview on every pixel. Fulgora goes from 20 differing pixels to 0, joining Nauvis, Vulcanus and Aquilo.
The finding
BasicTilesMapGenerationTask::generateBasicTiles, at 0x1ca6ef0;compilewith no water filter;ocean_tilegave a positive score, ocean won before any land tile was scored.Changes
tiles/fulgora_ocean.rs: a newocean_probabilitiesreturns the four ocean scores, and the formulas now live only there.ocean_tilestays as the ocean-only test, because theget_tilefixture uses it.tiles/fulgora_catalog.rs:resolve_tileis one strict>f32 argmax from -inf, over the four ocean tiles and thenLAND_ORDER. The winner goes throughpoison::index_result(i, 12), so the poison gate still turnsputs_every_fulgora_tile_where_the_game_puts_itred.land_probabilitiesnow rounds every step to f32, constants included.render.rslandmask arm,lib.rsfield 41) use the same winner, so island outlines agree with the terrain.ocean_short_circuits_the_land_argmaxpassed under both rules, so it checked nothing. It's replaced by two tests: a positive ocean score that loses to rock, which is the case the old rule gets wrong, and an ocean score that wins.wasmFulgoraRenderParity.spec.tsgoes fromtoBe(20)totoBe(0), with a history line.What moved
fulgoran_dust_probabilityexact f32fulgoran_rock_probabilityexact f32landDust,landRock,landDunesandlandSandfolds in both slider cases.get_tilefixture (4915 / 7 / 11);Nothing got worse.
Checks
pnpm vp test: 131 files, 1,357 tests passed.scripts/verify-rust.sh: passed, including the poison gate and the wasm byte match. cargo-deny isn't installed locally.vp check,check:vueandclippy -D warningsare clean.engine.wasmrebuilt to the same bytes; the Fulgora render, Fulgora parity and island specs pass, 43 of 43.This PR and the overlay PR coming next both touch
engine.wasm, so whichever merges second gets rebased and rebuilt.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC