Page 1 of 1

[0.17.50] Game Plays then Freezes Repeat

Posted: Fri Jun 21, 2019 11:11 am
by ltnickmage
This issue seemed to only appear when I updated to 0.17.50. It now stops for a number of minutes then moves forward a few ticks then repeats. I have attached the mods I use and the base.

The latest construction was adding more fluid production. I am thinking that the problem is either in robot pathing or fluid handling.

Here is the link to the files. Let me know if I need to fix the link or share another way.

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Fri Jun 21, 2019 11:34 am
by ltnickmage
Here a few screen shots before and after freezes. CPU and memory did not max at any time.

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sat Jun 22, 2019 9:04 pm
by Rseding91
This should be fixed for the next version of 0.17.

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sun Jun 23, 2019 4:07 am
by Jon8RFC
I'm curious to know what the issue and fix was for this one.

Also, since the most mods I've run is about two, I noticed that mod loading is slow and hardly used the cpu grunt available. I set it to launch using just one core and it was very slightly slower, so I'm guessing that mods don't load in parallel? Is it possible to work some magic on that, similarly to sprite loading?

previous.log is using /affinity 1
current.log has it removed
1tb 860 EVO

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sun Jun 23, 2019 5:57 am
by Jap2.0
Jon8RFC wrote:
Sun Jun 23, 2019 4:07 am
Also, since the most mods I've run is about two, I noticed that mod loading is slow and hardly used the cpu grunt available. I set it to launch using just one core and it was very slightly slower, so I'm guessing that mods don't load in parallel? Is it possible to work some magic on that, similarly to sprite loading?
I'm fairly certain no, because mods can change/overwrite stuff done by other mods, so having them done sequentially in a set order is pretty much the only way to do it for both compatibility (dependencies load first) and determinism.

But then again, I don't develop games.
(at least not good ones)

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sun Jun 23, 2019 11:36 am
by Rseding91
Jap2.0 wrote:
Sun Jun 23, 2019 5:57 am
Jon8RFC wrote:
Sun Jun 23, 2019 4:07 am
Also, since the most mods I've run is about two, I noticed that mod loading is slow and hardly used the cpu grunt available. I set it to launch using just one core and it was very slightly slower, so I'm guessing that mods don't load in parallel? Is it possible to work some magic on that, similarly to sprite loading?
I'm fairly certain no, because mods can change/overwrite stuff done by other mods, so having them done sequentially in a set order is pretty much the only way to do it for both compatibility (dependencies load first) and determinism.

But then again, I don't develop games.
(at least not good ones)
Correct.

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sun Jun 23, 2019 11:38 am
by Rseding91
Jon8RFC wrote:
Sun Jun 23, 2019 4:07 am
I'm curious to know what the issue and fix was for this one.
The issue was the crazy speeds of the robots combined with the amount of items they where asked to move. A few thousand robots would all at once queue to bring items from the south ore mines into the same storage chest. Clearly they can't fit more than 1 chests worth of ore into 1 chest. However, it would queue up > 2 million ore for one chest then 99% of the robots would arrive, find it didn't fit, and scan directly around the chest for other chests to store into.

The fix was making them pick a different chest once a given chest had orders to deliver > the chest could hold.

Re: [0.17.50] Game Plays then Freezes Repeat

Posted: Sun Jun 23, 2019 11:07 pm
by Jon8RFC
Thanks for the information for all of my questions.

For the bug, I find it really interesting especially when it's edge-cases of pushing the game in a weird or unexpected manner, like this or the volume slider disk writing. Thanks for sharing!