Repository navigation
Preview: a Fast / High accuracy setting (#589) - #592
Conversation
One global setting beside the preview, "Accuracy: Fast / High", Fast by default, kept in the UI store under fmw.accuracy and saved at once. The preview re-renders when it changes. High is the graded real-surface render, unchanged. Fast places the window's own chunks only, with no ring and no correction margin. Only Gleba's and Aquilo's real-surface entity views read it; terrain and the other views are byte-identical at both settings. ABI v3: a u32 accuracy at offset 56 of the common prefix (0 High, 1 Fast) and four bytes of padding, so COMMON_BYTES is 64 and every block moves by 8. An unknown value is the new BadAccuracy status. The round-trip fixture is now wasm-request.v3.json, re-verified by verify-wasm-request.py. Fast's frozen counts against the real-surface fixtures (1024 window): Gleba all 1,730 px (High 5); Aquilo all 10, resources 3, rocks 7 (High 0). Seams: Gleba 2,177 px over sixteen 256 px tiles, Aquilo 432 over sixty-four 128 px tiles (High 0 on both). The note under entity views: "Entities match this map as the game first generates it. Exploring in a different order can change some of them." Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c
|
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 36 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. 🤖 Generated with Claude Code |
|
@coderabbitai full review |
Action not completed
|
|
@coderabbitai full review |
Action not completed
|
What this does
Adds one setting beside the preview, Accuracy: Fast / High, with Fast as the default. It is kept in
src/store/ui.tsunderfmw.accuracyand saved at once, like the Debug flag. Changing it redraws the picture on screen at the same seed.Only Gleba's and Aquilo's real-surface entity views read it (Gleba trees, resources, cliffs, enemies and all; Aquilo resources, rocks and all). Terrain and the other views draw the same pixels at both settings. Nauvis's real-surface path is not on main yet; it gets the same Fast mode in the next PR.
Under the preview, on views that draw entities (not terrain or elevation), a note in the panel's small caption style:
ABI v3
u32 accuracyat offset 56 of the common prefix (0 = High, 1 = Fast), then au32of padding, so the planet blocks stay 8-aligned.COMMON_BYTES56 -> 64,ABI_VERSION2 -> 3. Every block moves by 8: Fulgora 128, Vulcanus 376, Aquilo 192, Gleba 152, Nauvis 584 bytes.BadAccuracy(7). The TypeScript writer refuses an unknown name.test/fixtures/wasm-request.v2.jsonis nowwasm-request.v3.json. The Nauvis and Gleba arms are Fast, the other three High. Its bytes were checked again bytest/fixtures/verify-wasm-request.py, which now checks the accuracy word and the zero padding word.What Fast costs
Frozen in the parity specs, against the same real-surface fixtures, 1024 window, seed 123456:
all, the map a player getsallresourcesrocksSeams: Gleba's sixteen 256-pixel tiles differ from one Fast render of the window at 2,177 pixels (0.21%), and Aquilo's sixty-four 128-pixel tiles at 432 (0.04%). High stitches to 0 on both, as before. The terrain view is byte-identical at both settings on both planets.
These match the prototype's measurements exactly (Gleba nests arm 1,730; Aquilo 10, 3 and 7).
Planted breaks
test/elevationRenderRequest.spec.ts, which reads the accuracy word the app's request mapping writes for each of the five planets.Timing
The app's own preview (1024 x 1024, seed 123456, the Debug readout), headless Chrome with no DevTools client, hammond (16 threads, 15 workers). Median of 7, the three arms interleaved;
mainis 4ec759a.allterrainallterrainallterrainHigh is main's time, as it should be. Fast halves Gleba and Aquilo
all. Nauvis does not move yet: its real-surface path comes in the next PR. Terrain is the same in every arm.Gate
pnpm run verify:lint, the fullpnpm vp test(120 files, 1,454 tests; the one a11y failure in that run was the new dropdown missing anaria-label, fixed and re-run green) andbash scripts/verify-rust.sh, all green locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1d34pJNr7M9RVWCV2c