Co-Processors can now increase bandwidth for a single item being split on more then 2 Assemblers.
This commit is contained in:
@@ -507,9 +507,24 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
|||||||
if ( waiting || tasks.isEmpty() ) // nothing to do here...
|
if ( waiting || tasks.isEmpty() ) // nothing to do here...
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int remainingOperations = accelerator + 1;
|
remainingOperations = accelerator + 1;
|
||||||
boolean didsomething = false;
|
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
didsomething = false;
|
||||||
|
executeCrafting( eg, cc );
|
||||||
|
}
|
||||||
|
while (didsomething && remainingOperations > 0);
|
||||||
|
|
||||||
|
if ( remainingOperations > 0 && didsomething == false )
|
||||||
|
waiting = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private int remainingOperations;
|
||||||
|
private boolean didsomething;
|
||||||
|
|
||||||
|
private void executeCrafting(IEnergyGrid eg, CraftingGridCache cc)
|
||||||
|
{
|
||||||
Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = tasks.entrySet().iterator();
|
Iterator<Entry<ICraftingPatternDetails, TaskProgress>> i = tasks.entrySet().iterator();
|
||||||
while (i.hasNext())
|
while (i.hasNext())
|
||||||
{
|
{
|
||||||
@@ -663,9 +678,6 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( remainingOperations > 0 && didsomething == false )
|
|
||||||
waiting = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void storeItems()
|
private void storeItems()
|
||||||
|
|||||||
Reference in New Issue
Block a user