Skip to content

Sein Fog Source State

C++ type · FSeinFogSourceState

#include "Default/SeinFogOfWarDefault.h"

Per-source memo of the last stamped state for delta-refcount updates. One per live FSeinEntityHandle that carries FSeinVisionPayload.

Each tick: a source whose pose AND exact effective stamp set equal the last-tick value skips entirely (the big perf win — most units don’t move per tick). On change: we walk the stored Footprints to decrement old refcounts, then re-stamp every shape and accumulate footprints into the new arrays.

Cache key is pose (WorldPos + Rotation, since shaped stamps care about orientation) + EyeHeight + the Stamps array (shape geometry + per-stamp layer mask + bEnabled). When any of those changes the source does the full rebuild.