# Changelog, part 2

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

- **`frost run --size WxH` draws the pictures that size and no longer changes the game**: a
  run's shots and frames are W by H, the frame filling them (a video at 1920x1080), and the
  game plays in its own frame, the one its recording was made in, so its checksums are the
  same at any size. Before, `--size` gave the game another frame, which the game sees (its
  interface anchored to the frame's edges, a 3D camera's sides, a 2D game's world,
  `frame.size()`), so Embers at 1920x1080 came to another run checksum than its recording's.
  To run a game at another shape as `--size` did, write `--frame WxH`; W0456 says when that
  replays a recording in another frame than its own, and to use `--size` for bigger
  pictures of the same run. No game's checksum changes.
- **The C# web compiler is called Fusion, and its attribute is `[FusionCompile]`**, as Unity's
  Burst has `[BurstCompile]`: mark every C# Step class `[FusionCompile]` for `frost export web`.
  `[FusionCompile]` still marks a class the same way until the next release, and `frost check`, `frost run`
  and `frost export web` warn `W0314` on its line ("`[FusionCompile]` is now `[FusionCompile]`; the old
  name works until the next release"): write `[FusionCompile]` in its place. A script's own
  type may not be named `FusionCompileAttribute` (`VEN102`). Messages that said Fusion say
  Fusion. No game's checksum changes.
- **A file named through `..` inside the game exports and loads**: a model whose picture is
  `../textures/t.png` from its own folder was refused by `frost export` (`E0511`, outside the
  project's folder) although it is inside, and a page could not find such a file among
  those handed to it (`E0401`). Both now resolve the `..`; a path that leaves the game's
  folder is refused as before.
- **`frost schema [--kind scene|project|ground] [GAME.toml]` prints a scene's, a project file's
  or a ground file's JSON Schema**, made from the engine's own component schemas, the reader's own key lists
  and the reference's words, with the game's components, comments and actions: an editor
  with Taplo or Even Better TOML completes and checks a file that begins
  `#:schema ./scene.schema.json`. `world.components` says each text field's `words` (a 3D
  collider's `"box"`, `"sphere"`, `"capsule"`, `"cylinder"`, `"ground"`). No game changes.
- **JPEG pictures are read**: a sprite's `.jpg` or `.jpeg`, a picture a `.gltf` names
  and one inside a `.glb` now draw (baseline or progressive, 8 bits a channel; EXIF
  orientation is not applied). A model refused for its JPEG pictures now loads: no
  conversion to PNG is needed. A tool reads the JPEG when it loads or exports the game;
  `frost export` ships a sprite's or a model's neighbouring JPEG as the PNG of its pixels
  under its own name, so no player grows and a JPEG saves no download. One that cannot
  be read (12 bits, lossless, arithmetic coding, cut short) is `E0534`, naming the
  file. Games with no JPEG keep their checksums and pictures.
- **The rest of the keyboard has names**: `[input.keys]` can bind "PageUp", "PageDown",
  "Home", "End", "Insert", "Delete", "Backspace", "F1" to "F12", "ShiftLeft" and the other
  modifiers by side, "CapsLock", punctuation ("BracketLeft", "Semicolon", "Backquote" and
  the rest) and the number pad ("Numpad0" to "NumpadEnter"), named as a browser's `code`
  names the key's place on any layout. `E0602` now says what a name probably meant
  ("Shift": "ShiftLeft"). A key the system or browser keeps (F5, Ctrl+W, Cmd+Q, Alt+F4)
  may never reach a game.
- **The mouse's wheel, its motion and a captured pointer**: `"MouseWheel"`, `"MouseWheelX"`
  (notches) and `"MouseDeltaX"`, `"MouseDeltaY"` (the frame's pixels this step) bind in
  `[input.keys]` like a stick, recorded and replayed as any action and not held to -1 to
  1. `input.capture(player, on)` / C# `Input.Capture` hides and holds the pointer (a
  browser's pointer lock, at the next press); `input.captured(player)` / `Input.Captured`
  says whether it was granted, recorded as `captured = true` in a stretch's `player` table.
  The ask is world state: a game that asks moves its checksum, one that never asks keeps it.
  A game with its own action named `MouseWheel` and the like is not affected; a project
  that bound those names as keys was refused before. The protocol adds `input.capture`.
- **`frost projects DIR --deep [N]` finds the games in the folders under a folder**: a
  repository whose game is a folder down (`caravan/caravan.toml`) listed nothing. With
  `--deep` (3 folders down unless a number says) each file is named from the folder asked
  about and has its `folder`, `replay` and `main`, true for the one file of each folder
  that is its game. Without `--deep` the listing is as it was. No game changes.
- **Every web player has a megabyte of stack**: a 2D player's web build had Emscripten's
  64 kB and could run out in WebGL2 (a page that never drew). It now has what a 3D one
  has, set in one place; the page starts with 960 kB more memory (about 18.4 MB in
  WebGL2), and the download is the same. Nothing to write for the old behaviour.
- Physical cumulus now has depth, self-shadowing and eroded edges. Moonlit ground is
  brighter and warm twilight lasts longer in sky lighting and reflections, including
  under ACES. Physical-sky pictures change; simulation and legacy skies do not.
  There is no switch for the previous physical-cloud shading. The sun stays HDR for
  the existing bloom pass.
- Physical skies shade clouds per pixel, with clearer desert weather, moonlit nights
  and a half-degree sun and moon. Live atmosphere/reflection rebuilds use fixed work
  per step and cross-fade; captures settle the same sky regardless of frame history.
  Legacy skies keep their pictures. the engine's `sky/physical/showcase.toml` example adds a 1080p view.
- Sky can opt into a physical atmosphere with `model = "physical"`, a named `look`
  (`clear`, `desert`, `alpine`, `overcast`, `storm`), or an equirectangular PNG `picture`.
  It adds atmosphere tables, stars, moon phase, two cloud sheets, cloud shadows, SH sky
  light, rough sky reflections and aerial perspective on all base backends. Existing
  skies with those three fields empty retain their picture and recorded checksums.
  See `frost reference 3d` and the engine's `sky/physical` example.
- **Point lights and more spots cast shadows**: a drawn point or spot with `shadows =
  true` besides the one spot with its own map now casts into a 2048² shadow atlas (a point
  six 512² faces, a spot 1024²; two points and a spot at most, those giving the view most
  light first, fading as they near the best left out). Checksums do not move; a picture
  with a point light that said `shadows = true` (which did nothing) or a second shadowing
  spot now has their shadows: set `shadows = false` for the old picture.
- **A thing's own far cut**: `Mesh.far` (metres; 0, as before, the project's `[lods] far`)
  cuts one thing at its own distance, faded out like the project's. Checksums do not move
  while it is 0.
- **Levels of detail and a far cut**: a model `x.glb` with `x.lod1.glb` or `x.lod2.glb`
  beside it is drawn at the level its size in the picture asks for (`[lods] sizes`), and
  nothing past `[lods] far` metres is drawn; both fade through a screen door (over `[lods]
  band` of each size either way, 0.10 unless said), so nothing
  pops and a picture never depends on the pictures before it. The levels are the game's
  files (an export takes them). Picture only: checksums, `bone` and what a thing holds are
  as they were. A game with no level files and no `[lods] far` draws as before, to the
  byte. A level whose skin is not its model's is refused (E0491); `frost check` warns of one
  painted otherwise (W0462). `frame.at` says the `lod` drawn at the pixel; `frost bench`
  counts `lod0` to `lod2` and `far_culled`.
- **One material of a model can be tinted**: `Tints = { list = "wax_seal = 0xff3020, #2 =
  0x2050ff" }` beside a `Mesh` multiplies the parts of each named material (by its name in
  the file, or `#` and its place) by a colour, over `Mesh.tint` and the thing's Tint; the
  rest are as they were. `E0483` refuses text that is not tints or names a material the
  model has not. A new component: checksums do not move, and things tinted otherwise are
  still drawn together. A game's own component named `Tints` must be renamed.
- **A streamed game's checksum moves once**: a cell's thing saved as it leaves no longer
  keeps a field the engine added later while it holds its default (`Mesh.roughness`,
  `metallic`, `blend` among them), as the world's checksum never counted one. So from now
  on a field the engine adds moves no streamed game's run; this once, a game with
  `[stream]` whose things go dormant has a new checksum: play it, see that it is right,
  and `frost test --write`. A row saved by an older engine, with every field, still comes in
  as it was.
- **A cycle a little off goes round, and `[poses]` says so over the model**: a clip goes
  round when each joint ends within a millimetre, two degrees and a thousandth of its size
  of where it began (model importer 8; it was a ten-thousandth of each), so a bought idle
  whose hips end 0.1 mm off loops now, with no tick where it starts again: the cook bends
  each channel of a clip that goes round so its last key is its first, the miss spread
  over the clip (a risen's idle's left hand jumped about 2 cm each cycle). A clip the
  project's `[poses]` names goes round or holds its end as its `loop` says (left out:
  true), whatever the model: `[poses] Idle = { seconds = 2.5 }` has it go round, and only
  another length is refused (E0486). `frost check` says (W0461) which joint and how far of a
  clip a `Pose` plays that nearly goes round and holds its end. Models are cooked again;
  no fixture's model, picture or checksum changes.
- **The lights that light the view are drawn, up to sixteen**: each frame a picture lights
  the 16 point and spot lights (was the first 8 by slot) that give what the eye sees the
  most light: brightness, and nearness to the eye for the range; a light that is off (no
  energy, a `night` lamp by day) or reaches nothing in view takes no place, and ties go
  to the lower entity. With more than 16, the last drawn dim toward the best left out, so
  none pops. Checksums do not move; a picture with more than eight such lights, or with
  off or unseen ones among its first eight, now lights the ones it left dark. There is no
  switch for the old rule: to keep a light out, turn its `energy` to 0.
- **A clip that goes round goes round for its joints too**: `bone`, `World.Bone` and what a
  `Parent.joint` holds read a `Pose` at the moment of its clip the picture shows, round and
  round for a clip that ends where it began. Before, they held the clip's last key once
  `Pose.time` passed its length, so a held sword and a script's foot stopped after one
  cycle while the figure ran on. A game that reads a joint past a looping clip's length
  moves; no fixture does.
- **Posed models are bent on the graphics device**: a `Pose` works out its model's joints
  on the CPU, once a pose, and the vertex stage bends the model's own meshes by them (four
  joints a corner) in the picture and in every shadow map, natively, in WebGL2 and in
  WebGPU; every thing on one model is one instanced draw a part. A posed mesh is drawn by
  pipelines of its own, made as a game with a rigged model loads, so an unposed mesh is the same
  picture as before to the byte; a posed one is within one level but at a rare edge pixel
  (the engine's figure example's clips shot, taken again: one pixel by 3). A thing holding another
  at a joint (`Parent.joint`) shares its pose with every thing at the same moment; one with
  a `Bone` of its own keeps its own. Checksums are unchanged.
- **Ambient occlusion**: `[render] ao = { radius = 1.0, strength = 1.0 }` darkens the
  ambient light (and the sky a metal mirrors) in corners and where things touch; sun, lamps,
  shadows, emission and layers are untouched. Off unless written, so existing games,
  checksums and pictures are unchanged. It works with the engine's passes, a `bloom`, or a
  game's own (float light and `aces` included), natively and in both web builds. A game's
  own effect named `ao` or `ao_blur` must be renamed (they are now the engine's), and one
  that writes `ao` must not name a target or pass `ao`, `ao_distance`, `ao_depth`,
  `ao_rough`, `ao_seen`, `ao_occlude` or `ao_soften`. `frame.at` names it unread.
- **Bloom between passes and interface design units**: `add` keeps radiance above one
  in float targets, so a later `aces` can tone-map it. An 8-bit target still clamps as
  before; use one to retain that clamp. Float `bright` keeps unnormalized radiance,
  including at threshold 1; 8-bit `bright` requires a threshold below 1. Graphs reject
  nonfinite effect parameters. Graphs with unequal colour/depth target sizes
  or `read` on a drawing pass are refused when loading. `[ui] fit = H` gives screen
  interfaces a design height, including text in 3D; omit it for the old pixel units.
  Luau `ui.measure` / C# `Ui.Measure` measure text and styles, and `Wrap.ellipsis`
  truncates to `Wrap.w` (false keeps wrapping and old checksums). `input.keys` /
  `Input.Keys` return the current device's binding labels. Recordings keep device
  hints in `player = { id = 0, device = "pad" }`; old recordings use keyboard labels.
- **Smoother 3D edges**: `[render] msaa = 4` uses four samples for sky and meshes,
  with alpha-to-coverage on MASK materials. It resolves into the colour target's own
  format before effects or UI; float targets stay float. Default `1` keeps the old path.
- **Model back faces**: `[render] cull = true` honours glTF `doubleSided`, including
  mirrored instances. Default `false` preserves existing pictures pending GPU review.
- **Model samplers**: `[render] samplers = true` honours each texture slot's wrap and
  min/mag/mip filters, with up to 8x anisotropy for fully linear mipmapped sampling.
  Default `false` keeps the previous shared repeat/trilinear sampler. Cooked models
  now keep samplers (VMSH 5); older cooked models still read.
- **Unread model data is reported**: embedded JPEG and damaged PNG pictures fail by
  name instead of drawing white. Convert them to PNG and update/re-embed them; changing
  the container to `.glb` does not convert pictures. `frost check` and `frost cook` report
  unsupported material extensions, texture transforms/UV sets, lights and cameras as
  W0460. No JPEG decoder is added; there is no switch for the old silent loss.
- **Streamed scene cells**: `[stream]` declares deterministic residency before physics,
  entry budgets, dormant changes, world-owned migrants, `cell.enter`/`cell.leave`, Luau
  `stream.loaded`/`stream.hold`, C# `Scene.Loaded`/`Scene.Hold`, and protocol `stream.read`.
  Games without `[stream]` retain their checksums. Cell text/assets load eagerly; live
  entity and body residency is bounded. See `frost reference project`.
- **A frame that fills the screen**: `[window] fit = "fill"` gives the frame the shape of
  the screen's safe part, its height kept and its width grown (a tall frame: its width
  kept); left out, or `"letterbox"`, the frame keeps its size as before. `frame.size()`
  says the frame the game runs in. The frame is part of a run's input: a run at another
  shape than `[window] size` writes `frame = [W, H]` at the head of its recording
  (`[input] frame`), and `frost run`, `frost test` and the players' test flags replay it in
  that frame; a recording with no frame replays at `[window] size`. the engine's `fill` example
  holds one game at two shapes; Embers fills, and the engine's `embers/phone.toml` example holds a
  run at an iPhone's shape (1060 by 540) to its own checksum.
- **Phones**: `frost export ios` writes an app for the iPhone simulator (`--device`: an
  iPhone, unsigned) and `frost export android` an apk for arm64 Android 8.0 and later,
  signed with a debug key; `docs/export.md` says what a real phone and a store need. A
  game plays on them as it is: the same checksum as `frost run`, a finger as the pointer
  and in the finger slots. The graphics device asks for no more than the adapter offers
  (a phone's may offer less than wgpu's defaults), which changes nothing where the
  adapter has them. Android exports of games with `[net]` request Internet permission
  so their multiplayer menus can host and join. No game behaves differently. A player
  held at a step (`--hold N`) prints the run's checksum on a line after the world's.
  On Android a game whose activity the system destroys (the developer option that keeps
  no activities; a setting no manifest names) ends with its saves finished and starts
  again from them with the next activity: what a game must keep, it saves.
- **Luau queries can carry numeric columns**: `each("Bunny", {"Transform.x", "Bunny.vx"})`
  returns IDs and copied f64 buffers; `set(ids, component, field, buffer)` writes one back.
  Writes follow list order with scalar conversions and lifetime checks. A bad entry stops
  there, keeping earlier writes. Existing scripts and checksums are unchanged.
- **Scripts reach model joints**: `Bone` overrides local rotation and optional translation;
  `bone` / `World.Bone` reads the world pose, and `Parent.joint` attaches a tool.
  `screen.project` / `screen.ray` (`Screen.Project` / `Screen.Ray`) convert world and pointer
  coordinates. Overrides and attachments opt their model clips into stepping before scripts,
  with exact posing for pictures and shadows; other games keep their checksums and timing.
  A game's own component named `Bone` must be renamed (E0528). Spatial C# reads now include
  queued writes; read before writing to retain the previous pose.
- **Fusion C# ships to the web**: `frost export web` compiles marked Step classes to
  one module beside the player, with no .NET in the browser. Both web backends use
  the same column/state door; desktop runs keep .NET. Unmarked C# still refuses web
  export and names `[FusionCompile]` as the route. See `docs/csharp.md` and
  the engine's `bunnymark-fusion` example; existing Luau and desktop games keep their behaviour.
- **Agent harness files ship with games**: `frost new` installs reference skills in
  `.claude/skills`, a stdio MCP registration and short `AGENTS.md`. Existing games use
  `frost skills --here`; edited files are preserved using the previous installation's
  bytes. `frost skills --out DIR` installs skills alone. MCP tool descriptions are now
  short selection hints; full contracts remain in `frost reference protocol.COMMAND`.
  Gameplay and recorded checksums are unchanged. See `docs/agent-harnesses.md`.
- **The reference opens small**: `frost reference` now prints the game-making core and
  page index. Fetch a page or call by name, or use `--search words`; `--all` keeps the
  previous whole output. `reference.read` and `reference.search` serve the same text
  inside the editor. New games and releases include short game-making instructions.
  The core plus index is limited to 3,000 tokens and each page to 7,000;
  `frost budgets` fails naming any page over its limit. The whole output has no total limit.
  Gameplay and recorded checksums are unchanged.
- **Fusion trees can be compiled without .NET**: the engine now holds its WebAssembly
  emitter and its replay checks. This first compiler piece takes trees and returns bytes;
  web export is not wired to it yet, and existing games keep their behaviour.
