Skip to content

dev: the hang of world-making fixed (build 487), perf gate rule, four plan tests - #527

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

k06a merged 2 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"

One merge of the combined state: #526 as build 487 (a world no longer hangs while its railway is planned; the perf gate's verdict rule; plan, villa, roomy and hut tests load the game again).

Checked on this state: tools/rail.mjs test on the three seeds that hung, the whole-source checks (undef, genv, dupkeys), and the page loaded 14 times with random start worlds without a stall.


Generated by Claude Code

claude and others added 2 commits December 2, 2026 22:46
…ells noise from a slow build; four plan tests load the game again

- Rail.make (35_track.js): every plan of a loop costs it a town or a side of its last town, so the planning ends (fix by the streets
  thread; seeds 5150, 260429754 and 20261146 never came back, the start screen froze on such a seed). tools/rail.mjs test counts the plans.
- tools/perf.lib.mjs: a difference counts when the turns of the two builds stand apart, eight turns each; two turns are a first look
  and a suspicion gets more turns of its scenario alone (ab). The same build failed 65% of the PR runs by the old rule.
  perf.yml keeps every turn's report as an artifact.
- plan, villa, roomy tests: 09_core.js in their file lists (PADB); hut.test loads the whole game instead of a hand-kept list.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdrPyoU594YpAeAd6En
A world no longer hangs while its railway is planned; perf gate: noise is not a slow build

Merge queue: build 487
@k06a
k06a merged commit 8868263 into main Dec 2, 2026
2 checks passed
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Screenshots of build v487

🚂 The world 20261146 with a house in a town is made and can be entered: the game froze for good while it planned the railway of the region next to it

The world 20261146 with a house in a town is made and can be entered: the game froze for good while it planned the railway of the region next to it

All of them are assets of the v487 release.

@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).

✅ No regression against main

More turns to settle a suspicion: tunnel +2 (a difference counts when the turns of the two builds stand apart, 8 turns each).

scenario metric main PR Δ threshold turns
– no change beyond the noise
scenario CPU mean p95 max slow/min spikes/min miss sync gens draws top systems (ms/frame)
idle 6.04 9.30 46.6 3.75 18.7 0% 2.00 395 Town.update 1.05⚠️, Land.drawPass 0.89, Town.draw 0.43, BigMap.sample 0.40
night 4.71 7.95 21.2 0.00 8.99 0% 0.00 372 Town.update 0.66, Land.drawPass 0.61, Town.draw 0.41, BigMap.sample 0.29
drive 32.2 72.0 327 331 134 42% 97.5 121 Land.lightTick 12.7⚠️, Land.gen 4.00⚠️, Land.meshChunk 2.00⚠️, Land.lodData 1.67
flight 13.7 32.6 468 79.7 117 0% 40.0 54.5 Land.lodData 2.96, Folk.update 1.94, BigMap.sample 1.83, Land.gen 1.05⚠️
tunnel 13.3 46.0 314 105 117 0% 7.00 274 Land.lightTick 2.04⚠️, Land.meshChunk 1.23⚠️, Folk.update 0.98, Town.update 0.91

Over budget (ms/frame, budget): drive Land.lightTick 12.71 > 1 · drive Land.gen 4.00 > 0 · flight Land.gen 1.05 > 0 · tunnel Land.lightTick 2.04 > 1 · drive Land.meshChunk 2.00 > 1 · tunnel Land.meshChunk 1.23 > 1 · tunnel Land.gen 0.10 > 0 · idle Town.update 1.05 > 1


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