Enum GhostOptimizationMode
Specify if the ghost replication should be optimized for frequent (dynamic) or for infrequent (static) data changes.
`Static` optimization mode is designed for ghosts that will change infrequently (i.e. rarely, or not change at all).In this mode the ghost is replicated to the client only when its state changes, which can bring good bandwidth savings, but it comes at the cost of additional cpu cycles to perform change-checking. As such, static optimization should be avoided for entities that frequently change their state, since it will actually increase both bandwidth (because of the extra protocol bits necessary) and cpu cost.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public enum GhostOptimizationMode
Fields
Name | Description |
---|---|
Dynamic |
|
Static | `Static` optimization mode is designed for ghosts that will change infrequently (i.e. rarely, or not change at all). In this mode the ghost is replicated to the client only when its state changes, which can bring good bandwidth savings, but it comes at the cost of additional cpu cycles to perform change-checking. As such, static optimization should be avoided for entities that frequently change their state, since it will actually increase both bandwidth (because of the extra protocol bits necessary) and cpu cost. |