Skip to content

Gleba and Aquilo: apply chunks in columns order, as the game does (#589) - #590

Merged
wormeyman merged 1 commit into
mainfrom
columns-apply-order
Nov 28, 2026
Merged

wormeyman merged 1 commit into
mainfrom
columns-apply-order

Conversation

@wormeyman

@wormeyman wormeyman commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

Gleba and Aquilo now apply chunks in columns order: x outer, y inner. They used to apply them row-major. A new columns helper sits beside rows in both placement modules. The render, real_surface_window and the Gleba cliff obstacle test ("an earlier chunk's cliffs") all follow it. The doc comments, docs/rust-wasm-port.md and docs/noise/entity-generation-NOTES.md are updated. engine.wasm is rebuilt.

Evidence

Issue #589 watched the game finish one big chunk request: 1,173 of 1,173 chunks came in columns order on Nauvis, Gleba and Aquilo. Before that, neither capture could tell rows from columns.

What did not move

Nothing. Every frozen count, digest and pixel count is unchanged. The whole-window replays in release still score:

  • Aquilo: 635 of 635 (632 of 635 without the ring)
  • Gleba cliffs: 2,484 of 2,484 cliffs, 35,228 of 35,230 other entities
  • Gleba nests: 67 of 67 nests, 35,225 of 35,227 others

rows stays as a test control. New tests show both planets score the same under rows order, so these captures cannot tell the two orders apart. That is a gap in the grade, and the tests and docs say so.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c

Summary by CodeRabbit

  • Bug Fixes
    • Updated terrain and entity generation on Gleba and Aquilo to process chunks in columns order, aligning placement and rendering behavior with the observed game order.
  • Tests
    • Added comparisons using rows order as a control; captured entity results match across the tested windows.
  • Documentation
    • Updated generation notes to describe columns order and clarify where rows order is retained for comparison.

The game finishes one big chunk request in columns order (x outer, y
inner): 1,173 of 1,173 chunks on Nauvis, Gleba and Aquilo (#589). Gleba and
Aquilo applied chunks row-major. Both now use a new `columns` helper,
including the Gleba cliff obstacle's "earlier chunk" test.

`rows` stays as a test control, and the tests say it stays green on these
captures: they score the same under either order, a gap in the grade.

No frozen count, digest or pixel count moved. engine.wasm is rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Placement, fixture replay, and Gleba rendering now apply chunks in columns order. Replay helpers retain rows order as a test control, and the documentation describes the updated ordering and test results.

Changes: Chunk application order

Layer / File(s) Summary
Define and apply columns order
crates/fmw-noise/src/placement/aquilo.rs, crates/fmw-noise/src/placement/gleba.rs, crates/fmw-noise/src/placement/gleba_cliffs.rs
Aquilo and Gleba placement use columns order. Gleba adds a columns helper, retains rows as a test control, and compares cliff and entity chunks by (x, y).
Wire replay and rendering
crates/fmw-noise/src/fixtures/*, crates/fmw-wasm/src/render.rs, docs/noise/entity-generation-NOTES.md, docs/rust-wasm-port.md
Fixture replays and Gleba rendering use columns order. Aquilo and Gleba replay tests exercise rows order as a control. Documentation updates the reported order and replay results.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

Merge Risk: Minimal · up to f4a75 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: Gleba and Aquilo chunk application now uses columns order (x outer, y inner) instead of row-major order, matching the order observed in the game (#589). The raw summa…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: Gleba and Aquilo chunk application now uses columns order (x outer, y inner) instead of row-major order, matching the order observed in the game (#589). The raw summary and PR objectives both confirm this is the primary change across placement, rendering, fixtures, and docs. The title is specific, single-sentence, and free of vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8f62e25f-3822-49c1-8221-871e058b161d
Commits

Reviewing files that changed from the base of the PR and between 5786070 and f4a7535.

Files ignored due to path filters: 1

  • src/noise/wasm/engine.wasm is excluded by !**/*.wasm
Files selected for processing: 11

  • crates/fmw-noise/src/fixtures/aquilo_real_surface.rs
  • crates/fmw-noise/src/fixtures/gleba_cliffs.rs
  • crates/fmw-noise/src/fixtures/gleba_entities.rs
  • crates/fmw-noise/src/fixtures/gleba_nests.rs
  • crates/fmw-noise/src/fixtures/gleba_plants.rs
  • crates/fmw-noise/src/placement/aquilo.rs
  • crates/fmw-noise/src/placement/gleba.rs
  • crates/fmw-noise/src/placement/gleba_cliffs.rs
  • crates/fmw-wasm/src/render.rs
  • docs/noise/entity-generation-NOTES.md
  • docs/rust-wasm-port.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@claude

claude Bot commented Nov 28, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@wormeyman
wormeyman merged commit 4ec759a into main Nov 28, 2026
17 checks passed
@wormeyman
wormeyman deleted the columns-apply-order branch November 28, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant