Open Blackclaws opened 9 months ago
Yeah... this is a problem. I'll have to rewrite this logic to not build a list of every creep tile on the surface before clearing them. I did that in order to remove them in a nice, random pattern, but I can do something like iterate chunks in a spiral pattern outward from where the virus is thrown.
Description
Having a large surface that is full of biters (such as a radius 9000 world with threat level 100% in Space Exploration) and throwing the Virus capsule will lead to out of memory errors (slowly but steadily using up to 64 Gb of memory and then crashing due to OOM).
The random function also completely tanks performance when the entity count becomes large. Stepping with a random modulus might be faster.
Reproduction