Files
FFF_vtt_frozen/docs/adr/0005-32px-tile-unit-of-disclosure.md
T
SirStone 8aaf03be04 docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform
nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door
gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player
marker, chunked explored, slow-client policy, session/key split, closing message, character
records, global lock, synchronous choice. Each links its tickets and its spec section.
2026-11-17 23:12:04 +01:00

31 lines
1.3 KiB
Markdown

# A 32 px tile is the unit of disclosure, and the edge leak is accepted
The map is served as 32 px tiles, the tile grid shares the explored cell grid and the world origin,
and a tile is allowed as soon as its cell is explored. A vision polygon that grazes a cell therefore
discloses the whole cell's art, including pixels LOS did not see, and once revealed a tile is never
revoked. We accepted this rather than masking tiles server-side because masking costs image
processing in Nim on every request, and smaller tiles multiply requests; the authoring rule is to
keep secrets out of map art within ~32 px of reachable areas and to model secrets as GM-only
entities.
## Status
accepted
## Alternatives
- 256 px tiles (the prototype): rejected, a 256 px leak is too large.
- Server-side masked tiles: rejected for v1, cost and complexity.
- Gate on a fraction of explored cells: rejected, still discloses the whole tile and complicates the
rule.
## Consequences
A tile may reveal up to one 32 px cell of unseen art; it is documented as accepted (T5), not
testable as a leak. Tile URLs are immutable per `art_version`, cached privately, and door state is
never in tiles. The M4 gates (headless mobile emulation and one phone run) can force 64 px per scene
without a code change.
## Tickets
Q4, #7, #24; H8.
## Spec
Current §3.3, §3.4 T5, §8 (scene tile size).