修复动态require导致的跨平台错误

新增emitter的dispose方法用于清理事件
启用composite增量编译
This commit is contained in:
YHH
2025-08-13 12:18:40 +08:00
parent baeb047e27
commit 25136349ff
10 changed files with 231 additions and 92 deletions

View File

@@ -7,6 +7,8 @@ import { SceneDataCollector } from './SceneDataCollector';
import { WebSocketManager } from './WebSocketManager';
import { Core } from '../../Core';
import { Component } from '../../ECS/Component';
import { ComponentPoolManager } from '../../ECS/Core/ComponentPool';
import { Pool } from '../../Utils/Pool';
/**
* 调试管理器
@@ -639,7 +641,6 @@ export class DebugManager {
try {
// 尝试获取组件池统计
const { ComponentPoolManager } = require('../../ECS/Core/ComponentPool');
const poolManager = ComponentPoolManager.getInstance();
const poolStats = poolManager.getPoolStats();
@@ -662,8 +663,7 @@ export class DebugManager {
try {
// 尝试获取通用对象池统计
const { Pool } = require('../../Utils/Pool');
const poolStats = Pool.getStats();
const poolStats = Pool.getAllPoolStats();
for (const [typeName, stats] of Object.entries(poolStats)) {
const poolData = stats as {