Skip to content

Preview: 256-pixel worker tiles by default - #568

Merged
wormeyman merged 1 commit into
mainfrom
preview/tile-size-256
Nov 27, 2026
Merged

wormeyman merged 1 commit into
mainfrom
preview/tile-size-256

Conversation

@wormeyman

Copy link
Copy Markdown
Collaborator

DEFAULT_TILE_SIZE goes 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:

workers Nauvis Vulcanus Fulgora Aquilo Gleba
15 (16 threads): 128 -> 256 1156 -> 1128 10707 -> 10820 1025 -> 1051 339 -> 312 777 -> 692
7: 128 -> 256 1784 -> 1548 15986 -> 13990 1544 -> 1397 487 -> 411 1134 -> 916
4: 128 -> 256 2897 -> 2196 25794 -> 19394 2504 -> 1930 808 -> 564 1838 -> 1266

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

Gate

pnpm run verify:lint and the full pnpm vp test pass. No Rust changed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ

`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
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: facb949b-e5c8-4005-82d5-19d93ef51f6e
Commits

Reviewing files that changed from the base of the PR and between 7c13a6b and 21997cc.

Files selected for processing: 1

  • src/components/useElevationPreview.ts
  • 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

@claude

claude Bot commented Nov 27, 2026

Copy link
Copy Markdown

Code review

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

@wormeyman
wormeyman merged commit f4eb7be into main Nov 27, 2026
16 checks passed
@wormeyman
wormeyman deleted the preview/tile-size-256 branch November 27, 2026 05:54
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