* @zh 内部更新方法 * @en Internal update method * * @param deltaTime - @zh 帧时间间隔(秒)@en Frame delta time in seconds
(deltaTime: number)
| 660 | * @param deltaTime - @zh 帧时间间隔(秒)@en Frame delta time in seconds |
| 661 | */ |
| 662 | private updateInternal(deltaTime: number): void { |
| 663 | if (Core.paused) return; |
| 664 | |
| 665 | const frameStartTime = this._performanceMonitor.startMonitoring('Core.update'); |
| 666 | |
| 667 | Time.update(deltaTime); |
| 668 | this._performanceMonitor.updateFPS?.(Time.deltaTime); |
| 669 | |
| 670 | const servicesStartTime = this._performanceMonitor.startMonitoring('Services.update'); |
| 671 | this._serviceContainer.updateAll(deltaTime); |
| 672 | this._performanceMonitor.endMonitoring('Services.update', servicesStartTime, this._serviceContainer.getUpdatableCount()); |
| 673 | |
| 674 | this._poolManager.update(); |
| 675 | this._sceneManager.update(); |
| 676 | this._worldManager.updateAll(); |
| 677 | |
| 678 | this._performanceMonitor.endMonitoring('Core.update', frameStartTime); |
| 679 | } |
| 680 | |
| 681 | /** |
| 682 | * @zh 销毁Core实例 |
no test coverage detected