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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
chore(changelog): the terrain fix is unreleased, not part of 0.104.0
yhh2bc91919fa20
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fece70519..9ac6aec0e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,10 @@ published separately; it ships inside the editor.## [Unreleased]+### Fixed++- **A large ground no longer throws every frame once its pages run out.** With every page slot in use (a `detail` that wants more than the 900 there are, or a long flight), `TerrainSystem` threw `Cannot read properties of undefined (reading 'slot')` each frame: the ground stopped following the eye, and the log filled. The ground chose what to draw, made new pages, then placed its nodes, and a page was marked as in use only when placed; a page made in between took the slot of the least recently drawn one, which was a page just chosen. What is drawn is now marked before anything is made, and when every slot is drawn that frame the new page waits.+## [0.104.0] - 2026-11-12### Added@@ -57,7 +61,6 @@ published separately; it ships inside the editor.### Fixed-- **A large ground no longer throws every frame once its pages run out.** With every page slot in use (a `detail` that wants more than the 900 there are, or a long flight), `TerrainSystem` threw `Cannot read properties of undefined (reading 'slot')` each frame: the ground stopped following the eye, and the log filled. The ground chose what to draw, made new pages, then placed its nodes, and a page was marked as in use only when placed; a page made in between took the slot of the least recently drawn one, which was a page just chosen. What is drawn is now marked before anything is made, and when every slot is drawn that frame the new page waits.- **A game no longer keeps a copy of the built-in ripple map.** The map of wind ripples water reads (256 pixels square) was made when the engine started and the device kept its bytes to put back after a loss: 262,144 bytes in every game, water or none, which is what took the device-roundtrip criteria for text and for DragonBones over their 64 KiB ceiling (315,852 read). The map is content the engine can build again from code, so it is now owed after a loss and built again; what the device keeps is back to 53,708 bytes. A new criterion, `device-roundtrip-ripples`, loses the device twice under a shader that reads `default(ripples)` and compares the frame, on both backends. With it, what had been red on master since 12 November: `NativeChannel` is no longer tagged `@public` (nothing in a golden project calls it yet), `encodeWav` takes read-only channels, and four checks say what the engine now does.- **A picture made in the editor ships as a recipe.** The editor's image tools type an `.esimage` as a picture's source, and an export sent an asset of that type out as a plain file: a scene that named one got a texture nothing could load, and a map's own picture was left out of the package. A picture's source is now that one type everywhere (a file with no `.meta` is adopted as it too), ships as a texture, has a texture's import settings, and the cook follows what it names. In the editor a texture field takes a picture's source, the viewport draws it as a game does, the image tools write a picture's normal and surface maps as recipes beside it (`wall_normal.esimage`, set as data) and answer their refs, and text is set by the same drawer a game uses. Checked in the hidden editor (written, placed on sprites, drawn) and in an export of metas of that type opened twice.- **A splatmap is read between its pixels.** A `Terrain` asked its splatmap for the nearest pixel. Near the eye a page samples the ground finer than the paint is (a splatmap of 3 m a pixel under pages of under a metre), so every pixel of the splatmap was drawn as a flat square, and a wide fade from grass into sand was a staircase of squares that smeared into streaks at a low angle. The splatmaps are now read between their four nearest pixels, on the workers as here; a ground painted in whole pixels (a brush's own) reads as it did at the pixels themselves.