[0.15.26] Performance issue with Biters
Posted: Sun Jul 02, 2017 2:16 am
I've submitted this to the Rampant github page a little over a week ago, and have played about 50 hours since I first reported this issue. Following is the mostly-original issue text.
===
I started a new save when Factorio 0.15.x was released, and modified the settings to be a combination of the Rail World + Death World presets (I like a very aggressive biter presence). Map view:
Recently (around the release of ~0.15.20), we've been experiencing periodic slowdowns of the game. We played with Rampant on Factorio 0.14.x and experienced massive slowdowns later into the game but they were more persistent than the slowdowns we've been experiencing in 0.15.x. Every 3-5 minutes or so, FPS and UPS both will drop from 60 to lower 20s - 30s and this will persist for anywhere from 10 - 45 seconds, usually.
We've come to the conclusion that it's possibly related to biter attack waves. While the script update time for Rampant doesn't increase over 1ms during these slowdowns, the Entity update time usually reaches 40ms and has spiked to over 80ms before. The slowdowns appear to happen when the biters reach the engagement range of our turret defenses:
Given the density of biters on our save and the level of evolution, we almost always have at least one attack wave incoming, but when multiple waves hit at the same time the game starts to crawl.
I've uploaded the save + mods to Google Drive for testing, but I'm not certain that the issue can be resolved easily since it appears to be Factorio's entity handling code that is suffering under the stress.
===
Since I submitted that, we've played about 50 hours more on the world and now experience persistent lag (~50 FPS/UPS normally), with dips down to ~15 - 25 FPS/UPS occasionally with the dips seeming related to the Biters. At this point I'm not too surprised that the game is lagging regularly because of how large the base is.
Here is the save in it's current state.
Thanks.
===
I started a new save when Factorio 0.15.x was released, and modified the settings to be a combination of the Rail World + Death World presets (I like a very aggressive biter presence). Map view:
Recently (around the release of ~0.15.20), we've been experiencing periodic slowdowns of the game. We played with Rampant on Factorio 0.14.x and experienced massive slowdowns later into the game but they were more persistent than the slowdowns we've been experiencing in 0.15.x. Every 3-5 minutes or so, FPS and UPS both will drop from 60 to lower 20s - 30s and this will persist for anywhere from 10 - 45 seconds, usually.
We've come to the conclusion that it's possibly related to biter attack waves. While the script update time for Rampant doesn't increase over 1ms during these slowdowns, the Entity update time usually reaches 40ms and has spiked to over 80ms before. The slowdowns appear to happen when the biters reach the engagement range of our turret defenses:
Given the density of biters on our save and the level of evolution, we almost always have at least one attack wave incoming, but when multiple waves hit at the same time the game starts to crawl.
I've uploaded the save + mods to Google Drive for testing, but I'm not certain that the issue can be resolved easily since it appears to be Factorio's entity handling code that is suffering under the stress.
===
Since I submitted that, we've played about 50 hours more on the world and now experience persistent lag (~50 FPS/UPS normally), with dips down to ~15 - 25 FPS/UPS occasionally with the dips seeming related to the Biters. At this point I'm not too surprised that the game is lagging regularly because of how large the base is.
Here is the save in it's current state.
Thanks.