Page 1 of 1

cpu time spent when picking up items with bots

Posted: Fri Jan 17, 2020 8:38 am
by ptx0
Inventory exploded and science packs went all over, used bots to clean them up.

Code: Select all

ConstructionManager::eraseFromDeque<Entity, DeconstructionOrder>
spending an awful lot of CPU time in here.

Code: Select all

    10.99%  factorio          [.] ConstructionManager::eraseFromDeque<Entity, DeconstructionOrder>
     6.35%  factorio          [.] propagatemark
     4.29%  factorio          [.] ElectricNetwork::update
     3.85%  factorio          [.] sweeplist
     3.07%  factorio          [.] Loader::findTarget
     2.53%  factorio          [.] singlestep
     2.29%  factorio          [.] ItemStack::hasPartiallyFullStack
     1.70%  factorio          [.] ConstructionManager::inDeque<Entity, DeconstructionOrder>
     1.60%  factorio          [.] LogisticPoint::registerChange
     1.37%  factorio          [.] FlowStatistics<ID<EntityPrototype, unsigned short>, double, ElectricityTag>::Precision::saveLastValue
     1.15%  factorio          [.] Inventory::hasPartiallyFullStack
     1.05%  factorio          [.] std::_Rb_tree_increment
     1.02%  factorio          [.] luaH_get
     1.00%  factorio          [.] FlowStatistics<ID<ItemPrototype, unsigned short>, unsigned long, void>::Precision::saveLastValue
     0.90%  factorio          [.] Inventory::transferToNonEmptySlots
     0.89%  factorio          [.] FluidSystem::update
     0.85%  factorio          [.] FluidBox::PipeConnection::calculateFlowSpeed
     0.80%  factorio          [.] Inserter::update
     0.80%  factorio          [.] luaS_new
     0.79%  [unknown]         [.] 0000000000000000
     0.79%  libc-2.29.so      [.] 0x000000000016d66d
     0.77%  factorio          [.] Chunk::updateActiveEntities
     0.76%  libc-2.29.so      [.] 0x000000000008a018
     0.67%  factorio          [.] TransportLine::move
     0.67%  factorio          [.] TransportLine::activateDirectInputs
     0.67%  factorio          [.] ElectricNetwork::useDemand
     0.61%  factorio          [.] Map::updateEntities
     0.59%  libc-2.29.so      [.] malloc
     0.57%  factorio          [.] ElectricSubNetwork::getDemand
     0.56%  factorio          [.] reallymarkobject
     0.55%  factorio          [.] InventoryWithFilters::transferToPrioritySlots
     0.49%  factorio          [.] GenericOnOffControlBehavior::refreshOnOffState
     0.47%  libc-2.29.so      [.] cfree
     0.47%  factorio          [.] InventoryWithFilters::transferToEmptySlots
     0.43%  factorio          [.] luaV_execute
     0.38%  factorio          [.] HeuristicCrcGenerator::saveMap
     0.37%  factorio          [.] Chunk::updateEntities
     0.37%  factorio          [.] luaH_getstr
     0.36%  factorio          [.] DropTarget::checkDropTargetProximity
     0.35%  factorio          [.] Splitter::updateTransportLines
     0.34%  factorio          [.] Inventory::transferToEmptySlots
     0.32%  factorio          [.] ItemStack::transferToItemStackOnly
     0.31%  factorio          [.] Surface::update
     0.30%  factorio          [.] luaD_precall
     0.30%  factorio          [.] CircuitNetwork::transmitDelta
     0.30%  libc-2.29.so      [.] 0x00000000000875c8
     0.30%  libc-2.29.so      [.] 0x000000000008a0bc
     0.30%  factorio          [.] TransportLine::tryToInsert
     0.29%  factorio          [.] FlatMap<SignalID, int, true>::private_subscript
     0.28%  factorio          [.] Pump::update
     0.27%  factorio          [.] Inventory::transferToPrioritySlots
     0.27%  factorio          [.] Chart::updateGameStateInternal
     0.25%  factorio          [.] FlowStatistics<ID<EntityPrototype, unsigned short>, double, ElectricityTag>::Precision::ElementUsageStatistics::onFlow
     0.25%  libc-2.29.so      [.] 0x0000000000087628
     0.25%  factorio          [.] TransportLineManager::update
     0.25%  libc-2.29.so      [.] 0x00000000000898ab
     0.25%  factorio          [.] Inserter::getPickupTarget
     0.24%  factorio          [.] Inventory::extend
     0.24%  factorio          [.] std::_Rb_tree<std::string, std::pair<std::string const, ItemPrototype*>, std::_Select1st<std::pair<std::string const, ItemPrototype*> >, std::less<void>, std::allocator<std::pair<std::string const, I
     0.23%  factorio          [.] TransportLine::update
     0.23%  libc-2.29.so      [.] 0x00000000000898d6

Re: cpu time spent when picking up items with bots

Posted: Fri Jan 17, 2020 10:31 am
by posila
Please provide your save file we can reproduce this on.