Repository navigation
Vulcanus: terrain matches a real surface through tile correction (#454) - #565
Merged
Merged
Conversation
At one tile per pixel on a whole-tile origin, the Vulcanus render runs tile correction through correct_window (lazy raw reads, no-op walks skipped) over the window's chunks plus one, in columns order, with a Neighbours table for lava and lava-hot, which allow only each other. Every view draws this terrain; any other zoom draws the raw argmax. - Two real-surface fixtures (seed 123456, derived surface seed 1249936247, ore controls at size 0, terrain-only, 0 entities): one radius request, and chunks made strictly one at a time row by row (-each). The probe takes FMW_PLANET=vulcanus. - tiles/vulcanus_correction.rs: by name against the radius capture, raw 2,053, layers only 217, with the may-touch rule 1, at (-127, 95). That tile is the edge of the request: corrected in requested_correction_order, both captures match at all 65,536 tiles, and a scratch radius-18 capture of the whole 1024 window at all 1,048,576 (columns order: 3, at its left edge). - No exact argmax ties anywhere in the 1024 window. - The preview PNG becomes a reference: 0 -> 39,950 pixels, inside the fixture window exactly where the real surface differs from it plus the one edge tile. 11 tier-3 rows moved, all 1 tile/px windows, every moved pixel a corrected terrain pixel. No tier-2 fold moved. - Planted breaks: no may-touch rule 1 -> 217 px, no margin 1 -> 72 px (tiles stop stitching), poison 1 -> 64,368 tiles. - Cost, Node, one thread, median of 3 interleaved: app default (1024 'all', 128 px tiles) raw 25.7 s, eager correction 84.3 s (3.3x), correct_window 51.9 s (2.0x), with eager and lazy byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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 4 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. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This was referenced Nov 27, 2026
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.
Vulcanus's terrain now matches a real Vulcanus surface, where before it matched only the game's map preview. It takes tile correction through the shared lazy
correct_window, plus oneallowed_neighborsrule: lava and lava-hot may touch only each other. This is the last of the four planets. Gleba, Aquilo, Nauvis and Fulgora are already on main.Against a real surface (spawn window, tiles -128..127)
The fixtures are
oracle-vulcanus-real-surface.seed123456.json(a radius request) and-each(chunks made strictly one at a time). Both were captured on 2.1.23 at seed 123456 with the terrain-only mod; both re-capture byte-identical and have PROVENANCE entries.The one tile, at (-127, 95), is the request edge, not a correction error. The renderer corrects in columns order, as Gleba, Aquilo, Nauvis and Fulgora do. The game's own queue order (
requested_correction_order, decoded for Fulgora in #564) reproduces the radius capture and the-eachcapture at every tile. It also reproduces an uncommitted radius-18 capture of the whole 1024 window at all 1,048,576 tiles, where the columns-order renderer is off at 3 tiles, all at x -512 to -509. In that larger capture, (-127, 95) is lava-hot, the same as our render.Planted breaks
POISONED_TESTS, about 49 s for the pair, under the slowest poisoned test (68 s).-eachcapture corrected in columns order instead of its own order: non-zero.What moved
Cost and what users see
The app renders at 1 tile per pixel, so every user gets the corrected terrain.
all, 64 tiles of 128terrain, same tilesThe worker pool divides the app figures by its worker count. What remains is near the floor for 128 px tiles: each corrects 6x6 chunks to draw 4x4. Whether larger worker tiles help is a separate, measured follow-up.
Not covered yet: rocks are placed after correction on a real surface, and their hot and cold tile lists could see corrected tiles. The overlays still read the raw argmax.
Gate
pnpm run verify:lint, the fullpnpm vp test(1,371 passed) andscripts/verify-rust.shpass locally.cargo denyis not installed on hammond; CI runs it.Refs #454.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ