# Changelog, part 3

Part 3 of 8: [newer](2.md) · [older](4.md).

- **A together test costs what a plain one does, and six smaller fixes**: `change.test`
  with `with` no longer reads every field of both games at every step (Breaker's 7,236
  steps: 194 s, now 1.2 s, what a test without `with` takes). `differs.comparison` is made
  only after a field differs, by playing each run again to that step, so `extra_steps`
  now counts every column: at most (hands + 1) times the step. With `before`, a
  change of `with` alone is played over `before`, not over the served game, where it
  showed the together value. `project.undo {landing}` removes a shot the landing
  added, leaves no `.frost/undo-landing` behind, and `undone` stays true after the
  journal's 64 changes. `frost export` of a game in C# names packages restored as
  download dependencies too, and of two versions with the same numbers takes the
  release over a pre-release (`rc.10` over `rc.2`). `frost run --record` writes an input
  that goes from 0 to -0. A peer's input that is NaN or an infinity is refused
  (`E0547`): send finite numbers. No recorded checksum moves.
- **Playable engine demos**: the engine adds Bunnymark, grid-based boids in Luau and C#,
  and a Jolt box pyramid, with small recorded runs and reproducible benchmark tools.
  The engine's own checks play them too. Existing games and their checksums are unchanged.
- **Opt-in HDR presentation**: an `aces` frame-graph effect makes float mesh/sky
  passes retain linear light above 1, including emission, fog and blending. The effect
  applies exposure (`strength`, default 1), the ACES fitted curve, then sRGB encoding.
  Draw layers after it to leave UI/text unchanged; the engine's `torch/tonemap.toml` example shows how.
  Without `aces`, existing pixels, targets and pass counts stay unchanged. WebGL2 now
  accepts half-float targets when renderable, filterable and blendable; unsupported
  devices refuse the graph (E0208). `frame.at` names the presentation unread.
  A game's own effect named `aces` must be renamed. This adds no visible beam.
- **Custom fields can hold doubles and unsigned words**: declare `{ f64 = 0.0 }`
  or `{ u32 = 0 }` in `[components]`. Luau, C# columns and `[State]` (`uint`),
  scenes, snapshots and inspection preserve their precision. Float equality and
  checksums treat all NaNs alike, as before. Existing declarations and recorded
  checksums are unchanged; no migration is needed.
- **Fog without a Sky**: in 3D, `Fog = { color = 0x183040, density = 0.058 }` on
  the lowest entity fades lit meshes and ground by `1 - exp(-(density * distance)^2)`.
  Defaults are black and density 0 (off); a Sky keeps its existing haze and ignores Fog.
  No Fog keeps the old pixels and checksums. A game's own `Fog` component must be renamed.
  `frame.at` explains fog colour and share; this adds no visible torch beam.
- **A torch can project a picture**: the shadow-winning spot's `Light.cookie` names a PNG
  as other pictures do, multiplying its light by linear RGB and alpha across the cone.
  The default `""` keeps previous checksums and pixels, with no cookie sampling or pass.
  Other lights ignore it. `frame.at` explicitly names its unsampled cookie.
- **One spot can cast shadows**: `Light = { kind = "spot", shadows = true }` uses a
  1024² perspective map with soft edges, including posed meshes and ground, beside the
  sun's map. Among the first eight point/spot lights, the lowest entity spot requesting
  shadows with `0 < outer < 90` wins. Set `shadows = false` for the old appearance and
  no extra pass. `frame.at` names its unread shadow map; its colour is then partial.
- **Embers takes place in a ruined foundry**: both language versions add staggered
  outer piers, broken walls, distant towers, bronze ground inlays and three warm lamps.
  Five ember spill lights leave room for the lamps within the eight-light limit; all
  eight stones and the warden eyes keep their emission. Pickup sparks are larger,
  live longer and number 32. Only dressing and effects change the recorded worlds;
  keep the older arena scene and script together to keep the older appearance.
- **Together tests show each change alone**: `change.test` with `with` adds
  `differs.comparison` for a differing component field: each change's own value,
  last writer and up to five observed steps beside the combined run. `was` remains
  the test reference. Missing values and unplayable standalone runs are explicit;
  `extra_steps` reports standalone work needed. Gameplay and checksums are unchanged.
- **3D light shares follow materials**: `frame.at` now includes roughness and metal
  overrides, sky reflection, emission and tint inherited from parents. For transparency,
  `color` is the premultiplied surface contribution and `cover` its coverage; `unread`
  names the unseen destination and other unsampled inputs. Ordinary opaque materials
  keep their answers. Rendering and recorded checksums are unchanged.
- **Rollback corrects an input whose zero has the other sign.** A late `-0` used to
  leave a prediction of `+0` in place (and conversely), so a script that distinguishes
  them could disagree with a peer that had the input on time. Corrections now compare
  the input's bits. Input history and its recording text preserve `-0.0` too, so a
  recorded network game replays with the same signs. Finite nonzero inputs are unchanged.
- **A C# desktop export reports only the package versions its restore used**, even
  when its cache holds other versions from earlier exports. An unused version fetched
  from nuget.org no longer makes an export from the SDK's own packages say it fetched.
  The SDK's newest package version is compared as numbers: `11.0.10` follows `11.0.9`.
  Nothing changes in a game's run.
- **Undo one landing**: `project.undo {landing}` reverses a landing still in this session's
  journal, merging around later independent edits and testing the inverse before writing it.
  A clash or an unsaid change is refused (`E0470`); replay sums and changed shots are written
  for the resulting game. The inverse is a new change, undone/redone by ordinary
  `project.undo`/`project.redo`. A game with shots needs a graphics adapter. Without
  `landing`, undo behaves as before. `copy.list` reads saved base texts only for changed files.
- **Embers shows the new rendering and sound tools**: the Luau and C# games give embers
  and warden eyes `Emission`, fade waking wardens with `Opacity`, add short foot specks,
  metal wall caps and dusk haze, and place pickup sounds in the arena with an explicit
  distance range. Collection sparks are smaller and bloom is gentler. Their replay
  checksums change for the visual components and bursts; the recording, rules and
  gameplay state stay the same. Existing games are unaffected; to keep an older Embers
  look, keep its scene, models, script and render/sound settings together.
- **Joining a game under way, and coming back**: `net.run {begin_with}` and `[net]
  begin_with` begin a game before every seat is taken; a `net.join` to it takes an open seat
  by a moment of the game sent as bytes, and `net.join {token}` (a menu's `net.join()`,
  which a shipped player gives the token it kept) takes back the seat its player left
  (`E0568`, `E0569`). `net.status` has `token`, `open` and `join`. No game plays or sums
  differently.
- **A game's own menu hosts and joins**: scripts have `net.host(address?)`,
  `net.join(address?)`, `net.cancel()`, `net.state()` and `net.player()` (C#: `Net`), and
  `[net]` takes `start` (the scene every peer starts in at step 0 once everyone is in)
  and `address`. A script that defined a global `net` of its own now hides the engine's.
  Duel's recording moved into the engine's `duel/run.toml` example; no checksum moved.
- **Particles**: an `Emitter` part and `emit(thing, n)` (C#'s `World.Emit`) let a thing's
  specks go as one `Burst`, drawn from a seed and its age and in no world: squares in 2D,
  unlit squares that face the camera in 3D. Both `Emitter` and `Burst` are declared in every
  game: a game's own component of either name must be renamed (`E0528`). A game with
  neither is as it was.
- **A bloom in one line**: `[render] bloom = { threshold, strength }` (0.85 and 1.5 when
  left out) adds a bloom to the graph the engine makes, in 2D and 3D; a game with its own
  `passes` is refused the line in words. No game that has no such line behaves
  differently.
- **Sound in 3D**: in a 3D game `sound.play(name, { at = thing })` (C#'s `Sound.Play(at:)`)
  is heard from where the thing is against the camera that sees: panned by the camera's
  own right and quieter with distance, whole within 2 metres and nothing past 30, which
  `[sound] near, far` and a play's own `near` and `far` change. It was panned by the
  thing's world x against the camera's x and never faded. A 2D game, and a play with `x`
  or no place, is heard as it was.
- **A 3D thing's light of its own**: `Emission = { color, strength }` beside a `Mesh` adds its
  colour times its strength to what lights it, with its parents', and a graph that blooms
  spreads a strong one into a halo. `Emission` is declared in every 3D game: a 3D game's
  own component of that name must be renamed (`E0528`). No game that has none draws
  differently.
- **A game's component named as one of the engine's is told so**: a project's
  `[components]` that declares a name the engine owns is refused with `E0528` (was
  `E0001`), which names it, the revision that took it and says to rename the game's own.
- **A 3D thing takes its `Tint`**, as a 2D one does: `Tint = { color }` beside a `Mesh` (and
  on every thing it is under, by `Parent`) multiplies its colour, with `Mesh.tint`, which
  stays. A 3D game that gave a Mesh thing a `Tint` other than white sees it tinted where it
  was not; no other game draws differently.
- **A 3D thing fades by its `Opacity`**, as a 2D one does: `Opacity = { alpha = 0.5 }` beside
  a `Mesh` (and on every thing it is under, by `Parent`) covers what is behind it by that
  much, drawn after every whole thing as a see-through model is; at 0 it is not drawn. Its
  shadow stays whole. A 3D game that gave a Mesh thing an `Opacity` below 1 sees it fade
  where it was drawn whole; no other game draws differently.
- **A metal under a sky mirrors it**: in a game with a `Sky`, a metal surface adds the
  sky's colours the way it reflects (blurred as it is rougher), times its own colour. A
  game with no Sky, or whose models have no metal, draws as it did.
- **Tags**: every game has a `Tags = { list = "pushable, heavy" }` part, the words a thing
  is known by, and `world.query {tag}` finds the things whose list holds a word; a script
  reads them as any part (`get(e, "Tags", "list")`, `each`). A game that declared a
  component of its own named `Tags` must rename it. No other game behaves differently,
  every checksum the same.
- **The game's own picture at another shape**: `frame.capture {fill: true, width,
  height}` draws the frame from the game's camera into exactly that size with no bars,
  the world going on beside the frame, and says where the frame is (`game_rect`);
  `frame.view {fill}` says the same. No game behaves differently.
- **A thing's say over its model's look, told to the editor**: `Mesh` gains `roughness`
  and `metallic` (below 0, the default: the model's own) and `blend` (`""`, the default:
  as the model says; `"blend"`; `"opaque"`), each out of the checksum while at its
  default, so every recorded game holds. `assets.cooked` keeps each part's `material` (its
  name) and adds `paint`, what that material is. No game behaves differently.
- **A model's material drawn as glTF says**: a material whose `alphaMode` is `BLEND` is
  see-through by its alpha and drawn after everything that is not, the farthest first
  (it was drawn opaque); a `doubleSided` one lights its back faces as its front ones
  (they were lit as facing away); an occlusion picture of its own darkens what it covers
  (only one packed with metal and roughness did); and the base colour picture's
  `KHR_texture_transform` moves, turns and scales every picture of its material (it was
  left out). The model importer (6) keeps the transform (VMSH 4), so every model is cooked
  again once. A game with such a model draws differently; its checksum does not move. No
  way to have the old pictures: remove the field from the model.
- **A shipped game plays over a network**: `frost export desktop` gives a game with a
  `[net]` table a player with the `net` feature, which takes `--host [IP:PORT]` and
  `--join IP:PORT` (`--for SECONDS` with no window); a game without one is exported as
  before, with no network code. A peer the others dropped for silence ends with E0549
  ("the others played on without you from step N"). `net.condition` takes
  `cut_after_ms` and `cut_for_ms`.
- **Multiplayer, live**: `frost dev GAME.toml --host` and `--join IP:PORT` play a game
  with other windows at 60 steps a second; `frost run --headless --host|--join --seconds S`
  plays with no window. `net.desync` takes `entity`, `component` and `field`;
  `net.status`'s `desync` names who last wrote the value on each side (`written_here`,
  `written_there`) and `net.status` has `words`. the engine's `duel` example's `Match` has `travel`,
  so its checksums moved. No other game plays or sums differently.
- **Together copies**: `copy.make {of: [copies]}` makes a copy that shows those copies' changes merged on the game,
  never landed; it goes when one of them changes. The landing log keeps the texts of its most recent 256 landings.
- **`copy.diff`**: what a copy changed, or a landing wrote, line by line, bounded. The landing log keeps each landing's
  texts and stages, and each file's lines added and removed; an older log's entries are answered without them
  (`copy.diff` of such a landing is `E0551`).
- **Shared moments**: copies made from one moment of the game park with one moment between them until each moves;
  `copy.list` answers `shared`. Nothing a copy does changes.
- **Pages**: `copy.list` answers at most 100 copies unless `limit` says (`next` names where to go on), and
  `copy.events` at most 500 events (`limit`, `next`). A tool that read every copy in one answer asks again after `next`.
- **`copy.claim`**: a copy may claim scene things and files, advisory: everyone sees it, nothing is refused for it, a
  landing on a claimed thing says whose it was (`claimed`).
- **Cheap copies**: a copy's files are clones where the disk can (APFS), and its record keeps its base's texts once,
  shared by every copy, in `.frost/copies/.texts`: 20.8 KB a copy of Ballast against 766 KB. A record an older engine
  wrote (texts in it) is still read; one written now is not read by an older engine.
- **How a 3D pixel is lit**: `frame.at`'s `drawn` says each light's share of the pixel's light and why
  (`in shadow`, `faces away`, `out of its reach`, how far, and how far into a Sky's haze), worked out by
  the lit pass's twin on the CPU.
  No game behaves differently.
- **W0459**: `frost check` and `frost export web` say of a ground over 512 samples a side how much memory its mesh takes (about 80 MB at 1024). A warning only.
- **A ground is drawn in tiles**: 64 by 64 cells each, only those in view, each with every corner, every second or every fourth (the fewest that move it under half a pixel), 8 bytes a corner: a ground of 1024 samples a side holds about 12 MB on the device where it held 80 MB. `render.passes` counts a draw a tile. No world value, checksum or picture of a test game moves.
- **A ground is drawn in tiles**: 64 by 64 cells each, only those in view, each with every corner, every second or every fourth (the fewest that move it under half a pixel), 8 bytes a corner: a ground of 1024 samples a side holds about 12 MB on the device where it held 80 MB. `render.passes` counts a draw a tile. No world value or checksum moves; a ground's picture may differ by one level in up to about one pixel in a thousand from its one mesh's (each corner's normal is kept in two 16-bit numbers, and its x, z and uv are worked out on the device), so the ground test games' kept shots were taken again: ground climb 114 and end 114, evening late_morning 106 and afternoon 189, fields 168, lamps day 141 and night 57 pixels of 230,400, each by one level. Every other test game's shot is as it was.
- **W0459**: `frost check` and `frost export web` say of a ground over 512 samples a side how much memory its tiles take (about 12 MB at 1024). A warning only.
- **Night lamps**: `Light = { ..., night = true }` shines only as the Sky's sun goes down, of the picture alone (its `energy` stays as written). Off by default: no game behaves differently.
- **What a 3D pixel draws**: `frame.at` answers `drawn`, the thing whose triangle is drawn at the
  pixel (posed shapes too) with its part, triangle and material, whatever colliders are in front;
  `blame.pixel` names it in a 3D game, where it named nothing. No game behaves differently.
- **Pictures for an editor of posed things**: `frame.capture` draws a thing at a clip and time for one
  picture (`pose`), the bones of every posed thing (`overlay = "skeleton"`), the picture a seek to a
  step would show (`step`) and the one a `game.try` from a snapshot would show (`from`, `inputs`,
  `steps`), none moving the game; `assets.cooked` says a model's clips and bones and `game.info` the
  project's `poses`. Posing reads a column at a time (1,600 figures: 1.4 to 0.95 ms a picture). No
  game behaves differently and no checksum or shot moves.
- **Haze**: `Sky = { ..., haze = 20, haze_far = 80 }` fades the meshes into the sky's horizon colour from 20 to 80 units from the eye. Off by default: no game that says nothing draws differently.
- **`copy.list` for hundreds**: `{summary: true}` answers counts and groups with no rows; `{group, after, limit}` pages
  the rows and answers `next`. A list asked with none of them is as it was.
- **`copy.events`**: what a party did, in order: each copy made, working (with the things and fields it changed),
  asked to land, tested, landed, held, refused, queued, rebased, parked, given, dropped. Nothing changes for a game.
- **The landing queue**: `copy.queue` and `copy.flush` land many copies' changes in batches, each tested once, in the
  order asked; a batch that fails is halved down to the landing that fails. `copy.list` answers `queued`. `copy.land`
  is as it was.
- **`keeps_things`**: a Luau script may say at its top level which numbers it keeps in `state` are things,
  `keeps_things({ "bits.*.e" })`; a landing then holds them to the same things when an add moves them, as a C#
  `Thing` field already is. `frost check` plays the game's run and warns of a kept number that looks like a thing's and
  is not declared (`W0312`, with the line to add) and of a declared path that holds no thing (`W0313`). The templates
  declare theirs. The line keeps nothing: no checksum moves. A game with a global of its own named `keeps_things` must
  rename it.
- **A test of a change pairs things by name**: `frost test --says`, `change.test` and a landing compare the two games
  with each named thing matched by its name and the others by their order (or by slot when the change says
  `entities`); a change that only moved things to other slots (a thing added to a scene) no longer differs where it
  did not say, unless a script keeps a moved thing's number in `state`, which is compared as a number. A part may be a whole thing, `added_7`.
  `world.checksum` takes `paired`. No game plays differently and no recorded checksum moves.
