Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(chunks): an answer from a worker is put in the world when it arrives, with no queue and no per-frame limit

yhh89c622a9eedb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fd3a0b5b0..303b1a379 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,7 @@ published separately; it ships inside the editor.
### Added
-- **A generated world on worker threads.** A planet provider can give the engine its generator as `workerSource` (the text of a self-contained module), and the world's placements and the planet's pages (heights, normals, and the paint by the biomes) are then worked out by a pool of workers (`runtime/jobs.ts`), byte for byte what the main thread works out, while the main thread only puts the answers in the world, a few a frame. Laying out a planet's world no longer costs the frame: 2 to 8 frames a second while it was laid out became 60.
+- **A generated world on worker threads.** A planet provider can give the engine its generator as `workerSource` (the text of a self-contained module), and the world's placements and the planet's pages (heights, normals, and the paint by the biomes) are then worked out by a pool of workers (`runtime/jobs.ts`), byte for byte what the main thread works out, while the main thread only puts each answer in the world as it arrives. Laying out a planet's world no longer costs the frame: 2 to 8 frames a second while it was laid out became 60.
- **A planet's sea and sky.** `Planet.sea` draws a translucent, lit sphere at `seaLevel` in which the ground that dips below it stands, and `skyAtmosphere` takes the planet's radius and centre (`u_planetRadius`, `u_planetX/Y/Z`, as `heightFog` does) to work the sky out in the frame of the ground the camera stands on, so the horizon, the sun and the haze follow it round.
- **A generated world on a planet.** A `WorldGen` with `surface` Planet, on a `Planet`'s entity, lays the world out over the cube's six faces, each as a plane of metres, by the same rules a flat world has: biomes over fields, recipes and layers. A direction is planned by the face it falls on; what is placed is taken to the planet and stands along its up. The fields are the planet's own (height, slope, noise in three dimensions with no seam between faces, `paint.<layer>`, and the fields a planet provider names with `fields`), the biomes paint the ground too, and `seaLevel` and `WorldZone`s work over a planet.
- **A planet pulls and answers.** `Planet.gravity` pulls every dynamic 3D body toward the centre of the nearest planet that pulls (the world's gravity is taken off the body and the planet's put on, as a force each fixed step), and the `PlanetRegistryRes` resource answers `up`, `altitude`, `groundHeight`, `groundPoint` and `nearest` for what stands, aims or falls on a round world.
diff --git a/docs/ASYNC_WORLDGEN_PLAN.md b/docs/ASYNC_WORLDGEN_PLAN.md
index d58d64bff..c1e2f1390 100644
--- a/docs/ASYNC_WORLDGEN_PLAN.md
+++ b/docs/ASYNC_WORLDGEN_PLAN.md
@@ -6,7 +6,7 @@
星邻球面世界和 `examples/terrain-water` 都一样:每帧 `ProceduralChunkSystem`(`chunks.step`)占主线程 44 ms(均值),最差一帧 250 ms;停止运行后重新铺设的 5 秒里 105 帧中有 74 帧超过 16.7 ms,p95 为 150 ms。成本几乎全在 `WorldPlan.placementsIn`:规则里的群落、配方、候选点、邻居冲突。`cover` 层一个 32 米的块约 43 ms(328 个放置,约 130 µs 一个),四层合计约 70 ms 一个块;绘制距离内有几百个块,总计是十几秒的纯计算。
-## 结论:分帧是止痛,不是做法
+## 结论:分帧是止痛,不是做法(计算上不再分帧)
现在的做法是把工作切成块、每帧只做预算内的几块(`bakes.hasTime()`),而每个块本身要 40–250 ms,且脚下的块不受预算限制。这是单线程里的协作式调度:总工作量不变,每帧仍然要付一整块的钱,所以卡顿只能靠"块更小"来缓解,不能消除。
@@ -22,12 +22,12 @@
- 水深、岸距:水体的烘焙场(CPU 数组)作为可转移缓冲发给 worker,版本号变了才重发。
3. **星球页面上 worker**:页面的高度、法线、涂色(含群落上色)都是提供器加规划的纯函数,同样走作业池,返回 `Uint8Array` 页面,主线程只做图集上传。
4. **碰撞三角网上 worker**:同理,返回位置和索引数组。
-5. **主线程只剩提交**:每帧预算内最多提交 N 个结果(创建实体、`meshInstances_set`、上传纹理),提交本身按结果大小摊平。
+5. **主线程只剩提交**:结果一到,就在 Promise 的回调里创建实体、`meshInstances_set`、上传纹理,没有排队、没有每帧上限、没有时间预算。粒度由使用者的数据决定(规则里每层的 `chunkSize`、层的 `spacing`),并发由作业池大小和块层的在途上限决定,不由引擎替用户切帧。
6. **可观测**:作业池的排队数、在途数、每类作业耗时进性能分析器;`chunks.step` 这一帧成本应当接近 0。
## 进展(2026-10-25)
-已完成第 1、2 步在星球上的部分:`runtime/jobs.ts`(作业池)、`worldgen/planWorker.ts`(放置规划与星球页面,打包成文本 `runtime/planWorkerBundle.generated.ts`,由 `sdk/scripts/build-worker.mjs` 生成并有测试守新鲜度)、`PlanetProvider.workerSource`(提供器的自包含模块文本,星邻由 `tools/build-provider-worker.mjs` 生成)。提交一侧:`ProceduralChunks` 的答案和星球页面都进队列、每帧限量放入世界。实测星邻球面世界铺设期间:此前 2–8 帧,现在 60 帧(p95 33 ms,最差 33 ms);`chunks.step` 44 ms → 2.3 ms,`PlanetSystem` 133 ms → 1.7 ms。worker 的结果与主线程逐字节一致(`tests/worldgen-worker.test.ts`)。
+已完成第 1、2 步在星球上的部分:`runtime/jobs.ts`(作业池)、`worldgen/planWorker.ts`(放置规划与星球页面,打包成文本 `runtime/planWorkerBundle.generated.ts`,由 `sdk/scripts/build-worker.mjs` 生成并有测试守新鲜度)、`PlanetProvider.workerSource`(提供器的自包含模块文本,星邻由 `tools/build-provider-worker.mjs` 生成)。提交一侧:结果到达即放入世界,不排队、不限量;标为 `async` 的块层不受帧时间约束。实测星邻球面世界铺设期间:此前 2–8 帧,现在 60 帧(p95 33 ms,最差 33 ms);`chunks.step` 44 ms → 2.3 ms,`PlanetSystem` 133 ms → 1.7 ms。worker 的结果与主线程逐字节一致(`tests/worldgen-worker.test.ts`)。
未做:平面地形(`Terrain`)上的 `WorldGen`(需要水体烘焙场可转移)、碰撞三角网、没有 Worker 时的主线程路径仍是分帧。
diff --git a/docs/astro/src/content/docs/graphics/terrain.mdx b/docs/astro/src/content/docs/graphics/terrain.mdx
index 1d5d7a8ff..2f37d96d5 100644
--- a/docs/astro/src/content/docs/graphics/terrain.mdx
+++ b/docs/astro/src/content/docs/graphics/terrain.mdx
@@ -286,7 +286,7 @@ A planet answers the questions a round world puts to everything standing on it,
A generated world can be laid out over a planet: put a `WorldGen` with `surface` set to Planet on the `Planet`'s entity. Each of the cube's six faces is laid out as a plane of metres by the same rules a flat world has (biomes over fields, recipes, layers), a direction is planned by the face it falls on, and what is placed is taken to the planet and stands along its up. The fields are the planet's own: the ground's height, its slope, noise read in three dimensions (so a field wanders over an edge between two faces with no seam), `paint.<layer>` for each of the planet's layers, and the fields the provider names with `fields` (an ecology). The biomes also paint the ground (`paintGround`), so what is drawn and what grows are one map. `seaLevel` is the height of the sea: lower ground is under water. Zones (`WorldZone`) stand at a position in the world and are kept on the face they fall on.
-The ground collides: the finest nodes within `collisionDistance` of every moving 3D body and character are built as collision geometry from the same samples the ground is drawn from (`collision`, `collisionDistance`, `collisionLayer`, `friction`, as on a flat terrain). A planet's transform is a position only: a turned or scaled planet's collision stands where it would be unturned. `layers` names up to four `.esterrainlayer` files, as on a flat terrain; each is read on the planes of the world's axes by how much the ground faces them, with a wider read mixed in far off so the repeat is lost. Without layers the ground is the four colours. A planet's provider can hand the engine its generator as a module a worker can load (`workerSource`: the text of a self-contained module of plain JavaScript whose default export answers `sample`, `fields`, `versions` and `id`). The world is then laid out and the ground painted on worker threads, and the main thread only puts the answers in the world, a few a frame; without it everything is done on the main thread as before.
+The ground collides: the finest nodes within `collisionDistance` of every moving 3D body and character are built as collision geometry from the same samples the ground is drawn from (`collision`, `collisionDistance`, `collisionLayer`, `friction`, as on a flat terrain). A planet's transform is a position only: a turned or scaled planet's collision stands where it would be unturned. `layers` names up to four `.esterrainlayer` files, as on a flat terrain; each is read on the planes of the world's axes by how much the ground faces them, with a wider read mixed in far off so the repeat is lost. Without layers the ground is the four colours. A planet's provider can hand the engine its generator as a module a worker can load (`workerSource`: the text of a self-contained module of plain JavaScript whose default export answers `sample`, `fields`, `versions` and `id`). The world is then laid out and the ground painted on worker threads, and the main thread only puts each answer in the world as it arrives; without it everything is done on the main thread as before.
Set `sea` and the planet has a sea: a translucent, lit sphere at `seaLevel` above the radius, in which the ground that dips below it stands (waves and shore foam are the flat water's and come to the sphere later). The sky follows the horizon round: give `skyAtmosphere` and `heightFog` the planet's radius and centre and they work out the sky and the haze for the ground the camera stands on, with the sun a fixed direction, so a place's day and night are where it is on the planet.
diff --git a/docs/astro/src/content/docs/zh-cn/graphics/terrain.mdx b/docs/astro/src/content/docs/zh-cn/graphics/terrain.mdx
index e5aad8523..e5741a9c7 100644
--- a/docs/astro/src/content/docs/zh-cn/graphics/terrain.mdx
+++ b/docs/astro/src/content/docs/zh-cn/graphics/terrain.mdx
@@ -197,7 +197,7 @@ registerTerrainProvider(planet);
生成的世界可以铺在星球上:在 `Planet` 所在的实体上放一个 `surface` 设为 Planet 的 `WorldGen`。立方体的六个面各按米制平面,用和平面世界一样的规则(字段之上的群落、配方、图层)铺设;一个方向由它落在的那个面来规划,放出来的东西被带到星球上,沿着当地的"上"站立。字段是星球自己的:地面高度、坡度、在三维里读的噪声(所以字段越过两个面之间的边没有接缝)、星球每个图层的 `paint.<层名>`,以及提供器用 `fields` 命名的字段(比如生态)。群落同时给地面上色(`paintGround`),画出来的和长出来的是同一张图。`seaLevel` 是海平面高度,比它低的地面在水下。区域(`WorldZone`)站在世界里的一个位置上,归它落在的那个面。
-地面有碰撞:每个运动的 3D 刚体和角色在 `collisionDistance` 内的最细节点,会用画地面的同一批采样建成碰撞几何(`collision`、`collisionDistance`、`collisionLayer`、`friction`,和平面地形一样)。星球的变换只有位置:旋转或缩放过的星球,碰撞仍站在没旋转时的位置。`layers` 可以写最多四个 `.esterrainlayer` 文件,和平面地形一样;每层按地面朝向世界坐标轴的程度,在三个投影面上取样,远处混入更宽的一次取样,看不出重复。不写图层时地面就是四种颜色。星球的提供器可以把自己的生成器交给引擎,作为 worker 能加载的模块(`workerSource`:一段自包含的纯 JavaScript 模块文本,默认导出实现 `sample`、`fields`、`versions` 和 `id`)。这样世界的铺设和地面上色都在 worker 线程里完成,主线程只负责把结果放进世界,每帧放几个;不提供时一切仍在主线程上做。
+地面有碰撞:每个运动的 3D 刚体和角色在 `collisionDistance` 内的最细节点,会用画地面的同一批采样建成碰撞几何(`collision`、`collisionDistance`、`collisionLayer`、`friction`,和平面地形一样)。星球的变换只有位置:旋转或缩放过的星球,碰撞仍站在没旋转时的位置。`layers` 可以写最多四个 `.esterrainlayer` 文件,和平面地形一样;每层按地面朝向世界坐标轴的程度,在三个投影面上取样,远处混入更宽的一次取样,看不出重复。不写图层时地面就是四种颜色。星球的提供器可以把自己的生成器交给引擎,作为 worker 能加载的模块(`workerSource`:一段自包含的纯 JavaScript 模块文本,默认导出实现 `sample`、`fields`、`versions` 和 `id`)。这样世界的铺设和地面上色都在 worker 线程里完成,主线程只负责在结果到达时把它放进世界;不提供时一切仍在主线程上做。
设置 `sea` 星球就有海:一个半透明、受光的球面,高出半径 `seaLevel`,低于它的地面站在水里(波浪和岸边泡沫是平面水体的,之后会来到球面)。天空跟着地平线转:给 `skyAtmosphere` 和 `heightFog` 填上星球的半径和中心,它们就按相机站着的那片地面算天空和雾,太阳是固定方向,所以一个地方的昼夜取决于它在星球上的位置。
diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.md
index b79be3640..efeb98357 100644
--- a/sdk/etc/index.api.md
+++ b/sdk/etc/index.api.md
@@ -2458,6 +2458,7 @@ entities: number[]
## ChunkLayer — interface @experimental
```
+async: boolean | undefined
extent: readonly [number, number, number, number] | null
generation: string | number
label: string
diff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.md
index 0dfa93277..c9310e818 100644
--- a/sdk/etc/index.native.api.md
+++ b/sdk/etc/index.native.api.md
@@ -2458,6 +2458,7 @@ entities: number[]
## ChunkLayer — interface @experimental
```
+async: boolean | undefined
extent: readonly [number, number, number, number] | null
generation: string | number
label: string
diff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.md
index db1f9bf5d..f7ba92a27 100644
--- a/sdk/etc/index.node.api.md
+++ b/sdk/etc/index.node.api.md
@@ -2453,6 +2453,7 @@ entities: number[]
## ChunkLayer — interface @experimental
```
+async: boolean | undefined
extent: readonly [number, number, number, number] | null
generation: string | number
label: string
diff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.md
index 982eee545..ce4387a54 100644
--- a/sdk/etc/minigame.api.md
+++ b/sdk/etc/minigame.api.md
@@ -2453,6 +2453,7 @@ entities: number[]
## ChunkLayer — interface @experimental
```
+async: boolean | undefined
extent: readonly [number, number, number, number] | null
generation: string | number
label: string
diff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.md
index 7b540f873..0db6c7afe 100644
--- a/sdk/etc/wechat.api.md
+++ b/sdk/etc/wechat.api.md
@@ -2453,6 +2453,7 @@ entities: number[]
## ChunkLayer — interface @experimental
```
+async: boolean | undefined
extent: readonly [number, number, number, number] | null
generation: string | number
label: string
diff --git a/sdk/src/residency/chunks.ts b/sdk/src/residency/chunks.ts
index 273c5a626..f8c0b3350 100644
--- a/sdk/src/residency/chunks.ts
+++ b/sdk/src/residency/chunks.ts
@@ -49,6 +49,8 @@ export interface ChunkLayer<T> {
generation: number | string;
/** Where the layer is wanted round; absent, the world's streaming sources (or the eye, where there are none). */
sources?(): Iterable<ChunkSource>;
+ /** True when `make` answers later, off the main thread: the layer is then asked for every chunk it wants, at once, and is not held to the frame's time. */
+ async?: boolean;
/** Makes a chunk. Null is "not yet" (what it stands on is not ready) and is asked again later; a promise answers later. */
make(cx: number, cz: number, signal: AbortSignal): T | null | Promise<T | null>;
/** Puts a made chunk into the world. An older version of it, if one was published, has just been released. */
@@ -95,8 +97,6 @@ interface Layer<T> {
/** At most this many chunks of a layer are answered later at once. */
const MAX_IN_FLIGHT = 16;
-/** The most answers put in the world in one frame, however much time it has. */
-const MAX_COMMITS = 16;
const keyOf = (cx: number, cz: number): string => `${cx},${cz}`;
@@ -184,11 +184,10 @@ export class ProceduralChunks {
}
/**
- * One frame: releases what no source is near, then makes what is wanted, nearest first across every layer, the chunks a source
- * stands in at once and the rest while `hasTime` says so.
+ * One frame: releases what no source is near, then makes what is wanted, nearest first across every layer: the chunks a source
+ * stands in at once, and the rest while `hasTime` says so (an `async` layer's, all of them).
*/
step(hasTime: () => boolean): void {
- this.commit(hasTime);
const world = this.suspended ? [] : this.sources_();
const wanted: { layer: Layer<unknown>; cx: number; cz: number; dist: number }[] = [];
for (const layer of this.layers_.values()) {
@@ -234,22 +233,14 @@ export class ProceduralChunks {
inFlight.set(layer, n);
}
for (const w of wanted) {
- if (w.dist > 0 && !hasTime()) break;
+ // A layer whose chunks are answered later (off the main thread) takes no time from the frame: it is not held to the frame's budget.
+ if (w.dist > 0 && !w.layer.def.async && !hasTime()) continue;
if ((inFlight.get(w.layer) ?? 0) >= MAX_IN_FLIGHT) continue;
if (this.make(w.layer, w.cx, w.cz)) inFlight.set(w.layer, (inFlight.get(w.layer) ?? 0) + 1);
}
}
/** Makes one chunk; true when it is now being answered later. */
- /** The answers that came back and have not been put in the world yet. */
- private readonly commits_: (() => void)[] = [];
-
- /** Puts answers in the world: a couple a frame at least, and more while the frame has time. */
- private commit(hasTime: () => boolean): void {
- let n = 0;
- while (this.commits_.length > 0 && (n < 2 || (n < MAX_COMMITS && hasTime()))) { this.commits_.shift()!(); n++; }
- }
-
private make(layer: Layer<unknown>, cx: number, cz: number): boolean {
const key = keyOf(cx, cz);
let c = layer.chunks.get(key);
@@ -274,14 +265,11 @@ export class ProceduralChunks {
}
chunk.making = { generation, abort };
made.then((value) => {
- // What was made off the main thread waits its turn to be put in the world: a burst of answers is not one frame's work.
- this.commits_.push(() => {
- // Thrown away if the chunk was let go, made again, or the layer moved on while this was being made.
- if (chunk.making?.abort !== abort || abort.signal.aborted) return;
- chunk.making = null;
- if (layer.chunks.get(key) !== chunk || generation !== layer.def.generation) return;
- if (value !== null) this.publish(layer, chunk, value, generation);
- });
+ // Thrown away if the chunk was let go, made again, or the layer moved on while this was being made.
+ if (chunk.making?.abort !== abort || abort.signal.aborted) return;
+ chunk.making = null;
+ if (layer.chunks.get(key) !== chunk || generation !== layer.def.generation) return;
+ if (value !== null) this.publish(layer, chunk, value, generation);
}, (e: unknown) => {
if (chunk.making?.abort !== abort || abort.signal.aborted) return;
chunk.making = null;
diff --git a/sdk/src/terrain/planetPlugin.ts b/sdk/src/terrain/planetPlugin.ts
index b6a5912ca..d3cde6649 100644
--- a/sdk/src/terrain/planetPlugin.ts
+++ b/sdk/src/terrain/planetPlugin.ts
@@ -155,8 +155,6 @@ interface Built {
providers: number;
/** The painters' revision the pages were last painted at. */
painted: number;
- /** Pages that came back from a worker and are not in the atlas yet. */
- ready: { key: string; image: PageImage }[];
/** The sea's entity, mesh and material instance, when the planet has one. */
sea: { entity: Entity; mesh: number; material: number; base: number } | null;
}
@@ -250,7 +248,7 @@ export class PlanetPlugin implements Plugin {
const built: Built = {
signature, data: { ...data }, provider: null, source: null, tree: null, epoch, table: new PageTable(ATLAS_SIZE),
heights: 0, paint: 0, mesh: 0, instance: 0, nodes: new Map(), spare: [], wanted: new Map(), asked: new Set(), pending: false, failure: null, arrays: [], packed: '', packing: false,
- providers: planetProvidersRevision(), painted: 0, sea: null, ready: [],
+ providers: planetProvidersRevision(), painted: 0, sea: null,
};
const provider = planetProvider(data.provider);
if (!provider) {
@@ -527,13 +525,6 @@ export class PlanetPlugin implements Plugin {
return true;
};
const epoch = built.epoch;
- // The pages a worker made, in the atlas: two a frame at least, and more while the frame has time.
- let stored = 0;
- while (built.ready.length > 0 && (stored < 2 || (stored < 12 && bakes.hasTime()))) {
- const r = built.ready.shift()!;
- if (built.epoch === epoch && built.heights) store(r.key, r.image);
- stored++;
- }
for (const node of order) {
const key = sphereNodeKey(node);
if (built.asked.has(key)) continue;
@@ -543,8 +534,7 @@ export class PlanetPlugin implements Plugin {
built.asked.add(key);
void image.then((img) => {
built.asked.delete(key);
- // Put in the atlas in a later frame's turn, a few at a time: a burst of answers is not one frame's work.
- if (built.epoch === epoch && built.heights) built.ready.push({ key, image: img });
+ if (built.epoch === epoch && built.heights) store(key, img);
}, (e) => {
built.asked.delete(key);
log.warn('planet', `the provider failed a page (${key})`, e);
diff --git a/sdk/src/worldgen/worldgenPlugin.ts b/sdk/src/worldgen/worldgenPlugin.ts
index 9289c0615..347b8e51a 100644
--- a/sdk/src/worldgen/worldgenPlugin.ts
+++ b/sdk/src/worldgen/worldgenPlugin.ts
@@ -690,6 +690,7 @@ export class WorldGenPlugin implements Plugin {
? [Math.floor(bounds[0] / size), Math.floor(bounds[1] / size), Math.ceil(bounds[2] / size), Math.ceil(bounds[3] / size)] : null;
chunks.set<PlacedChunk>(layerIdOf(entity, layer.id, unit.key), {
label: 'Laying out the world',
+ async: !!unit.away,
originX: 0, originZ: 0, sizeX: size, sizeZ: size, extent,
loadRadius: layer.drawDistance, unloadRadius: layer.drawDistance + size,
generation: `${built.signature}:${ground}`,
@@ -718,6 +719,7 @@ export class WorldGenPlugin implements Plugin {
? [Math.floor(bounds[0] / fsize), Math.floor(bounds[1] / fsize), Math.ceil(bounds[2] / fsize), Math.ceil(bounds[3] / fsize)] : null;
chunks.set<PlacedChunk>(farId, {
label: 'Laying out the far plants',
+ async: !!unit.away,
originX: 0, originZ: 0, sizeX: fsize, sizeZ: fsize, extent: fextent,
loadRadius: built.plants.reach, unloadRadius: built.plants.reach + fsize,
generation: `${built.signature}:${ground}`,
diff --git a/sdk/tests/procedural-chunks.test.ts b/sdk/tests/procedural-chunks.test.ts
index 43a0c552c..cc1885d96 100644
--- a/sdk/tests/procedural-chunks.test.ts
+++ b/sdk/tests/procedural-chunks.test.ts
@@ -110,9 +110,6 @@ describe('procedural chunks', () => {
expect(answers).toHaveLength(2);
answers[1]!.resolve('new');
await Promise.resolve();
- // An answer that came back waits for the next frame's turn to be put in the world.
- expect(live.size).toBe(0);
- chunks.step(always);
expect([...live.values()]).toEqual(['new']);
expect(chunks.stateAt('l', 1005, 5)).toBe('ready');
});
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index db5c48d26..bb0b1c9ae 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -2916,6 +2916,8 @@ export const NOTED = {
{"note":"The editor's own eye shows the scene's post-processing."},
"feat(terrain): the maths of ground on a cube sphere and the nodes drawn round an eye":
{"internal":"The first layer of spherical terrain: pure maths and node selection, not yet drawn."},
+ "fix(chunks): an answer from a worker is put in the world when it arrives, with no queue and no per-frame limit":
+ {"internal":"The worker threads of this release, with no frame slicing."},
"feat(worldgen): a planet's world and pages are worked out on worker threads":
{"note":"A generated world on worker threads."},
"perf(chunks): the chunk and plant growth steps are measured as scopes, and the plan to move generation to worker threads":