layue13
changed title from [性能][中] SA 实体/特效的重复 AABB 全量实体扫描与 O(n²) 已命中列表(Drive 模板通病) to SA 实体/特效的重复 AABB 全量实体扫描与 O(n²) 已命中列表(Drive 模板通病)2026-10-06 21:07:43 +00:00
This repo is archived. You cannot comment on issues.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
问题描述
BurstDrive(specialeffect/BurstDrive.java):SA 触发的 getEntityToWatch 采用 dist=2..18 共 10 轮逐步扩大 AABB 的全量 getEntitiesWithinAABB 扫描 + 逐实体 getDistanceToEntity,仅取最近一个目标;扫描列表含掉落物/经验球等无关实体。
建议:单次扩大 AABB(约 20 格)+ 排序取最近,或用 rayTrace 替代循环扫描。
Archive 组织仓已过时(Daniel 2026-09-23),整组织 issue 统一关闭。
[性能][中] SA 实体/特效的重复 AABB 全量实体扫描与 O(n²) 已命中列表(Drive 模板通病)to SA 实体/特效的重复 AABB 全量实体扫描与 O(n²) 已命中列表(Drive 模板通病)