Files
FFF_vtt_frozen/client/src/render/modules
SirStone 297718efdb test(e2e): count distinct tile URLs, tolerate transient image errors
The mobile map gate compared the cumulative request counter to the wanted
window, but the #70 rule re-asks a tile whose 403 became allowed when the
explored frame lands after the first window, so a correct load can be 481
attempts for a 480-tile window (seen once on a loaded host). Expose
data-tile-distinct and assert that no tile URL is fetched twice; the no-retry
proof stays the 403 test's per-URL count. The console collector now ignores the
browser's network-level resource line, like the fog suites: a transient tile
error is explicitly tolerated by the tile contract, and the page wait already
reflects it.
2026-11-21 22:09:42 +01:00
..

Render modules: append-only

Every *.ts file here that exports renderModule is registered by the build-time glob in ../stage.ts. Add one file per feature; never edit the registry.

import type { RenderModule } from '../stage.ts'

export const renderModule: RenderModule = {
  name: 'tiles', // unique
  mount({ app, world, layers, store }) {
    // create your objects in `layers.*`, subscribe to `store` for state changes,
    // return a teardown only for global resources you install.
  },
}

Layers bottom to top: tiles, grid, tokens, fog, gm, dom (DESIGN 7.1). Update only the entities that changed (DESIGN 7.2); no per-frame full redraw.