Skip to content

dev: hotfix for the freeze of build 481 (#509, build 484) - #511

Merged
k06a merged 4 commits into
mainfrom
dev
Dec 2, 2026
Merged

k06a merged 4 commits into
mainfrom
dev

Conversation

@k06a

@k06a k06a commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Requested by Anton · project thread "Green main and a merge queue"

Hotfix through dev: #509 as build 484.

Build 481 froze in every town with an estate: ReferenceError: STR is not defined in Settle.plan. The version floor (#466) took the constant away, the estates (#494) still read it, and the two merged cleanly as text. #509 takes the always-true branch at both reads and adds tools/undef.test.mjs, which reads the whole source and fails on any name nothing declares.

Checked on the combined tree: undef.test (green, red on main before), farrec.test (195 checks), genv.test (no trace below the floor any more).


Generated by Claude Code

claude and others added 4 commits December 2, 2026 21:04
…easured cost, a worker lives in its page's memory class

Measured in headless Chromium after the cold scenario a worker holds 29-40 MB (heap and buffers); it was counted as 400 MB, so a phone
got none. Now 45 MB each within a third of the budget; the page's budget goes to the worker with the land (small caches there too).
iPhone profile, CPU 4x slower: the 3x3 around the camera 39.8 -> 11.0 s, the whole land not within the scenario -> 52.6 s.
tools/wcount.test.mjs, tools/wcost.bench.mjs; mem.test counts the threads of LodPool itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
…as still read by the estates (every such town threw); undef.test finds any undeclared name in the whole source; farrec.test builds its third world above the floor

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
A worker for phones (generator phase 2); towns with an estate plan again

Merge queue: build 484
@k06a k06a self-assigned this Dec 2, 2026
@k06a
k06a merged commit b8ef0ee into main Dec 2, 2026
1 of 2 checks passed
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

⏱ Performance: this PR against main

Scenarios of src/game/98_perf.js, the two builds by turns on one runner (tools/perf.mjs, CPU side, draws counted not drawn).

❌ Slower than main in 1 gating metric(s)

scenario metric main PR Δ threshold
idle cpu.mean 8.28 5.78 -30% ✅ ±10%
idle cpu.p95 14.5 8.40 -42% ✅ ±15%
idle cpu.max 336 44.3 -87% ✅ ±50%
drive cpu.mean 38.3 31.3 -18% ✅ ±10%
drive spikes/min 29.9 124 314% ⚠️ ±50%
drive miss 0.94 0.38 -60% ✅ ±30%
drive sync gens 297 99.0 -67% ✅ ±30%
drive draws 103 120 17% ❌ ±7%
drive tris 143019 177337 24% ⚠️ ±5%
flight cpu.mean 24.4 13.7 -44% ✅ ±10%
flight cpu.p95 58.8 40.0 -32% ✅ ±24%
flight slow/min 145 87.4 -40% ✅ ±30%
flight draws 58.0 52.5 -9% ✅ ±3%
tunnel cpu.mean 23.3 11.4 -51% ✅ ±10%
tunnel cpu.p95 61.9 44.1 -29% ✅ ±15%
tunnel slow/min 197 92.4 -53% ✅ ±30%
tunnel spikes/min 52.4 170 224% ⚠️ ±50%
tunnel draws 289 272 -6% ✅ ±3%
tunnel tris 685834 632699 -8% ✅ ±5%
scenario CPU mean p95 max slow/min spikes/min miss sync gens draws top systems (ms/frame)
idle 5.78 8.40 44.3 3.75 11.2 0% 3.00 389 Land.drawPass 0.83, Town.update 0.80, BigMap.sample 0.51, Town.draw 0.40
night 4.26 7.55 20.9 0.00 5.99 0% 0.00 359 Land.drawPass 0.58, Town.update 0.47, BigMap.sample 0.30, Town.draw 0.27
drive 31.3 69.1 366 337 124 38% 99.0 120 Land.lightTick 12.6⚠️, Land.gen 3.77⚠️, Land.meshChunk 1.94⚠️, Land.lodData 1.60
flight 13.7 40.0 481 87.4 165 0% 7.00 52.5 Land.lodData 3.09, Folk.update 1.83, BigMap.sample 1.71, Lift.update 0.74
tunnel 11.4 44.1 244 92.4 170 0% 0.50 272 Land.lightTick 1.86⚠️, Land.lodData 1.18, Land.meshChunk 1.03⚠️, Town.update 0.80

Over budget (ms/frame, budget): drive Land.lightTick 12.56 > 1 · drive Land.gen 3.77 > 0 · drive Land.meshChunk 1.94 > 1 · tunnel Land.lightTick 1.86 > 1 · flight Land.gen 0.15 > 0 · tunnel Land.meshChunk 1.03 > 1 · idle Land.gen 0.02 > 0 · tunnel Land.gen 0.01 > 0


Generated by Claude Code

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