优化
This commit is contained in:
12
docs/perf_hotspots.md
Normal file
12
docs/perf_hotspots.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# 性能热点初稿
|
||||
|
||||
首轮标记:
|
||||
|
||||
| 区域 | 说明 | 优先级 | 说明 |
|
||||
|------|------|--------|------|
|
||||
GameScreen.render | 多次集合遍历 + 远程玩家循环内更新 | 高 | 后续拆分逻辑/渲染阶段 |
|
||||
SimpleFighter.update | 物理与攻击状态混杂 | 中 | 拆分到组件式(动作/物理) |
|
||||
网络同步(待补) | sendPosition 每帧发送 | 中 | 引入位置压缩/频率限制 |
|
||||
清屏/批处理 | 现已静态化 | 已改善 | 继续合并渲染批次 |
|
||||
|
||||
后续收集: 帧时间分布 / GC 次数。
|
||||
Reference in New Issue
Block a user