Field manualСправочник / MechanicsМеханика

SnapshotCodec

src/DustConvoy.Sim/Net/SnapshotCodec.cs

ConstantsКонстанты

NameИмяValueЗначениеNoteЗаметка
PosStep1f / 32f; // 32 px = 1 m: one pixel of position precision /// <summary>Trucks farther than this from the peer are left out of the pose packet. Convoy trucks and driven trucks always go.</summary> public const float MotionRadius = 96f
LocationSendDistance260fLocations this far from every player are sent as empty placeholders (indices must line up with the host's list).
ChatResendSeconds1.0Chat lines ride along for this long after they are said (~30 snapshots), so a dropped packet loses nothing.
ChatBytesPerSnapshot320Text budget per snapshot: the full snapshot must stay inside one packet. Recent lines rotate through it.
PropsPerSnapshot12Prop entries per full snapshot; the full snapshot must stay inside one packet.
FxSounds8
FxTracers12
FxHits8
FxGore4
OwnedPoseTag0xA5