Repository navigation
Fulgora roads and ruins: round every step to f32 (#521) - #528
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 37 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. |
This was referenced Nov 25, 2026
Merged
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
19 of 20 tasks
wormeyman
force-pushed
the
f32-521-nauvis-resources
branch
from
November 25, 2026 15:15
44acd6b to
0202fc1
Compare
fulgora_roads: spots_prebanding, pyramids_banding, the paving chain and road_dust now round each operation to f32 in the Lua's order. Comparison literals (0.03, 0.05, 0.06, 0.1, 0.2, 0.6, 0.8, 1.3, 0.08) are narrowed before the compare, 0.85 and 0.9 before the multiply, and the two lerps use lerp_f32. min and max go through min2/max2. fulgora_ruins: ruins_walls rounds its subtraction, and all four tile_ruin expressions round each step left to right, with 0.2 and 0.3 narrowed. Tier 1 (oracle-fulgora-ruins, 101 positions): spots_prebanding 98 -> 101, spots_banding 50 -> 101, tile_ruin_paving 97 -> 101, tile_ruin_conduit 96 -> 101, tile_ruin_machinery 94 -> 101, fulgoran_dust_probability 45 -> 46. Nothing went down. The ruins unit test now feeds an f32 value for road_paving_2c, since the outputs are f32 now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC
34 Fulgora rows moved, all road, ruin and land-tile fields this branch rounds. No row moved on any other planet, and no key was added or removed. No tier-3 render row moved either, so Fulgora's 20-pixel terrain gap (#453) is not in these fields. The full vitest suite passes after the re-record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC
wormeyman
force-pushed
the
f32-521-fulgora
branch
from
November 25, 2026 15:23
76e01e1 to
c53d81c
Compare
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.
Stack 3 of 5 for #521. Base #527. Merge that first; this then retargets to
main.This rounds Fulgora's roads and ruins to f32 at every step, in the Lua's order. The other Fulgora modules already did.
Results (tier 1, of 101 positions)
fulgora_spots_bandingfulgora_spots_prebandingfulgora_tile_ruin_pavingfulgora_tile_ruin_conduitfulgora_tile_ruin_machineryfulgoran_dust_probabilityNo count went down. Every other field in the test was already 101 and stays there.
Not #453
These fields feed the artificial-tile scores, so they could have touched Fulgora's 20-pixel terrain gap. They did not. No tier-3 render row moved, and the frozen terrain count is still 20.
Notes for review
ruins_wallsis now rounded to f32. An old comment said not to, because the TypeScript did not. The game's value is f32. Tier 1 is 101 either way, so only tier 2 shows it.f64::minandf64::maxbecamemin2andmax2, with the argument order unchanged.f64::from(0.9f32), because the outputs are f32 now.Checks
cargo test -p fmw-noise --lib: 538 passed.scripts/verify-rust.sh: passed.engine.wasmrebuilt. Tier 2: 34 Fulgora rows re-recorded. No other planet moved.pnpm vp test: green.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC