measurePatchGeneration

function measurePatchGeneration
devtools/src/descent.ts:557
measurePatchGeneration(body: Body, regions: readonly RegionAddress[], now: () → number, resolution: number) → GenerationCost

Time the generation of the patches a descent asked for.

The main thread, not a worker, and deliberately: this is the cost of the field, which is what the geology phase is about to multiply. The worker adds a transfer and a queue on top, and both are properties of the pool rather than of the terrain — capability check 10 already proves the two produce identical output, so the number here is the one that moves when a band is added.

now is injected for the same reason it is everywhere else here: nothing below apps/ may reach for a host clock.

bodyBody
Undocumented
regionsreadonly RegionAddress[]
Undocumented
now() → number
Undocumented
resolutionnumber
Undocumented