Skip to content

Labs: far boards a pixel's worth; TreePM for the clumping box - #353

Merged
reportbase merged 3 commits into
mainfrom
claude/lab-far-and-treepm
Dec 1, 2026
Merged

reportbase merged 3 commits into
mainfrom
claude/lab-far-and-treepm

Conversation

@reportbase

Copy link
Copy Markdown
Owner

"1 2" from the list of what next.

1. Far boards.

  • Zoomed out over Gravity lab, the small dots hit the field's 48,000-per-kind limit, so far boards showed no dots at all.
  • A board under 200 px now draws bodies of one kind and colour that share a 2-pixel square as one dot, as large as their areas added (labThin, run in the workers).
  • Gravity lab's small dots now have room for 240,000 (itemCaps). At the farthest zoom 66,000 are drawn.
  • CLAUDE.md's drawing rule gains one line for this.

2. TreePM for the clumping box.

  • The pull is split by a one-cell Gaussian: the mesh carries the far part (CIC blur divided out, spectral gradient), and pairs within 4.5 rs are summed with erfc factors from a table, through a cell list.
  • A single mass's pull matches Newton's within 4% below a cell and past it.
  • Energy drift over 30 s is 3.6% of the start's (was 6–14%), or 0.5% of the warmed gas's motion.
  • Cost is about 3× the mesh alone: 23 ms a step for 2,000 clumped bodies.

Tested: all part-5 lab checks pass locally, including the new checks: the merge on a far board (793 → 215 pieces at 60 px, area kept), the pull under a cell, and the clumping energy read both ways. Not run: other smoke parts or the full smoke test. Probes measured the zoom-out piece counts.


Generated by Claude Code

@reportbase
reportbase merged commit 34856e5 into main Dec 1, 2026
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.

2 participants