Single core?

Post all other topics which do not belong to any other category.
Nich
Fast Inserter
Fast Inserter
Posts: 171
Joined: Wed Jan 18, 2017 2:33 am
Contact:

Single core?

Post by Nich »

Why is factorio required to run on a single core? I have been looking into the depths of the of the fourms the past week and I can not seem to see why.

From what I have picked up every thing in factorio is an object. Ore, parts, buildings, (individual bullets or maybe just the clips with a bullets attribute)

The argument I have heard is that because it is a simulation everything must be processed in order. I.E

If you have 3 belts A, B, and C. B can not know its input until it has A's output and same for C.


However this is thinking about the problem completely backwards. Every object has a buffer and knows what it is going to do so outputs can be calculated in parallel. Then once all the outputs are known all the inputs can be calculated in parallel. This will however cause a 1/60th delay in an assembler starting after the first time it has received product because it will not be processed until the output has already been processed but this can be accounted for by decreasing the build time by 1/60th of a second
Yoyobuae
Filter Inserter
Filter Inserter
Posts: 511
Joined: Fri Nov 04, 2016 11:04 pm
Contact:

Re: Single core?

Post by Yoyobuae »

Nich wrote:However this is thinking about the problem completely backwards. Every object has a buffer and knows what it is going to do so outputs can be calculated in parallel. Then once all the outputs are known all the inputs can be calculated in parallel. This will however cause a 1/60th delay in an assembler starting after the first time it has received product because it will not be processed until the output has already been processed but this can be accounted for by decreasing the build time by 1/60th of a second
There's also belts, and bots, and inserters, liquids in pipes/pumps and there's circuit network, and logistic network... Before you know it takes several seconds for one part of the factory to react to something that happens on the other side of the factory.

The way it is now everything reacts instantly (within the same tick).
d4rkpl4y3r
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Wed Apr 27, 2016 8:24 pm
Contact:

Re: Single core?

Post by d4rkpl4y3r »

viewtopic.php?f=5&t=39893&start=60#p238247

Read that to get insight into parallelism in factorio and how it doesn't really help.
Post Reply

Return to “General discussion”