beyond-all-reason / beyond-all-reason/RecoilEngine

Autotarget called twice for same unit

Open
#2,185 2 comments 0 reactions 0 assignees View on GitHub
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)

![Image](https://github.com/user-attachments/assets/73d25701-2c72-4916-b53d-68bee6fcdea3)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.