Improve performance of Multiblock detection
liach opened this issue ยท 3 comments
Right now, we check multiblocks every few ticks. Discord user Trinsdar suggested using a tool while I suggest checking when the tile entities are added or removed instead (a set of chunk positions to check).
I'd recommend a tool, because most players are familiar with this technic from IE and it should be slightly better performance wise
What? Do any of you actually understand how the system works?
It checks once! And then it sits idle waiting for something to change!
It does not check every "few ticks", AKA 256, unless half the structure is unloaded and it can't tell if its valid or not. There might be some room for improvements in this one edge case, but that's it.
Railcraft has always been lauded as having the simplest and most efficient multi-block code.
See: