ShouldPause
method in Coherence.Toolkit.IInputBuffer
Methods
bool ShouldPause(long currentFrame, long commonReceivedFrame)
If true, the buffer cannot do any more predictions. Client should pause the game and stop polling inputs to not lose any data required for a rollback.
Parameters
Type | Name | Description |
---|---|---|
long | currentFrame | Current simulation frame. |
long | commonReceivedFrame | Common (lowest) received frame for all inputs in the simulation. |
Returns
Type | Description |
---|---|
bool |