MCPcopy Create free account
hub / github.com/esengine/esengine / updateInternal

Method updateInternal

packages/core/src/Core.ts:662–679  ·  view source on GitHub ↗

* @zh 内部更新方法 * @en Internal update method * * @param deltaTime - @zh 帧时间间隔(秒)@en Frame delta time in seconds

(deltaTime: number)

Source from the content-addressed store, hash-verified

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实例

Callers 1

updateMethod · 0.45

Calls 6

updateFPSMethod · 0.80
getUpdatableCountMethod · 0.80
updateMethod · 0.65
startMonitoringMethod · 0.45
updateAllMethod · 0.45
endMonitoringMethod · 0.45

Tested by

no test coverage detected