We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d2879 commit b150e6fCopy full SHA for b150e6f
src/core/game/TerrainMapLoader.ts
@@ -58,11 +58,7 @@ export async function loadTerrainMap(
58
59
const stateBuffer =
60
sharedStateBuffer ??
61
- (typeof SharedArrayBuffer !== "undefined" &&
62
- typeof Atomics !== "undefined" &&
63
- // crossOriginIsolated is only defined in browser contexts
64
- typeof (globalThis as any).crossOriginIsolated === "boolean" &&
65
- (globalThis as any).crossOriginIsolated === true
+ (canUseSharedBuffers
66
? new SharedArrayBuffer(
67
manifest.map.width *
68
manifest.map.height *
0 commit comments