1.0 KiB
1.0 KiB
MODIFIED Requirements
Requirement: Authoritative correction prunes acknowledged prediction history
The client sync strategy SHALL reconcile local prediction against authoritative player-state updates by pruning acknowledged movement inputs at or before the acknowledged movement-input tick carried by the authoritative snapshot and only reapplying newer pending MoveInput messages. The snapshot tick used for stale rejection or remote interpolation MUST NOT be reused as the local prediction-acknowledgement boundary.
Scenario: Reconciliation removes already acknowledged movement inputs
- WHEN the client accepts an authoritative
PlayerStateupdate whose acknowledged movement-input tick isN - THEN locally buffered predicted
MoveInputmessages with tick less than or equal toNare removed from the replay buffer - THEN only
MoveInputmessages newer thanNremain eligible for re-simulation - THEN the client does not infer the acknowledgement boundary solely from the snapshot tick