Skip to content

ECS Framework API v2.1.50


ECS Framework API / PlatformConfig

Interface: PlatformConfig

Defined in: Platform/IPlatformAdapter.ts:113

平台配置

Properties

maxWorkerCount

maxWorkerCount: number

Defined in: Platform/IPlatformAdapter.ts:117

最大Worker数量限制


supportsModuleWorker

supportsModuleWorker: boolean

Defined in: Platform/IPlatformAdapter.ts:122

是否支持模块Worker


supportsTransferableObjects

supportsTransferableObjects: boolean

Defined in: Platform/IPlatformAdapter.ts:127

是否支持Transferable Objects


maxSharedArrayBufferSize?

optional maxSharedArrayBufferSize: number

Defined in: Platform/IPlatformAdapter.ts:132

SharedArrayBuffer的最大大小限制(字节)


workerScriptPrefix?

optional workerScriptPrefix: string

Defined in: Platform/IPlatformAdapter.ts:137

平台特定的Worker脚本前缀(如果需要)


limitations?

optional limitations: object

Defined in: Platform/IPlatformAdapter.ts:142

平台特定的限制和特性

noEval?

optional noEval: boolean

是否禁用eval(影响动态脚本创建)

requiresWorkerInit?

optional requiresWorkerInit: boolean

是否需要特殊的Worker初始化

memoryLimit?

optional memoryLimit: number

内存限制(字节)

workerNotSupported?

optional workerNotSupported: boolean

Worker是否不受支持(用于明确标记不支持Worker的平台)

workerLimitations?

optional workerLimitations: string[]

Worker限制说明列表


extensions?

optional extensions: Record<string, any>

Defined in: Platform/IPlatformAdapter.ts:172

平台特定的扩展属性

Released under the MIT License.