Serious FPS/UPS drop when many enemies die. [0.15]
Posted: Tue May 02, 2017 12:18 am
I've always noticed (started playing on 0.12) Factorio would start slowing down when destroying enemy bases with 100+ destroyer drones active. I'd always assumed it was just the number of enemies trying to attack me making the game lag, but with the addition of the nuke in 0.15 it may be more.
When firing a nuke into the center of a dense enemy base, the game will heavily lag, dropping from 45+ FPS/UPS to around 5 FPS/UPS. This starts during the explosion and continues for a while after the explosion effect has finished, but while the death animations are still active. Once the animations have finished, things return to normal.
It seems at it's worst when there's lots of worms - perhaps because they're smaller than bases so there's more in the same area.
The debug overlay gives some clues, hinting at both rendering and entity updates as problem areas - but it's hard to be certain as these numbers look to be averaged over a second or two and the event is quite short.
My PC is rather old, and I'm not expecting 60 FPS/UPS at all times - but there does seem to be something particularly sub-optimal in this area that could be worth looking at.
When firing a nuke into the center of a dense enemy base, the game will heavily lag, dropping from 45+ FPS/UPS to around 5 FPS/UPS. This starts during the explosion and continues for a while after the explosion effect has finished, but while the death animations are still active. Once the animations have finished, things return to normal.
It seems at it's worst when there's lots of worms - perhaps because they're smaller than bases so there's more in the same area.
The debug overlay gives some clues, hinting at both rendering and entity updates as problem areas - but it's hard to be certain as these numbers look to be averaged over a second or two and the event is quite short.
My PC is rather old, and I'm not expecting 60 FPS/UPS at all times - but there does seem to be something particularly sub-optimal in this area that could be worth looking at.