mojira.dev
MC-164009

Piston bases have tile entities when extending/retracting despite not needing them

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)

Related issues

Comments

RedCMD

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

NeunEinser

This one might be needed, because there is a special renderer envolved to animate the block movement smoothly.

Iosiv Visokogorskiy

This still happens in 20w27a?

kelianor

Affects 1.20.5

4ebugger

Both moving piston and moving blocks are needs to use the tile entity special renderer to rendering the smoothly block movement animation, so this is not a bug. If this got "fixed", the piston movement action will become lagging.

FaRo1

(Unassigned)

Confirmed

Platform

Low

Performance

1.14.4, 19w42a, 1.15.2, 20w18a, 20w29a, ..., 1.16.2 Pre-release 1, 1.16.2 Release Candidate 2, 1.16.2, 20w49a, 1.20.5

Retrieved