beyond-all-reason / beyond-all-reason/RecoilEngine
Autotarget called twice for same unit
- Dominant language
- C++
- Stars
- 679
- Forks
- 290
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 40
Description
Autotarget called twice for same unit. Autotarget can be costly for units with long weapon range (especially with range modifiers). Probably worth to look into.
[500 armsnipe standing still.zip](https://github.com/user-attachments/files/19725448/500.armsnipe.standing.still.zip)

Contributor guide
Research direction
Start by reproducing the issue with the attached “500 armsnipe standing still” scenario and trace where autotarget is invoked for a unit. Done means the same unit is autotargeted only once per relevant update while preserving expected targeting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100