the idea is nice, but the mod is completely unusable for me since it drops my fps/ups from 60 to values in the range of 20-30, sometimes even lower, although i even did not have robots researched yet. i rather don't want to know what happens with thousands of bots active ...
I'm not a modder myself, but some hints:
- for people that add the mod on existing saves, you need some migration to check whether the techs already have been researched and then enable your mod's techs and recipes correspondingly. you seem to have made such an attempt, but with flawed logic: it makes no sense to check for logistics-robotics only if construction-robotics hasn't been researched yet (you need two "if then" instead of one "if then elseif then")
- F4 gives nice info about performance: you can enable the display of FPS/UPS, as well as "show-time-usage" (that's probably what was meant in some other discussion thread where someone said "above 35"; usual values should be well below 1, and >5 is very noticable lag)
- scanning the entire surface (dozens or hundreds of chunks) all the time (on every tick) can't be done in a reasonable time. and even if you only once create a list of thousands of bots, you can't check them all on every tick, but need to spread that so that on every tick only a percentage of all of them is handled.