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

Method update

packages/core/src/ECS/Scene.ts:513–530  ·  view source on GitHub ↗

* 更新场景

()

Source from the content-addressed store, hash-verified

511 * 更新场景
512 */
513 public update() {
514 this.epochManager.increment();
515 ProfilerSDK.beginFrame();
516 const frameHandle = ProfilerSDK.beginSample('Scene.update', ProfileCategory.ECS);
517
518 try {
519 ComponentPoolManager.getInstance().update();
520 this.entities.updateLists();
521 const systems = this.systems;
522
523 this._runSystemPhase(systems, 'update', 'Systems.update');
524 this._runSystemPhase(systems, 'lateUpdate', 'Systems.lateUpdate');
525 this.flushCommandBuffers(systems);
526 } finally {
527 ProfilerSDK.endSample(frameHandle);
528 ProfilerSDK.endFrame();
529 }
530 }
531
532 /**
533 * @zh 执行系统的指定阶段

Callers

nothing calls this directly

Calls 10

_runSystemPhaseMethod · 0.95
flushCommandBuffersMethod · 0.95
incrementMethod · 0.80
beginSampleMethod · 0.80
endSampleMethod · 0.80
beginFrameMethod · 0.65
updateMethod · 0.65
endFrameMethod · 0.65
getInstanceMethod · 0.45
updateListsMethod · 0.45

Tested by

no test coverage detected