Scene 构造函数注入 PerformanceMonitor

This commit is contained in:
YHH
2025-10-10 22:08:10 +08:00
parent b13132b259
commit 1af2cf5f99
3 changed files with 76 additions and 3 deletions

View File

@@ -165,4 +165,12 @@ export interface ISceneConfig {
* 场景名称
*/
name?: string;
/**
* 性能监控器实例(可选)
*
* 如果不提供Scene会自动从Core.services获取全局PerformanceMonitor。
* 提供此参数可以实现场景级别的独立性能监控。
*/
performanceMonitor?: any;
}