mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Improve performance by reducing unnecessary lighting updates (#32)
Introduce 5 second delay on changing ambient lighting when a machine shuts off. IActiveState now has a concept of wasActiveRecently to enable rendering/block updates to have some wiggle room.
This commit is contained in:
1 parent
8c79baccf6
commit
2c6d666b89
7 files changed
+47
-49
No files matched your search
@@ -156,9 +156,7 @@ public class TileEntityMetallurgicInfuser extends TileEntityOperationalMachine i
|
||||
|
||||
//Machine
|
||||
factory.progress[0] = operatingTicks;
|
||||
factory.clientActive = clientActive;
|
||||
factory.isActive = isActive;
|
||||
factory.updateDelay = updateDelay;
|
||||
factory.controlType = controlType;
|
||||
factory.prevEnergy = prevEnergy;
|
||||
factory.upgradeComponent.readFrom(upgradeComponent);
|
||||
|
||||
Reference in new issue
Block a user