Repository navigation
Preview: 256-pixel worker tiles by default - #568
Merged
Merged
Conversation
`DEFAULT_TILE_SIZE` goes from 128 (64 tiles at the 1024 preview) to 256 (16 tiles). Each worker tile corrects its terrain over its own chunks plus a one-chunk margin, and neighbouring tiles redo each other's margins, so fewer, larger tiles repeat less of it. Measured in headless Chrome, default view, medians, all five planets: a tie to 11% faster at 15 workers, 10-20% at 7 and 24-31% at 4. The switch waited on #566 (a Nauvis rock seam only 256-pixel tiles showed), fixed in #567; `test/tiledEqualityAppGeometry.spec.ts` renders this geometry at both sizes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
|
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 39 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 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.
DEFAULT_TILE_SIZEgoes from 128 to 256, so the 1024 px preview splits into 16 worker tiles instead of 64. Rendered output is unchanged. This is a one-line change plus its doc comment.Why
At 1 tile per pixel every worker tile corrects its terrain over its own chunks plus a one-chunk margin (#560, #562 to #565), and neighbouring tiles redo each other's margins. Fewer, larger tiles repeat less of that work.
Measured in headless Chrome on the default view, all five planets, seed 123456. The tile sizes were interleaved, with one warm-up and then 7 to 9 timed runs. Median ms:
At 15 workers the change is a tie on three planets (the ranges overlap) and 8-11% faster on Aquilo and Gleba. At 7 workers it is 10-20% faster, and at 4 workers 24-31% faster, on every planet. 512 px was also measured and rejected: it is 40-120% slower at 15 workers, because most workers sit idle.
Output unchanged
test/tiledEqualityAppGeometry.spec.tsrenders the app's real 1024 geometry at both 128 and 256 px and compares each with the whole render.Gate
pnpm run verify:lintand the fullpnpm vp testpass. No Rust changed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ