Skip to content

Idea to reduce crafting lag #575

@Bananacody

Description

@Bananacody

When crafting an item from the storage interface/crafting remote, is it possible to make the storage network check if the inventory searched to find the ingredients is connected to a filtered link cable and the item in the filter matches or not the item searched? It could make the retrieval 54× faster.

As the guide says, crafting items from a large storage takes quite some time and considering my experimentations max crafting lag is ~7 seconds every 100 chests (mean lag ≈ 3.5s/100chests).

To my understanding, it depends on the number of non-empty slots searched before finding the ingredients for the first item, and the total time spent is the sum of the time taken for every item. All search steps are repeated from A to Z for every single ingredient.
The problem is that it searches into all 54 slots of every double chest, even for those filtered to allow only 1 item that is not even the one searched.

I know that for regular (not filtered) link cables all of this does not apply and every single slot must be checked. Filtered link cables could prevent this inefficiency. But I'm no programmer, does my idea make sense?

Thanks for the amazing mod anyways. It's indispensable!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions