chore(core): release v2.2.21

- 优化 HierarchySystem 性能 (#279)
- 更新 changelog
This commit is contained in:
yhh
2025-12-05 16:10:24 +08:00
parent 2d56eaf11a
commit b2b8df9340
3 changed files with 27 additions and 1 deletions

View File

@@ -4,6 +4,19 @@
---
## v2.2.21 (2025-12-05)
### Performance
- **HierarchySystem 性能优化**: 优化层级系统避免每帧遍历所有实体 (#279)
- 使用脏实体集合代替每帧遍历所有实体
- 静态场景下 `process()` 从 O(n) 优化为 O(1)
- 1000 实体静态场景: 81.79μs → 0.07μs (快 1168 倍)
- 10000 实体静态场景: 939.43μs → 0.56μs (快 1677 倍)
- 服务端模拟 (100房间 x 100实体): 2.7ms → 1.4ms 每 tick
---
## v2.2.20 (2025-12-04)
### Bug Fixes