Skip to main content

Crate elura_netcode

Crate elura_netcode 

Source
Expand description

Transport-independent realtime netcode primitives.

This crate provides client/server tick estimation, bounded redundant input history, cumulative acknowledgements, replay-safe out-of-order input reception, client prediction reconciliation, adaptive remote-state interpolation, and predicted-entity matching. It deliberately does not open sockets, create tasks, simulate game rules, or interpolate application state itself.

Structs§

EntityMatch
Successful mapping from temporary entity identity to authoritative identity.
InputAck
Cumulative server acknowledgement returned to one input sender.
InputFrame
One game-specific input assigned to an authoritative simulation Tick.
InputPacket
Transport-neutral client input packet.
InputReceiveReport
Server-side result after validating and de-duplicating one input packet.
InputReceiver
Server-side packet validator and out-of-order de-duplicator for one client stream.
InputReceiverConfig
Bounds for server-side input validation and reordering.
InputSender
Client-side bounded input history and redundant packet builder.
InputSenderConfig
Bounds for client-side unacknowledged input history.
InterpolationBuffer
Tick-ordered remote state buffer with adaptive jitter delay.
InterpolationConfig
Remote-state buffer and adaptive interpolation-delay parameters.
InterpolationSample
Two buffered states and interpolation factor selected for rendering.
InterpolationStats
Current interpolation timing statistics.
PredictedEntity
One locally spawned entity waiting for authoritative identity.
PredictedEntityConfig
Bounds for unmatched locally predicted entities.
PredictedEntityMatcher
Bounded predicted-spawn registry for one client simulation.
PredictionBuffer
Bounded client input/state history for server reconciliation.
PredictionConfig
Bounds for client prediction history and authoritative replay work.
PredictionFrame
One locally simulated input and the predicted state after it committed.
PredictionKey
Client-generated stable key used to match a predicted spawn with its authoritative entity.
PredictionKeyGenerator
Monotonic prediction-key allocator.
ReconciliationReport
Result of restoring an authoritative state and replaying unconfirmed inputs.
SequenceWindow
Bounded, cumulative acknowledgement window safe for out-of-order delivery.
TickSyncConfig
Client-side Tick estimation limits.
TickSyncReport
Updated estimates returned after accepting one Tick sample.
TickSyncRequest
Client probe echoed by a Tick synchronization response.
TickSyncResponse
Authoritative server response used to construct a TickSyncSample.
TickSyncSample
One client observation of an authoritative server Tick.
TickSynchronizer
Client-side estimator for authoritative server Tick position.

Enums§

InterpolationInsert
Result of inserting one remote state.
NetcodeError
Configuration, timing, or input validation failure.
SequenceDisposition
Result of observing one sequence in a SequenceWindow.

Type Aliases§

NetcodeResult
Result returned by netcode primitives.