Skip to content

sharedMemoryAvailable

sharedMemoryAvailable(): boolean

Defined in: network/worker-transport.ts:79

Whether this environment can use the SharedArrayBuffer zero-copy position transport: SharedArrayBuffer exists and the page is cross-origin isolated (served with Cross-Origin-Opener-Policy: same-origin + Cross-Origin-Embedder-Policy: require-corp). When false, the worker posts per-frame position snapshots instead. This reports the environment’s capability; whether a given run actually used it is WorkerLayoutHandle.shared (they differ when the worker is unavailable and the layout falls back to a synchronous main-thread solve).

boolean