five-on-it / packages/net-client/src
packages/net-client/src
Client-side netcode, free of DOM and rendering: a mirror of the server world with prediction and reconciliation of the entity the player controls, interpolation of remote entities (what a frame does to them, RemoteIntake; the measurements of each, RemoteBuffer), the clock that decides which server tick to render, and the last inputs sent again in every frame of inputs (InputHistory). The renderer feeds it inputs and snapshots and reads poses back.
References
AGREEMENT
Re-exports AGREEMENT
BLEND_PACE_FLOOR
Re-exports BLEND_PACE_FLOOR
BLEND_PACE_SHARE
Re-exports BLEND_PACE_SHARE
BLEND_TICKS
Re-exports BLEND_TICKS
blendHorizon
Re-exports blendHorizon
blendSeconds
Re-exports blendSeconds
ClientClock
Re-exports ClientClock
CLOCK_SLACK
Re-exports CLOCK_SLACK
CLOCK_SLEW
Re-exports CLOCK_SLEW
CLOCK_WINDOW_TICKS
Re-exports CLOCK_WINDOW_TICKS
emptySample
Re-exports emptySample
FeltCrash
Re-exports FeltCrash
frameElapsed
Re-exports frameElapsed
frameTicks
Re-exports frameTicks
InputHistory
Re-exports InputHistory
INPUTS_PER_FRAME
Re-exports INPUTS_PER_FRAME
Intake
Re-exports Intake
IntakeFrame
Re-exports IntakeFrame
INTERP_DELAY_TICKS
Re-exports INTERP_DELAY_TICKS
MAX_BACKLOG_TICKS
Re-exports MAX_BACKLOG_TICKS
MAX_EXTRAPOLATION_TICKS
Re-exports MAX_EXTRAPOLATION_TICKS
MAX_GUESSED_TICKS
Re-exports MAX_GUESSED_TICKS
MAX_TICKS_PER_FRAME
Re-exports MAX_TICKS_PER_FRAME
mayTouch
Re-exports mayTouch
MIN_HORIZON
Re-exports MIN_HORIZON
Mirror
Re-exports Mirror
motionWindow
Re-exports motionWindow
NEAR_MARGIN
Re-exports NEAR_MARGIN
NO_TARGET
Re-exports NO_TARGET
PIECE_HORIZON
Re-exports PIECE_HORIZON
PIECE_SCOPE
Re-exports PIECE_SCOPE
PiecePose
Re-exports PiecePose
PREDICTED_BLEND_SECONDS
Re-exports PREDICTED_BLEND_SECONDS
PredictedPieces
Re-exports PredictedPieces
PredictedRemotes
Re-exports PredictedRemotes
Predictor
Re-exports Predictor
PredictorStats
Re-exports PredictorStats
QUANTIZED_AGREEMENT
Re-exports QUANTIZED_AGREEMENT
RemoteBuffer
Re-exports RemoteBuffer
RemoteIntake
Re-exports RemoteIntake
RemoteNews
Re-exports RemoteNews
RemoteSample
Re-exports RemoteSample
RENDER_DRIFT
Re-exports RENDER_DRIFT
RENDER_SNAP_TICKS
Re-exports RENDER_SNAP_TICKS
REST_SPEED
Re-exports REST_SPEED
SampleWay
Re-exports SampleWay
SMOOTHING_DECAY_PER_SECOND
Re-exports SMOOTHING_DECAY_PER_SECOND
SmoothingOffset
Re-exports SmoothingOffset
snapsAt
Re-exports snapsAt
TIER_DELAY_TICKS
Re-exports TIER_DELAY_TICKS