The UPS issue is caused by the wandering behavior of the maintenance units.
I did a flame graph profiling, in the mod pack server I am playing on. Out of 156 samples related to Carna:
- 130 of them are in Unit::update
-- of which, 128 are in Unit::update -> Commandable::runBehavior
--- of which, 89 are in Unit::update -> Commandable::runBehavior -> WanderBehavior::executeInternal
---- of which, 20 are in [...] -> Unit::lookAhead, 28 in Unit::calcSeparation, and 32 in Unit::move
(For a comparison, Carna's Lua code accounts for only 8 samples)
And when you compare it to other planets, Carna costs about as much as than these modded planets combined in our save: Castra (65 samples; the planet also has a Unit wander issue, but much fewer units are on the map with similar size of the map explored), Rubia (39 samples, the planet is known for heavily optimize the trashsteroid calculations), and Muluna (56 samples, the planet where most of the science are being produced in the save)