系统添加缓存实体机制避免频繁开销

This commit is contained in:
YHH
2025-09-26 10:50:31 +08:00
parent 5e052a7e7d
commit 64ea53eba1
4 changed files with 58 additions and 5 deletions

View File

@@ -88,6 +88,11 @@ export interface IScene {
*/
createEntity(name: string): Entity;
/**
* 清除所有EntitySystem的实体缓存
*/
clearSystemEntityCaches(): void;
/**
* 添加实体
*/