PoolManager 现在由 ServiceContainer 统一管理

This commit is contained in:
YHH
2025-10-11 09:38:16 +08:00
parent b67ab80c75
commit 14a8d755f0
2 changed files with 15 additions and 9 deletions

View File

@@ -165,8 +165,9 @@ export class Core {
this._performanceMonitor.enable();
}
// 初始化对象池管理器(单例模式)
this._poolManager = PoolManager.getInstance();
// 初始化对象池管理器
this._poolManager = new PoolManager();
this._serviceContainer.registerInstance(PoolManager, this._poolManager);
// 初始化场景管理器
this._sceneManager = new SceneManager();