When pistons extend or retract, their bases have tile entities, even though those are not needed. I was told that the extension progress is saved in a float
, but this is not required, because there are a limited amount of ticks that an extension or retraction lasts (to my understanding at most three), so it could be saved in a block state. This would improve performance.
(split off of MC-159902)
Linked issues
relates to 2
Comments 5
This one might be needed, because there is a special renderer envolved to animate the block movement smoothly.
The amount of ticks for extension maxes at 2gt (the extra +1gt comes from b36 converting to a normal block is outisde of the piston phase)
Pistons having block entities causes unneeded lag, as loading and unloading block entities is very very laggy