Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit_follow() causes on_ai_command_completed loop #2

Open
heyqule opened this issue Apr 2, 2022 · 0 comments
Open

unit_follow() causes on_ai_command_completed loop #2

heyqule opened this issue Apr 2, 2022 · 0 comments

Comments

@heyqule
Copy link

heyqule commented Apr 2, 2022

How to replicate

Select a group of unit and then right click on a friendly entity.

Issue

If I accidently click on a entity on the map mode. That triggers unit follow. Performance tanks once the group reach its destination. How heavy performance hit is relative to the group size, so large group takes heavier performance hit.

Point of interest in code

Factorio/mods/Unit_Control_0.3.11/script/unit_control.lua:1705
Factorio/mods/Unit_Control_0.3.11/script/unit_control.lua:1453

heyqule added a commit to heyqule/Unit_Control that referenced this issue Apr 2, 2022
Increase performance when on_ai_command_completed loops unit_follow function.

Klonan#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant