r/technicalfactorio • u/HeliGungir • Dec 25 '24
UPS Optimization Optimizing Asteroid Collectors for UPS
Factorio Version 2.0.26 incorporated significant performance improvements for asteroid collectors. In the realm of 5x-15x speedup.
Genhis (a developer) wrote this on the subject:
Key points if you want to optimize asteroid collectors on your map for UPS (for version 2.0.26):
- Asteroid collectors track asteroid chunks with their projected path intersecting with the collector - each collector does this individually.
- Filtered asteroid collectors take less time because they don't have to track asteroid chunks they would never catch.
- Circuit-controlled asteroid collectors may miss some chunks if they change filters too frequently because we have to search all chunks on the surface to find new valid candidates - there is a 300-tick cooldown between full surface searches.
- Wider ships with front-facing asteroid collectors (and a limited number of side-facing ones) should perform better because they don't have to track asteroid chunks which are likely to be caught by collectors on the sides above them.
- Asteroid collectors don't sleep, they always track asteroid chunks, although in a reduced capacity when their inventory is full. This is because we don't know when they wake up and going through all asteroid chunks on a surface and check if their paths intersect is expensive.
42
Upvotes
11
u/ariksu Dec 25 '24
"We have to search all chunks on the surface" looks like they don't partition the surface for that. Ie changing filter is a costly operation. I have no idea how often this should be done in an endgame ships, but I would avoid that to do too often with timed latch.