Enum PredictionLoopUpdateMode
Deprecated. Configure when the prediction loop should run on the client. The loop now runs by default once the client has a valid server tick (AlwaysRun); RequirePredictedGhost remains as an opt-in and will be removed in a future release.
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
[Obsolete("The client prediction loop now always runs once the client has a valid server tick (the AlwaysRun default). RequirePredictedGhost still skips it while no predicted ghosts exist, but will be removed in a future release.", false)]
[MovedFrom(true, "Unity.NetCode", null, null)]
public enum PredictionLoopUpdateMode
Fields
| Name | Description |
|---|---|
| AlwaysRun | The default. The prediction loop will always run once the client has a valid server tick, regardless of whether or not any predicted ghosts are spawned on the client. |
| RequirePredictedGhost | Deprecated. The prediction loop will run the prediction systems only if there is at least one predicted ghost spawned on the client. This saves some CPU cycles while no predicted ghosts exist, at the cost of physics and every other system in the prediction loop not running (for example, you can't raycast against static geometry to spawn the first predicted ghost). |