When should late input win?
A bounded rollback window is a policy, not magic. This worker compares ignoring, clamping, and reconciling late commands against the same fixed-tick Rapier world and retained snapshot history.
Creating the main-thread scene while the worker loads deterministic Rapier...
- physics
- -
- bodies
- -
- history
- -
- current tick
- -
- late tick
- -
- policy
- -
- outcome
- -
- events
- -
- step ms
- -
- fps
- -
The selected body will receive a fixed-tick command from the main thread.
reconcilerestore the nearest checkpoint, replay, verifyclampaccept the command at the next current tickignoredrop a command whose tick is already pastReconciliation is only available while a checkpoint exists at or before the requested tick. A late command older than retained history is reported as exhausted instead of being presented as a successful rollback.
The worker is loading deterministic Rapier. Once ready, the selected index will address one policy decision.
Based on the official Three.js worker guidance, Rapier serialization guide, determinism guide, World API, and InstancedMesh docs. Measurements are local browser evidence, not a universal networking or cross-platform determinism claim.