Hi,
I am playing factorio 1.1 (modded) and currently have to face the issue that my UPS has dropped to 10 (or even lower). With the debug info screen I was able to locate it:
Entity updates eat my computer: YoGPFDk.png (1444×1303) (imgur.com)
And the class causing the issues are "Projectile": xp9mlJ5.png (873×1094) (imgur.com)
Now what I don't understand is why projectiles cause issues while no battle is going on on the map. No turret involved in a fight. I killed all enemies (command line), disabled pollution and then started disabling mods - no change. As a last test I disabled all mods and launched the more or less wrecked factory, but still no changes. https://i.imgur.com/DmeByhL.png - I still have "projectiles" on the map which cause the program to almost freeze.
Anyone has an idea where to look, or is there at least a command line to destroy all entitis of class projectile?
[edit]
/c local surface=game.player.surface
for key, entity in pairs(surface.find_entities_filtered({type="projectile"})) do
entity.destroy()
end
This destroyed all projectiles on the map and I am back to 50 FPS. So at least I was able to solve this one here for now. Question remains: is there a way to locate the amount and location of entities type projectile? I am curious to find out what causes the problems
External link →