Page 1 of 1

[Oxyd] [1.0.0] Enemy wayfinding/performance bug

Posted: Fri Sep 11, 2020 7:31 pm
by AndreKR
This is mainly a problem with the wayfinding of biters/spitters, but it only bothers me because it causes a performance issue.

I have placed a spidertron on a small island in a lake. Somehow this causes the enemy units that come around the lake to just stop there and not move anymore. (My guess is they are afraid of the spidertron.)

2020-09-11-21-10-48-dllhost.png
2020-09-11-21-10-48-dllhost.png (27.81 KiB) Viewed 3491 times

After a few minutes a decent number of enemy units has accumulated and the game performance drops dramatically:

2020-09-11-20-47-08-factorio.png
2020-09-11-20-47-08-factorio.png (491.41 KiB) Viewed 3491 times

Then I have to walk the spidertron closer to the enemy so that it will shoot them. Game performance then returns to normal:

2020-09-11-20-47-52-factorio.png
2020-09-11-20-47-52-factorio.png (519.67 KiB) Viewed 3491 times

As you can see, the update time has dropped from 20.144 to 3.791.

I have attached a savegame where already some enemy units have accumulated. You'll find the situation on the left side of the map, close to the station "Iron southwest".

Re: [Oxyd] [1.0.0] Enemy wayfinding/performance bug

Posted: Sat Sep 12, 2020 5:20 pm
by AndreKR
Actually, after giving this some thought, the wayfinding might not be a bug. The enemy units are attracted to the spidertron, walk towards it and get caught in the coastline. What else are they supposed to do, there's no better way to reach their target.

So it's only the performance thing, but maybe that's simply expected behavior when large groups of bugs accumulate?

I simply have to make sure they get shot when they come as close as possible to the spidertron.

I think you can close this issue.

Re: [Oxyd] [1.0.0] Enemy wayfinding/performance bug

Posted: Sat Sep 12, 2020 8:58 pm
by AndreKR
Hm, no, something is wrong. Wherever I place a turret, they always accumulate just out of range.

Re: [Oxyd] [1.0.0] Enemy wayfinding/performance bug

Posted: Sun Sep 13, 2020 8:11 am
by AndreKR
I made it work with more turrets. So you decide if it's a bug. :P

Re: [Oxyd] [1.0.0] Enemy wayfinding/performance bug

Posted: Wed Sep 16, 2020 3:08 pm
by Oxyd
Thanks, this will be fixed in 1.1.0.