Share the history.
A worker can own physics while the page owns Three.js. This study places bounded Rapier snapshots in shared memory when the document is cross-origin isolated, then proves the transferable fallback honestly.
Creating shared snapshot storage while the worker loads deterministic Rapier...
- physics
- -
- transport
- -
- bodies
- -
- history
- -
- latest
- -
- snapshot
- -
- reads
- 0
- events
- 0
- step ms
- 0.000
- fps
- -
The selected body will receive a fixed-tick command from the main thread.
SharedArrayBufferone shared byte slab for five fixed-capacity slotsAtomics.store()publish slot metadata after bytes are writtenpostMessage()share the buffer reference, not a transferable copyArrayBuffer fallbackcopy and transfer snapshots when isolation is unavailableShared memory requires a secure, cross-origin-isolated document. The transport badge and read counter expose which branch actually ran.
The worker is loading deterministic Rapier. Once ready, the selected index will address one shared-history body.
Based on the official Three.js worker guidance, Rapier serialization guide, determinism guide, World API, InstancedMesh docs, and SharedArrayBuffer security requirements. Measurements are local browser evidence, not a universal networking or cross-platform determinism claim.