Malsimulation · internals · a descent in six layers
One illustrated page, from why the simulation exists down to how a tick is counted and a hash is frozen. Each layer is a level of the island. The sky holds the intent. The surface holds the world and the lives on it. The deeper you dig, the closer you get to the machine.
Snapshot generated 2026-10-03
from dfdbbef
version 0.3.0-dev
Regenerated only on request: the code may have moved since. Amended 2026-10-04: the population model and decision loops. The 2026-10-07 agency deep dive and 2026-10-08 decision-core deep dive have their own source stamps on Deep dives.
Layer 0 · Sky
Malsimulation is a detailed simulation of a living fantasy world, and a game about understanding, influencing and inhabiting it. It reaches from the landscape and its ecology to individual lives, and outward through families, households and villages. Humans, elves, dwarves and goblins share one consequential world. It began in 2007 as a personal project, and market demand still does not set its direction.
The constitution
The vision's principles are the test every feature answers to. The long arc turns them into directions; the roadmap picks among those; specs make one of them true.
Detail earns its place by explaining something, changing a choice or connecting systems.
Models draw on evidence for the people, place and period. Simplifications are stated, never hidden.
Different bodies and lifespans matter to food, care, learning and settlement. A goblin litter is four lives.
Care, work and continuity are the game. Recovery and quiet achievement count as much as catastrophe.
Failure and extinction stand. No hidden rescue, no manufactured drama.
History, inspection and observation let the player test explanations. AI tellers must separate fact from interpretation.
Whatever the world keeps can be opened and followed. A part is unfinished until it can be explored.
Same version, same start, same interventions: same history. Rewind and branching build on that.
From watching, through influence and intervention, to living as one existing person.
The written record
Every document owns one thing and explicitly not another. Intent flows down the ladder; measured reality flows back up as backlog items. Nothing disappears: a spec's text is never edited, only amended with a date, and a dropped idea keeps its reason.
assets/, the build and its tests.site:check and the roadmap validator.Seventeen years
One cell per month, shaded by commits. The Python years fade into a long quiet; then a single late-August day rewrites the whole thing, and September 2026 alone has more commits than the entire Python era.
Since the rewrite
The last 75 days. The rewrite fills the first two; the quiet in mid-September is the population batches under review, not a pause in intent.
The epics
44 epics: 26 closed and 18 open, in five categories. Priority is a tier, not a queue position: 3 open epics at P0, the floor nothing above is safe without; 3 at P1; 7 at P2; 5 at P3. Design runs ahead of building: 1 open epic is fully designed and 2 partly.
Specs
133 specs; numbers are never reused. The rewrite used decade bands (00x foundations, 01x core, 02x worldgen, 03x simulation …); since 073 they are simply sequential. Shade is the lifecycle stage: the darker, the further along. Hover a cell for its title.
095 is a deliberate gap. It was written as a fix for the "blue sides of the world", then folded back into an amendment on archived spec 040. That episode made the rule: a fix belongs to the spec it fixes.
295 dated amendments sit under "Amendments" headings. Spec 140, the generated history, carries the most: 40.
Negative results are kept. Spec 086 is "verified … not implemented: the premise was wrong". Specs 104 and 106 ship their mechanisms switched off because the measurement said so.
Approval is recorded in the approver's words, from "Approve as drafted" to "Zatwierdzam".
Layer 1 · Surface
The world is one hexagonal region made of hexagonal fields. At the defaults, map size 6 with fields 100 metres across, that is 197,377 surface fields about 51 km from corner to corner, and 320,897 fields in all once the three cavern layers and the tunnel web are counted. Everything in it is generated from one seed, deterministically, before the first creature moves.
Coordinates
Positions are integers. A field's six neighbours are one axial step away; world positions derive from axial ones. Fields are created centre first, ring by ring, and that spiral order is load-bearing: field ids, random draws and mesh vertices all follow it.
Generation
Each attempt forks its own sub-seed and builds a complete world in its own memory arena. If the main continent lacks any of eight required terrain kinds, or too many caverns are sealed, the whole arena is freed and the next attempt starts clean. Seed 42 at the defaults is accepted on attempt 1.
Generation time per stage for seed 42 at the defaults, measured for this snapshot with a ReleaseFast build on darwin-arm64. The whole world took 206 ms on the command line. Costs and the three sublevels dominate. Before an index was added on 2026-08-30, the rescue stage was 98% of a size-11 generation: 134.7 of 137.1 seconds.
Timings depend on the machine and its load; the shares are what matter.
Depth
The land noise is squared, which flattens the coast into lowlands and sharpens the peaks. A cavern field exists only where the noise allows and the surface above it, and above all six neighbours, clears the layer. Tunnels are dug from cave mouths toward the nearest cavern of each layer in turn; they are the only links between levels.
The upper cavern layers starve by construction: a field at 700 m needs a broad massif above it. Tags overlap, so forest fields are also lowland or hill fields.
Hydrology
Springs pour integer units of water into a network of vertices (fields sharing one water level) and segments (flows between them). Each time a vertex with surplus is taken off the worklist, one rule moves that surplus a step. Rivers are places on walkable land; only lakes change the terrain.
Movement
Every directed edge between neighbouring fields is priced once, in parallel chunks of 512 fields, and the price is what both pathfinding and walking time read. A step that is too steep is impassable. Movement types never mix: a border between land and water costs nothing because it does not exist.
| One step, 1 km fields | cost |
|---|---|
| flat open ground | 1,000 |
| road on the flat | 750 |
| hills, or forest | 1,500 |
| hills and forest | 2,250 |
| mountains | 2,000 |
| high mountains | 4,000 |
| 300 m uphill on the flat | 3,328 |
| 300 m downhill on the flat | 1,792 |
| 400 m either way | impassable |
| Field size | steepest step | angle |
|---|---|---|
| 1,000 m | 366 m | 20.1° |
| 500 m | 259 m | 27.4° |
| 250 m | 183 m | 36.2° |
| 100 m (default) | 116 m | 49.2° |
The gate widens as fields shrink: the same slope limit allows steeper ground over a shorter step. A test pins 115 m passing and 116 m blocking at 100 m.
Worth knowing
The terrain noise draws no random numbers. Each grain is a hash of the seed and the position, so the heightfield cannot depend on draw order.
Cave mouths have a floor of six, chosen without randomness. If the per-field roll finds too few, the highest field of each of six spiral-order buckets is promoted, so worlds that already had enough stay byte-identical.
Tunnels have no neighbours. A tunnel field is a chain of links; an early coarse planner that counted only in-level edges saw the whole underground as rock.
Components are labelled at push, not pop. At map size 11 that turned 40.1 million queue pops for 10.5 million fields into one pop per field.
The main continent is the largest land component that contains surface land. Caverns and tunnels count as land, so it normally includes the underground reachable from it.
A 16-bit component id ran out. Size 11 has 136,582 components against a ceiling of 65,536; ids became 32-bit with an explicit "none" sentinel rather than an optional.
Layer 2 · Life
Every creature is a body steered by a controller. A daily clock makes them hungry and sleepy; controllers turn needs into plans; plans become timed events. Food is never conjured: it is grown, fished, hunted, scavenged or carried, and an unfunded meal stays unfunded. Before play begins, a generated past of 150 years hands over families, homes and accounts to these exact rules.
Anatomy
Two independent tagged unions. The schedule wakes a controller, never a body. A wolf, a monster and a dragon share one body type and differ only in who decides; a carcass has no controller at all, no schedule slot, and draws no random numbers.
| body ↓ · controller → | people | grazer | predator | monster | dragon | ship | spawner | none |
|---|---|---|---|---|---|---|---|---|
| hero | villager, hero | |||||||
| group | party | |||||||
| herd | deer, woodlice, beetles, newts | |||||||
| animal | wolf | brute, hound, maw worm | dragon | |||||
| ship | ship | |||||||
| carcass | carcass | |||||||
| clutch | clutch of eggs | |||||||
| no body | village, chasm, wreck |
The loop
Needs are integer counters. Hunger rises at six signals a day; a single sleep signal is enough to want sleep; fatigue is the length of every walk. When a counter crosses its threshold the controller inserts an action at the top of its plan; an empty plan is refilled by the controller's own policy. Every step of an action emits exactly one event: an agent that emitted nothing would fall off the schedule forever.
Wary after a sighting: rest. Otherwise the first job the village store is short of; otherwise rest.
Unload at home; with fewer than 10 food units go and find food; otherwise wander the component.
Flee if just hunted, split at the cap, a weekly pasture check (calve or lay, or one starves), rest at night, roam by day.
Whelp 2–4 after 30 meals if fewer than six wolves are within 6 km; rest in its sleep hours; roam. Starves after 12 days.
Off cavern ground, go home; rest in sleep hours; roam. Bred by chasms, at most two alive per chasm.
Hungry about every three days: hunt within 25 km, then anywhere; carry the catch home or kill on the spot; patrol from its peak.
Ecology
Grass is kept per field and regrows daily; a herd's weekly check calves only if the pasture in range can feed every animal of its species there, other herds included. Predators eat carcasses where they lie; people take the skin first, then up to ten units of meat.
Chance
No wounds, no hit points: one draw decides. Odds below are at mean strength and rank 0. Experience shifts them slowly: ranks double in cost (1,000, 3,000, 7,000 XP …) and each adds 5%.
Economy
Three functions write items, and each is tallied per kind: grant, consume, transfer. Capacity is mass: a pack carries 260 kg scaled by strength, a store 20 tonnes. Grain's stack limit, 480 units, is exactly one six-hour reaping trip at 40 kg an hour, so a trip is never clipped.
Grain, rations and eggs carry 3,400 kcal/kg, meat 1,200, fish 1,000. An adult needs 2,040 kcal a day: 1.2 units of grain, or about four fish.
At each day's rollover every household pantry is topped up toward seven days of need, settlements and homes in a fixed order. A short store serves the same homes first.
A borrowed tool makes work 25% faster. Every twentieth tool-assisted job wears one out, booked as a debt to the village.
The generated past
A new world can open with a past: one to three hundred years of births, deaths, partnerships, harvests and hunger, computed year by year at the scale of households. At the opening date T the past is frozen and handed to the exact, event-driven laws of play. Durable people carry their records across.
924 people alive in 1001, 694 at T in 1151; 917 partnerships, 38.5% between cousins. history-coarse-v2, default settings, measured 2026-09-29 for spec 140.
360 villages over 20 seeds and 150-year pasts (spec 140). Infant mortality lands on the tables: humans 19.8% measured against 20.0%, goblins 42.2% against 40.0%; the goblin excess is hunger.
| How a world opens | spawner on | spawner off |
|---|---|---|
| history on (default) | the past, then new arrivals | the past only |
| history off | founders with no past, then arrivals | land, animals, empty chasms and ships; nobody |
The population model
Every person who ever lived in the generated past or in play is a durable record in one population store, separate from the play entities that walk the map. The store is built year by year in the past, handed over whole at the opening date T, and then advanced by exact, event-driven laws. Nothing in it is saved: a load regenerates the past from the seed and replays play.
| Record | Holds |
|---|---|
| person | parents, partnerships, people and faction, sex, birth and death, heritable traits, a physiology of over 18 KB (exposure and milk histories), skills and occupation, role (villager or hero) |
| partnership | two partners, its dates, and how it ended: death, both died, separation (deferred) |
| delivery | a birth: bearer, other parent, conception and date, the children, stillbirths |
| household | a sorted member list and nothing else: no head, no roles, no dates |
| home | its settlement, condition and pantry; the pantry belongs to the home, not the household |
| title share | an owner's share of a home, the steward village, the beneficiary household, succession |
| residence | where a person lives, and their carer while care is required (under 15 actual years) |
| settlement | no record at all: only an id stamped on homes, titles and provenance; its faction is read from its first resident |
Every id is a 64-bit number that is never reused. Kinship beyond parents and partners (siblings, cousins) is computed by walking up to eight generations of ancestry.
| Clock | How it advances |
|---|---|
| the past | 16 annual stages per year: begin, food for homes and people, deaths, partnership openness, lists and matching, births, publishing partnerships, ordering and publishing the year (succession, survivors), wildlife sources, accounts, care, finish |
| the handover at T | the store is handed over, not copied; a frozen packet hashes it; transition gives every living resident a body at home, binds it to its record and stages animals from the past's counts |
| play | one queued population event at a time, at the earliest of the next meal boundary (at most a day ahead), the next biology change and the next partnership opportunity, forecast on private workspaces |
Births, deaths and partnerships follow one set of laws at both speeds: 13 mortality bands scaled by nutrition, care and housing; conception chances by age; partners weighed by contact and age gap, with cousins only under scarcity.
Named streams, never shared ones. The past draws from history-coarse-v2/{year}/{person}/{purpose}; play's episodes from population-v1/person/{id}/{purpose}/{seq}, numbered by a store-wide counter, so one extra draw would shift every later episode.
A state digest names the whole store. Each newer table is digested only when it is non-empty, so a world without it keeps the digest it had. Six frozen test values pin it.
Partners mostly live apart in the past. Publishing a partnership moves no one: the generated past never changes a residence, so a household is a founding family and its descendants. Spec 156 brings households on the road.
The store is the largest thing in a world. About 6,600 person rows after 150 years, mostly the dead, at roughly 18 KB each; the history job runs under a 1 GiB budget.
This snapshot's week
Measured for this page with mal-headless run --seed 42 --days 7 --stats: the run ends on
1151-01-08 00:00:00, one week after the default world opens, with
18 settlements and 540 homes.
Of 1,944,263 events, 1,736,368
are single footsteps; the rest are below.
Worth knowing
A pack is just wolves standing together. A wolf hunt weighs every living wolf on the field; there is no pack membership.
The carcass exists before the kill. A hunt creates it first, so a herd emptied by its last deer is still credited to the hunter.
Dragons are on no field while flying. Nothing on the ground can fight one in the air; only take-off and landing are exposed.
Villagers flee what they see. A monster within 300 m (a dragon within 1 km) sends every other villager about 600 m directly away, wary for three hours. Heroes never flee.
Two laws for deer. The past counts deer per km² against woodland support; play feeds herds on per-field grass. At T each source's deer become ⌈D/6⌉ herds.
Monsters are counted by a full roster scan at every chasm spawn, on purpose: a counter kept right through every death would be harder to trust.
Layer 3 · Caverns
Malsimulation is a discrete-event engine, not a frame-stepped one. Time is a 64-bit integer. Everything that happens, from a footstep to a hunger signal, is an event in one priority queue ordered by tick and then by insertion number. Nothing is snapshotted: a save is a recipe, and loading cooks it again.
Time
A year is thirteen months of 28 days. The default world's generated past starts in the year 1001 and runs 150 years, so play opens on 1151-01-01, at tick 3,616,704,000,000.
The engine
Advancing pushes an "end of advance" sentinel and runs events until it pops. Each event is executed, traced, and its slot returned to a pool; any agent it woke then decides and schedules exactly one new event before the next event runs. Event slots carry a generation number, so a stale reference to a reused slot reads as nothing.
Playing it
The window keeps drawing while time runs because simulation is sliced: each frame advances until 4 ms have passed since the frame began, stopping only between events. The rest of the requested interval carries over, and the history is the same as one uninterrupted advance.
Eight rungs from 1× (100 ticks a second) to 10m (a billion: about 116 days a second). The default is 10×.
Advance a minute, ten minutes, an hour, six hours or a day: each is one window, finished across as many frames as it needs.
A fixed 1/60 s step with at most four catch-up steps; a backlog beyond that is dropped rather than chased.
Pathfinding without stalls
An agent that decides to walk does not search on the spot. It files its request and waits twenty simulated minutes; the first waiter to wake solves every pending request at once on the thread pool. An answer is a pure function of terrain that no longer changes, so the history is identical at every thread count. This snapshot's week: 57,192 searches in 477 batches, 119 requests a batch on average and 659 at most.
The only door
The renderer, the interface and the headless tool see the simulation through one file. A handful of functions change the world; everything else is a view, written into the caller's memory as plain data.
Seven functions change the world: newWorld, deinit, restartAgents,
advance, advanceSlice, abandonAdvance and intervene, plus the
jobs that build a population while a world is being made. The other ninety-odd only look.
Counted by purpose for this snapshot, by reading the file.
Vocabulary
Every one runs through the same queue. Nature's six kinds have no invoker: a signal walks the whole roster in insertion order. A default day schedules 22 of them, 23 while a dragon is alive.
wait · go_to · eat · sleep · rest · refill · work · hunt · maul · scavenge · battle
graze · calve · lay · hatch · split · starve · whelp · rot
spawn_hero · regenerate_spawn · shipwreck_spawn · ship_arrival · disembark · ship_departure
take_off · descend · land · eat_catch
signal · time_label · new_day · grow · population · end_of_advance
Memory of the world
History is recorded as it happens: figures, moments, the mentions that tie moments to figures, and every step walked. In this snapshot's week: 2,152 figures, 5,644 moments and 7,380 mentions. Legends reads it through seven lenses: heroes, bands, villages, ships, relics, beasts and days.
Persistence
Ten fields: the format, the build, the seed, every simulation setting, the elapsed ticks, the player's journaled acts, the opening tick, the detailed time, a digest of the population and the history length. A year of seed 42 once saved as 95 lines, 4.0 KB.
// world-42-t3616764480000.zon, abridged and illustrative
.{
.format = 3,
.build_version = "0.3.0-dev",
.seed = 42,
.sim = .{ … every setting … },
.elapsed_ticks = 3616764480000,
.interventions = .{
.{ .tick = …, .act = .{ .smite_person = … } },
},
.startup_tick = 3616704000000,
.detailed_elapsed_ticks = 60480000,
.population_digest = 32 bytes,
.history_years = 150,
}
The same build, seed and settings regenerate the same world and the same random streams. Cutting time into windows is history-neutral. An intervention goes through the same function live and in replay, and the chronicle is rebuilt by the same writers.
The save holds its own copy of every setting, so a local settings.zon cannot change what a
load produces; and the plan is checked against the world actually regenerated, not against the file's claims.
What comes next
Each system grew its own way of choosing. AGT-12 builds one decision core (minds of twelve motives, collectives with roles and procedures, an obligations ledger, scored choices with commitment) and AGT-14 moves these loops onto it one at a time. Designed in specs 164–166; not built yet in this October 3 snapshot.
October 7 amendment: Delivery A (spec 164) is now implemented: read-only minds, collectives, duties and seeded relationships. The scored decision core and its first adopters in specs 165–166 remain unbuilt.
| Today | Where | How it decides | Becomes |
|---|---|---|---|
| impulses and a plan stack | heroes, bands, animals | counters cross thresholds; a fixed policy fills an empty plan | heroes and bands first, in spec 166: scored offers, bands as collectives led by decree |
| a priority list | villager work | the first job the village store is short of | the village's agenda; work requests as obligations each villager weighs (AGT-14, first) |
| annual laws | partnership, spec 154's departures | a chance per period; weighted candidate draws | decisions at life events and reviews, at both speeds (AGT-14) |
| consent rules | home titles, spec 156's moves | owners and the village agree by rule | collective procedures (AGT-14, with households as collectives) |
| support commitments | household care and provisioning | household plans and offers | obligations in the ledger (AGT-14) |
| fixed wants and hostility | village stores, factions | constants; "different faction means fight" | interests on an agenda; stances between collectives (AGT-4) |
Worth knowing
The trace hash hashes event names. Each line is tick, kind name and actor serial, so renaming an event kind moves the golden with no change in behaviour.
An actor is a serial, not a slot. Entity slots are pooled and reused; a never-reused serial stamped at birth is what the trace and the chronicle record.
Thread count is not part of a world. It is deliberately outside the saved settings: it changes wall time and nothing else.
Interventions are not events. A smite or a razing applies between events through one function, live and in replay, and is journaled at the tick it happened.
An idle spawner keeps itself alive with a one-day wait, because an agent with nothing scheduled would never be woken again.
The calendar exists twice: once in content data that rolls the months, once as constants that print dates. A content test pins them to 28 days and 13 months.
Layer 4 · Tunnels
The simulation is pure logic that never sees a window: the headless binary links no SDL at all, which proves it continuously. The renderer, the interface and the application sit on the other side of a wall and reach the simulation only through its facade. Memory is owned by lifetimes, not by objects; concurrency is bounded and deterministic by construction.
The graph
core ← worldgen ← sim never import SDL or ImGui. ImGui appears only in src/ui.
Two binaries come out: mal, the only one that links SDL, and mal-headless, which
carries the determinism anchors. A third, population-check, is a run step for validating the
population model.
The code
Every rectangle is a file, sized by its lines and grouped by module. The population model alone is 88,022 lines, much of it contract tests and fixtures; the facade is one 10,000-line file. Select a file to open it at the snapshot's commit.
1,931 test declarations. zig build test runs them as 30 cached
processes: 18 unit shards and 12 end-to-end shards, dealt round-robin. Zig hands every test run a fresh
random seed that would bust the cache, so the build pins it to zero; nothing in the repository reads it.
zig build test-unit skips the end-to-end tests, whose names begin e2e: : the edit loop.
Memory
No object is freed alone. The world arena holds what generation built; the simulation arena holds entities, the schedule and plans; a scratch arena is reset before every search; a frame arena is reset every frame. GPU buffers are allocated once, rewritten in place, and count their own reallocations, so "allocated once" is measured rather than hoped. This week: a 187,743 KB simulation arena beside a 79,732 KB world arena.
Concurrency
One worker generates a world while the loading screen draws. A job pool fans out pure work: the cost bake, mesh building, route batches and flora scatter. Its results are bit-identical at any thread count, so the pool changes wall time and nothing else (ADR-012).
Decisions
The ADR log is append-only: a decision is amended by a later one, never rewritten.
Zig 0.16 pinned; Metal, Vulkan and D3D12 through one API, with no other runtime dependency.
The rewrite kept the character of the Python worlds, not their bytes.
So a standard-library upgrade cannot change a world.
Typed views out, typed commands in, enforced by a guard.
GLSL once; SPIR-V, MSL, DXIL and DXBC generated and checked in.
Every line and marker is an instanced quad sized in pixels.
World, simulation and frame arenas; GPU dynamic data allocated once.
Built against our SDL, so one binary never holds two.
Assets beside the executable; settings and logs in the app-data folder.
The controls page and the version mirror are generated and test-checked.
A moved golden is a question; a seed names a world only within a release.
Determinism lives in the primitives; a process split stays possible.
Layer 5 · Bedrock
Within one release, the same seed, settings and interventions produce the same history, on every machine and at every thread count. That promise rests on five mechanisms and three frozen hashes, and it is what makes everything above it, from replay to the generated past, possible to trust.
Five mechanisms
Ticks are u64 hundredths of a second. No float ever decides when something happens.
xoshiro256++, seeded by SplitMix64, forked into named streams. A compiler upgrade cannot change a world.
Fields, random draws and vertices all follow the spiral. Nothing iterates a hash map where order matters.
The queue orders by (tick, seq). Simultaneous events run in the order they were scheduled.
Chunks are cut by size alone, writes are disjoint, merges run in chunk order, and the lowest-numbered error wins.
0xea0494938d7252d5: identical to the end-to-end anchor frozen in the
tests (0xea0494938d7252d5). The trace golden's own test lists
28 earlier values, each a deliberate move explained in its commit.
Randomness
Every consumer of randomness forks its own stream from a label. Adding a stream, or drawing more from one, never shifts the numbers another stream sees. The noise that shapes the terrain draws nothing at all: it is a hash of the seed and the position.
xoshiro256++ keeps 256 bits of state and is vendored rather than taken from the standard library, so a Zig upgrade cannot change a world (ADR-003). The world and trace hashes use the standard library's Wyhash: a change there would move those goldens but not the RNG golden.
The simulation's own stream is forked from the seed with the label "sim". There are 94 fork sites outside the generator itself.
// xoshiro256++, one step result = rotl(s0 + s3, 23) + s0 t = s1 << 17 s2 ^= s0; s3 ^= s1 s1 ^= s2; s0 ^= s3 s2 ^= t; s3 = rotl(s3, 45) // seeding: four SplitMix64 outputs 0x9E3779B97F4A7C15 · 0xBF58476D1CE4E5B9 0x94D049BB133111EB // integers: unbiased by rejection // floats: the top 53 bits // normals: polar Box–Muller, // no cached spare, so draws pair up
Pathfinding
The open list orders by (f ascending, g descending, field id): deeper nodes first, and fully
deterministic. The heuristic is the median land step cost times a weight of 3.0 times hex distance. That is
deliberately inadmissible: routes come out a little longer and searches far cheaper, because people are not
perfect path finders. A search capped at a million nodes returns a partial path to its most promising node.
| Heuristic weight | nodes per search | routes longer by |
|---|---|---|
| 1.0, admissible | 33,485 | 2.31% |
| 3.0, shipped | 15,625 | 17.34% |
From the measurement that chose the weight (spec 106). A coarse-corridor planner is fully built and switched off: it closed 18% fewer nodes and saved no wall-clock time, because A* here is memory-bound.
Pixels
SDL_GPU drives Metal, Vulkan and D3D12 through one API. Static geometry is built on the generation worker, twenty mesh tasks run on the pool and are assembled in list order, so the scene is byte-identical at any thread count. Each frame then uploads only what moved.
Proof
One test binary per module, each split into cached shards; the end-to-end tests run whole histories. CI builds and tests Linux and Windows only when a commit is pushed to a release branch, and does not run the renderer: four real bugs in this project's history were invisible to CI and obvious within a minute of running the binary elsewhere. Rendering changes are checked against committed offscreen captures.
Every hash seed spells its name: 0x6D616C2D666F726B is "mal-fork", 0x…776F726C "mal-worl", 0x…74726163 "mal-trac".
The vendored generator is checked against the one it replaced: its first 16 outputs must equal the standard library's xoshiro before the frozen literals are compared.
Terrain normals are half-parallel on purpose: faces in parallel, sums in triangle order, because float addition is not associative and the mesh must be the same bytes every time.
The default window is 1024 × 768 because the Python original's 1024 × 786 was a typo that was not ported.
Drift
Found while preparing this snapshot by reading the code against the docs. They are notes, not verdicts: none was run, and each belongs to its owning spec or document to settle.