Kernel
Ploy3D / Kernel
Class: Kernel
引擎内核代理,主要执行场景和内存管理。
Table of contents
Constructors
Methods
Constructors
constructor
• new Kernel()
构造函数。
Methods
Init
▸ Init(imports_
): Promise
<Kernel
>
初始化引擎内核。
Parameters
Name | Type |
---|---|
imports_ | Imports |
Returns
Promise
<Kernel
>
Shutdown
▸ Shutdown(): Promise
<{ Engine_activeScene
: number
; Engine_animationClipCount
: number
; Engine_animatorCount
: number
; Engine_cameraCount
: number
; Engine_mainCamera
: number
; Engine_meshCount
: number
; Engine_meshRendererCount
: number
; Engine_objectCount
: number
; Engine_rootObjectCount
: number
; Engine_sceneCount
: number
; Engine_skeletonSkinCount
: number
; Engine_skinCount
: number
; Engine_textureCount
: number
; Engine_uniformCount
: number
; Engine_useCameraCount
: number
; Memory_blockCount
: number
; Memory_blockSize
: number
; Memory_freeCount
: number
; Memory_freeSize
: number
; Memory_growSize
: number
; Memory_useCount
: number
; Memory_useSize
: number
; System_moduleCount
: number
}>
关闭引擎内核,保留资源池最终状态。
Returns
Promise
<{ Engine_activeScene
: number
; Engine_animationClipCount
: number
; Engine_animatorCount
: number
; Engine_cameraCount
: number
; Engine_mainCamera
: number
; Engine_meshCount
: number
; Engine_meshRendererCount
: number
; Engine_objectCount
: number
; Engine_rootObjectCount
: number
; Engine_sceneCount
: number
; Engine_skeletonSkinCount
: number
; Engine_skinCount
: number
; Engine_textureCount
: number
; Engine_uniformCount
: number
; Engine_useCameraCount
: number
; Memory_blockCount
: number
; Memory_blockSize
: number
; Memory_freeCount
: number
; Memory_freeSize
: number
; Memory_growSize
: number
; Memory_useCount
: number
; Memory_useSize
: number
; System_moduleCount
: number
}>
Status
▸ Status(final
): Object
状态统计。
Parameters
Name | Type |
---|---|
final | boolean |
Returns
Object
Name | Type |
---|---|
Engine_activeScene | number |
Engine_animationClipCount | number |
Engine_animatorCount | number |
Engine_cameraCount | number |
Engine_mainCamera | number |
Engine_meshCount | number |
Engine_meshRendererCount | number |
Engine_objectCount | number |
Engine_rootObjectCount | number |
Engine_sceneCount | number |
Engine_skeletonSkinCount | number |
Engine_skinCount | number |
Engine_textureCount | number |
Engine_uniformCount | number |
Engine_useCameraCount | number |
Memory_blockCount | number |
Memory_blockSize | number |
Memory_freeCount | number |
Memory_freeSize | number |
Memory_growSize | number |
Memory_useCount | number |
Memory_useSize | number |
System_moduleCount | number |