Skip to content

Improve Multiblock Scanning for better performance #675

@BlayTheNinth

Description

@BlayTheNinth

Right now, the kitchen has to check its surrounding blocks whenever the cooking table is opened, which can cause a lagspike on large setups (e.g. many kitchen floors or storage drawers).

Idea so far:

  • The multiblock should remain in memory and not be persisted, to avoid external edits or other factors resulting in an inconsistent state
  • Cooking Table should scan its surroundings upon load, spread out across ticks to avoid spiking
  • If the Cooking Table is opened before it has completed scanning, force it to complete in a single tick (this would still result in an initial lagspike but should be extremely rare)
  • Track which chunks are involved in the multiblock, and invalidate it if any changes are made to those chunks (at which point we repeat from above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew features or improvements to existing featuresNeeds DiscussionThis may be considered in the future and I'm looking for more opinions

    Projects

    Status

    📝 Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions