IInputBuffer
Properties
Delay | Delay applied to the stored inputs. |
Last |
Last frame received that didn't trigger a misprediction, or -1 if nothing was acknowledged yet. Might be greater
than Last |
Last |
Last frame that was fetched from the buffer and was not predicted. |
Last |
Last (latest) frame number for which an input was stored, received or predicted. -1 if nothing was added to the buffer yet. |
Last |
Last frame number that was received from the remote input producer, or -1 if nothing was received yet. |
Last |
Last frame number that was dequeued for sending, or -1 if nothing was sent yet. |
Misprediction |
Frame at which last prediction failure has been detected. |
Size | Size of the buffer. Dictates how many frames worth of inputs can be stored. When buffer reaches its capacity a
pause is requested through the Should |
Methods
Reset | Clears the input buffer and resets its state. |
Should |
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. |
Events
On |
Called when an input is received that is older than the oldest input in the buffer. |