diff options
author | NotAPenguin <michiel.vandeginste@gmail.com> | 2024-02-27 16:09:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 16:09:06 +0100 |
commit | 14fce70432ac1c982006775f88d5451d0b537d0a (patch) | |
tree | 3c1bc9759fdaeef11a0f7023068e4a40e060c488 /src/main/java/net/glease/ggfab/mui | |
parent | 39d9a964a111677301b216044b0fe82231ef8c43 (diff) | |
download | GT5-Unofficial-14fce70432ac1c982006775f88d5451d0b537d0a.tar.gz GT5-Unofficial-14fce70432ac1c982006775f88d5451d0b537d0a.tar.bz2 GT5-Unofficial-14fce70432ac1c982006775f88d5451d0b537d0a.zip |
Add AAL batch mode (#32)
This PR adds support for batch mode to the AAL. A few notes:
- Similarly to regular batch mode, the amount of batches to run is
chosen so the time of each slice is at least 128 ticks. If the time per
slice is already 128 ticks, this does nothing.
- Batch size is also controlled by how many recipes we can do with the
amount of the first item we have. If we want to run 10 batches but only
have enough starting items for 5, it will run 5 batches.
- If there are not enough fluids to run multiple batches, it will not
batch at all and simply process one recipe at a time.
- If a slice cannot extract enough materials to do a full batch, it gets
stuck (similarly to a regular AAL).
- Currently, this only works well with stocking input buses, see the
comment I left on line 616. I don't think this should be a problem since
you will never use input buses with more than one slot to automate an
AAL.
Short demo video (not yet using adaptive batch sizes)
https://streamable.com/hrp1v3
Diffstat (limited to 'src/main/java/net/glease/ggfab/mui')
0 files changed, 0 insertions, 0 deletions