fix(core): 修复 PerformanceMonitor 未遵循 Core debug 参数的问题 (#219)
- Core 传递 debug 配置到 WorldManager - WorldManager 传递 debug 配置到 World - World 在 debug=true 时为 Scene 注册并启用 PerformanceMonitor - new Scene 的情况默认未开启,但暴露了 `performanceMonitor` 由使用者处理
This commit is contained in:
@@ -191,7 +191,7 @@ export class Core {
|
||||
});
|
||||
|
||||
// 初始化World管理器
|
||||
this._worldManager = new WorldManager(this._config.worldManagerConfig);
|
||||
this._worldManager = new WorldManager({ debug: !!this._config.debug, ...this._config.worldManagerConfig });
|
||||
this._serviceContainer.registerInstance(WorldManager, this._worldManager);
|
||||
|
||||
// 初始化插件管理器
|
||||
|
||||
Reference in New Issue
Block a user