perf(core): 优化 Scene.systems getter 避免每帧重复排序 (#197)

This commit is contained in:
LINGYE
2025-10-30 23:27:37 +08:00
committed by GitHub
parent 3f40a04370
commit 011d795361
2 changed files with 42 additions and 2 deletions

View File

@@ -222,7 +222,9 @@ export abstract class EntitySystem<
* @param order 更新时序
*/
public setUpdateOrder(order: number): void {
if (this._updateOrder === order) return;
this._updateOrder = order;
this._scene?.markSystemsOrderDirty();
}
/**