Class FogOfWarDefaults
Defaults for the exploration grid, in one place so the store, the map and the definition's override all agree.
public static class FogOfWarDefaults
- Inheritance
-
FogOfWarDefaults
- Inherited Members
Fields
ChunkSize
Length of one exploration chunk's side, in world metres.
public const float ChunkSize = 40
Field Value
Remarks
Forty metres, which divides a shipped thousand-metre scene into a grid of twenty-eight chunks — each one an eighth of a percent of the scene.
This was 128 metres, and the reversal is worth keeping. The chunk model replaced a per-cell reveal whose percentage crept by a point per sixty metres walked, and the answer at the time was a grain coarse enough that entering a chunk was a visible step: a little over one percent each. That swapped one failure for another. On a nine-chunk grid the displayed value only ever moves in whole numbers, so a step of a bit over one percent reads as a fixed increment — the readout looks like a count of blocks rather than a measurement of ground, which is how it was reported.
Both failures have the same root: a whole-number percentage over a coarse grid. So the
grid is fine enough to be worth measuring and the readout shows the fraction —
UITKMap.FormatExplored prints as many decimals as one chunk is worth (tenths here,
hundredths on a generated 4.6 km world). At this size one chunk is 0.13% and a hundred metres of
straight walking crosses two and a half of them, so the number climbs as the player
travels instead of lurching once a block.
A scene that wants a different grain sets FogChunkSize on its map definition. A
small interior wants a smaller number still: a two-hundred-metre scene at the default is
five chunks across. Going much below this is self-defeating for the same reason the
128-metre grain was wrong in the other direction — a scene of ten thousand chunks moves
the tenths digit once per twenty metres, which is a readout that appears to flicker
rather than to measure.