chore(core): release v2.2.21
- 优化 HierarchySystem 性能 (#279) - 更新 changelog
This commit is contained in:
@@ -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)
|
## v2.2.20 (2025-12-04)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -4,6 +4,19 @@ This document records the version update history of the `@esengine/ecs-framework
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## v2.2.21 (2025-12-05)
|
||||||
|
|
||||||
|
### Performance
|
||||||
|
|
||||||
|
- **HierarchySystem optimization**: Optimize hierarchy system to avoid iterating all entities every frame (#279)
|
||||||
|
- Use dirty entity set instead of iterating all entities
|
||||||
|
- Static scene `process()` optimized from O(n) to O(1)
|
||||||
|
- 1000 entities static scene: 81.79μs → 0.07μs (1168x faster)
|
||||||
|
- 10000 entities static scene: 939.43μs → 0.56μs (1677x faster)
|
||||||
|
- Server simulation (100 rooms x 100 entities): 2.7ms → 1.4ms per tick
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.2.20 (2025-12-04)
|
## v2.2.20 (2025-12-04)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@esengine/ecs-framework",
|
"name": "@esengine/ecs-framework",
|
||||||
"version": "2.2.20",
|
"version": "2.2.21",
|
||||||
"description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
|
"description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
|
||||||
"main": "bin/index.js",
|
"main": "bin/index.js",
|
||||||
"types": "bin/index.d.ts",
|
"types": "bin/index.d.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user