mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
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:
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user