Navigation
API > API/Plugins > API/Plugins/NetworkPrediction
(Global) Tick state for fixed tick services
Notes about Fix Ticking in NetworkPrediction:
FixedTick mode will accumulate real time and run 0-N Sim frames per engine frame.
| Name | FFixedTickState |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionTickState.h |
| Include Path | #include "NetworkPredictionTickState.h" |
Syntax
struct FFixedTickState
Structs
| Name | Remarks |
|---|---|
| FInterpolationState |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasTimeDilation | bool | Signals whether any time dilation is active. If so, use @SuggestedTimeDilation. | NetworkPredictionTickState.h | |
| ConfirmedFrame | int32 | Latest confirmed local frame number. Anything at or before this frame is "set in stone". | NetworkPredictionTickState.h | |
| FixedStepDilatedRealTimeMS | float | If time dilation is enabled, one of these = one FixedStepMS in simulation time. This will shrink or grow slightly as network latency changes. | NetworkPredictionTickState.h | |
| FixedStepMS | int32 | FixedStepMS that simulations should use. | NetworkPredictionTickState.h | |
| FixedStepRealTimeMS | float | Realtime steps. | NetworkPredictionTickState.h | |
| Interpolation | FInterpolationState | NetworkPredictionTickState.h | ||
| Offset | int32 | Maps ForwardPredicted authority frames to local frame. | NetworkPredictionTickState.h | |
| PendingFrame | int32 | Next frame to be ticked (used as input to generated PendingFrame+1) | NetworkPredictionTickState.h | |
| SuggestedTimeDilation | float | Only valid when bHasTimeDilation is true. Represents a percentage of time speed up/down. 1.0 = no dilation. | NetworkPredictionTickState.h | |
| UnspentTimeMS | float | Accumulates raw delta time into our fixed steps. | NetworkPredictionTickState.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FServiceTimeStep GetNextServiceTimeStep() |
NetworkPredictionTickState.h | ||
FNetSimTimeStep GetNextTimeStep() |
NetworkPredictionTickState.h | ||
int32 GetTotalSimTimeMS() |
NetworkPredictionTickState.h |