Networking · type

InputPredictor

How a missing input is guessed. previous is that participant's last confirmed input.

Explained in Networking and rollback.

type InputPredictor = (participant: number, tick: number, previous: Uint8Array, out: Uint8Array) => void
import type { InputPredictor } from '@driftengine/network';