Skip to content

Builds 524–526: critics of the world generators, a memory budget with a bottom, trunk lines - #580

Merged
k06a merged 31 commits into
mainfrom
dev
Dec 3, 2026
Merged

k06a merged 31 commits into
mainfrom
dev

Conversation

@k06a

@k06a k06a commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Requested by Anton · project thread

The pass after the final release train: the PRs that became ready while #575 was being checked, combined on dev by hand.

PR Build What
#576 none Release picture of build 523: the residents' drives before and after (tools/shots/523.mjs)
#577 none Perf pipeline: a browser that only ran out of time to start is started again
#574 524 Critics of the world generators: a random world every run (reach, roads, sea); its head 4d8cce5, the commit pushed later stays in the PR
#557 525 What was left of it: the memory budget has a bottom, time away is no freeze
#569 526 Trunk lines: double-track railways that run on through towns (TR_GW, world version 92)

No conflict needed a hand. #569 went back once in this pass (a new check by vehicle name, movers.namechecks 145 of 144) and came again fixed.

On the tip (28c9d91) instead of CI: the static checks (undef, members, genv, dupkeys, split, srclist, quotes, movers, vmfast, landstub, swallow), the full golden (1492 checks), seam, navi, railx, streets, all four parts of critics, all parts of ways and of xing, pose:foot, cold and hud:menu1 are green. Red: pose:car, as on main before (it gets further with #557: the place of a car is a number now; it stops at "its place along the way is a number and not behind", also at the head of #557): stays with its thread.


Generated by Claude Code

claude and others added 30 commits December 2, 2026 23:14
…ines are gw 81

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…the plan of a dead end, the train over a joint on the next piece's track

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
Worlds since XB_GW (35_span.js; set it to the GENV.gw the change lands with).

Before a railway decides how a road crosses it (level, over, under) it asks
for everything that holds that road (Xing.band): the streets of its towns at
any distance, a greater road it runs alongside (Span.sib), its junctions with
other roads. For a level crossing the road is asked with the short flat it
needs over the bed of the track, not the long one of a deck. The crossings of
one road with one line are then settled together (Rail.chain): where the road
cannot get from one to the next between their flats, the bridge of the two
becomes a level crossing where one may be.

What a crossing may never be: a road under a track below the water's edge, a
level crossing deeper under the land than a cutting goes, a level crossing on
a double line, in a yard or at a platform. The track comes to the road by its
true slack and no further, so a crossing eight points from the next one leaves
no flat piece and no step in the track.

tools/railx.test.mjs: the named fault, 423 crossings in 39 worlds counted by
kind against a ceiling that only falls (27 off their decided heights before,
5 now, all decks of main roads a cell or two off; level crossings off the
track 0), and the three "never" rules counted to zero.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…heir own

A region whose railway came near a trunk line lost it whole (14 to 19 % of
the stations of a world). Now the towns the trunk line passes (Rail.trBy) are
left to it and the others are joined again by a line or a loop clear of it;
only where that does not fit the region is left to the trunk line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…ng rule take world version 88

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…in 25 languages, the screenshot scenes

docs/ARCHITECTURE.md: how an endless line is made of pieces that agree at
joints, how a line ends, the two waves of its timetable, a region's own
railway beside it, with tools/rtrunk.test.mjs. docs/WORLDGEN.md: the level
of a corridor between a region and the world.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…t planned inside a frame

Daily perf loop, build 515: Lift.update asked the generator for the chairlifts around the player
on the main thread every 0.5 s; each new cell of their grid took 0.1-2.4 s (single frames of
270-690 ms at speed, 4-8 ms a frame on average).

- GenStore + GEN_REC (32_land.js): a system of the frame reads the records that are there and
  asks the workers for the missing cells, each once; every record a thread makes goes through
  the page to the others. First kind: lift (Terr.lifts with miss, Terr.liftCell)
- 'frame plans' in the perf report: records planned inside a frame, gates at 0
- gen.test genstore: nothing planned in a frame, single flight, the same record and column
- perf.test own-time check on a made-up clock (it failed by chance on a busy machine)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdteLo8WBha6RUTTRbD
The ab check of this PR died before its first turn: 'Timed out after 30000 ms while waiting
for the WS endpoint URL' (Chrome on the runner), and the comment step then crashed on the
missing table. The launch waits 90 s and is tried up to three times when only time ran out
(perf.lib.mjs again, perf.test); perf.ci.mjs says plainly that nothing was compared.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdteLo8WBha6RUTTRbD
…ld version 91, notes and shots as build 517

The crossing rule is the towns thread's copy of the same commit (XB_GW 90); the trunk gate, the golden world, the note and the shots move on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…ts step begins; the block that stopped a car has its own field

An iPhone that died four times in six minutes went 260 -> 169 -> 110 -> 90 MB of budget: about 70 MB of textures
stay at any quality, so from 110 on the quality stood at 0, the land worker was gone and the page died as before.
Mem.at / Mem.rungs / Mem.top: the ladder ends at MEM_FLOOR (165 MB), a level stored deeper is brought up to it.
mem.test, part ladder.

pose:car was red on main since 509: a speed that was no number was read by the whole step before Town.place at
its end looked (Pilot.near false, the place along the way NaN for good, a false arrival, 32 reports naming x, y, z).
Town.whole asks at the start of every vehicle's step too; Town.sane zeroes what is NaN beside the pose.

Where such numbers came from: c.bw was the roll rate of the springs and the block that stopped the car (Occ.keep,
Town.ahead, the taxi). The block is c.blkAt now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
… 517; the combine checks of both sides stay (swallow, vmfast)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
…ds, sea

tools/critics.test.mjs makes the worlds of a small fixed panel and one of a seed
drawn anew (printed, SEED=<n> repeats it) and lets critics list what must never
be in a world. A critic asks the world what the game asks it: the navigator for
the way of a service car, the one ground finder for where a wheel stands, the
blocks for what is in a body's way, with the limits of the driving physics.

- reach: from the home to every settlement, station, airport and port within a
  kilometre, a car body on the real blocks along the navigator's way
- roads: every road of the squares (round the home and far away) as the
  generator answers (lost, step, wet, clash, grade, bend, trees and buildings
  on it) and as built (a bus along a lane)
- sea: the lanes of the ships over deep water as wide as a hull, no deck or
  causeway across, the piers in deep water
- tools/critics/view.mjs draws the place of a finding with the way to it
- tools/critics.known.json: per panel world the destinations not reached, the
  faults in all and the kinds seen; counts only fall (UPDATE=1)
- docs/ARCHITECTURE.md "Critics of the worlds"

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
…runk lines as build 518

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…p quality (the far cubes of quality 9 never rest in the caches of 165 MB)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
Navi.isle gave the points of the arc round an island the lane offset of the
road the way came by. By a road of two or three lanes each way that put the
way 20 to 36 cells outside the ring: over the grass, through railings, past
the edge of a deck. The arc now takes the lane of the ring (the middle of the
circle of class 6 at the island's rr).

Found by tools/critics.test.mjs (seed 987654321 at 850,1566 and 1582,3597);
held by the new part ring of tools/ways.test.mjs, red before the fix. The
panel of the critics: 987654321 reaches 10 of 24 destinations instead of 6,
faults 114 -> 96; 20261129 faults 91 -> 85.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
…n, the loop's own store is dropped; the perf run's browser start retried stays

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdteLo8WBha6RUTTRbD
… 520; what is left is the bottom of the budget ladder and a vehicle's numbers (notes 524). The block that stopped a car takes main's name (c.wbk), Occ.keep writes it there too

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
…cture of build 523

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdtwAaogF7u315K2NSF
… shots as build 524

The ferry loop took world version 91 on main, so the gate of the trunk lines, the line of the seed, the golden world and the
notes move to 92. The note and the picture of the shared causeway are dropped here: that rule is on main since build 517.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
…obs, road.offline

The panel's numbers are written anew on the worlds of main 523 (fewer unreached and fewer faults in every world).
AT=<x,z> looks at the squares round one place of a seed, SITE sets the site of the home.
road.offline: the surface of a road more than 3 cells off the profile the road gives.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczdvXKSNcFXPzzYu2LYJ
…self

A phone's Safari runs the first frame after the page comes back before it says "visible", so 12.3 s in another app
were reported as a freeze of 12753 ms between frames. Guard remembers that the page left (hid) and the frame resets
the quiet time. guard.test, page part 8b: fails on the code before (the gap away counted), passes now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UiczduV6TP2WJ64QZpo7Dn
The loop that hands a train over a joint asked c.kind === 'train': one more check by name (movers.test, 144 -> 145).
A mover with a train plan (c.tr) is what the rule is about.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uiczds25hPkj1T5izApXNA
Release picture of build 523: the residents' drives before and after, drawn as a plan

Merge queue
Perf pipeline: a browser that only ran out of time to start is started again; own-time check on a made-up clock

Merge queue
Critics of the world generators: a random world every run (reach, roads, sea)

Merge queue: build 524
The memory budget has a bottom; a vehicle's numbers are asked where its step begins

Merge queue: build 525
Trunk lines: double-track railways that run on through towns and never end

Merge queue: build 526
@github-actions

github-actions Bot commented Dec 3, 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

scenario metric main PR Δ threshold turns
– no change beyond the noise
scenario CPU mean p95 max slow/min spikes/min miss sync gens read gens draws top systems (ms/frame)
idle 4.79 8.60 24.4 0.00 15.0 0% 0.00 0.00 385 Town.update 1.08⚠️, Land.drawPass 0.43, BigMap.sample 0.33, Town.draw 0.24
night 4.49 7.90 17.1 0.00 0.00 0% 0.00 0.00 368 Town.update 0.89, Land.drawPass 0.52, Town.draw 0.33, BigMap.sample 0.25
drive 22.1 49.3 244 97.3 197 3% 88.5 0.00 207 Land.lightTick 7.02⚠️, Land.meshChunk 1.77⚠️, Land.gen 1.74⚠️, BigMap.sample 1.44
flight 8.54 18.3 225 37.5 105 0% 0.00 0.00 82.5 BigMap.sample 1.63, Land.lodData 1.29, Sp.draw 0.53, Herd.update 0.44
tunnel 8.49 26.0 58.7 9.99 160 0% 0.50 0.00 352 Land.lightTick 1.33⚠️, Town.update 1.04⚠️, Land.drawPass 0.66, Land.meshChunk 0.53

Over budget (ms/frame, budget): drive Land.lightTick 7.02 > 1 · drive Land.gen 1.74 > 0 · drive Land.meshChunk 1.77 > 1 · tunnel Land.lightTick 1.33 > 1 · idle Town.update 1.08 > 1 · tunnel Town.update 1.04 > 1 · tunnel Land.gen 0.01 > 0


Generated by Claude Code

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Screenshots of build v526

🚆 A station of a trunk line: the train calls and runs on, the two tracks go on beyond the town both ways

A station of a trunk line: the train calls and runs on, the two tracks go on beyond the town both ways

🚆 Beyond the platform the two tracks of the trunk line run on, a block signal at green beside them

Beyond the platform the two tracks of the trunk line run on, a block signal at green beside them

🏘️ The big map: the dashed line through Rättberg is the trunk line, it comes in over one edge of the map and leaves over the other

The big map: the dashed line through Rättberg is the trunk line, it comes in over one edge of the map and leaves over the other

All of them are assets of the v526 release.

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