Introduce bounds to search for sparkles! (#5343)

* Address c368692a3; create upper bound on number of blocks scanned and reduce memory utilization

* Final cleanup on sparkle overhaul; all multiblock structures should now sparkle in < 1ms on average

* Remove timing info; either enable sparkles or the message (not both)
This commit is contained in:
Dave Smith authored and Richard Freimer committed 2019-04-07 22:43:17 -04:00
1 parent 6e3b3fcf56
commit 9456b68529
6 files changed
+90 -89

No files matched your search

@@ -79,7 +79,8 @@ public abstract class TileEntityMultiblock<T extends SynchronizedData<T>> extend
if (structure != null && clientHasStructure && isRendering) {
if (!prevStructure) {
Mekanism.proxy.doMultiblockSparkle(this);
Mekanism.proxy.doMultiblockSparkle(this, structure.renderLocation.getPos(), structure.volLength,
structure.volWidth, structure.volHeight, tile -> MultiblockManager.areEqual(this, tile));
}
}