five-on-it / packages/protocol/src/snapshot-v2 / TIER_EVERY
Variable: TIER_EVERY
constTIER_EVERY: readonlynumber[]
Defined in: packages/protocol/src/snapshot-v2.ts:166
The tiers of the area of interest as the changes carry them: an entity of tier t has its pose sent every TIER_EVERY[t] snapshots (every one, every second, every fourth; apps/server/src/game-server.ts' AOI_TIERS says how far each reaches). A client draws a far entity further behind the newest snapshot by as much (@foi/net-client's RemoteBuffer), so it is interpolated between the poses it was sent, never guessed on between them.