mojira.dev
MC-267068

Lag spike occurs when extending a piston into a large group of particles

When extending a piston into a large group of particles, there will be a brief loss of FPS (a lag spike).

Seps to Reproduce:

Prerequisites:

  1. Increase entity cramming (Increasing this makes the issue more obvious)

    /gamerule maxEntityCramming 100
  2. Import this structure into your save (.minecraft\saves[world name]\generated\minecraft\structures)

[media]

Steps:

  1. Load the structure file in your world

  2. Open the FPS graph (F3 + 2)

  3. Extend any of the four pistons
    → ❌ A lag spike will occur
    → ✔ A lag spike would not occur

Screenshots/Videos:

Particles disabled vs particles enabled:

[media]

Notes:

  1. This is specifically due to the particles of the blaze, and not the entity itself. Testing this with zombies, or blazes with no particles has no FPS loss:

[media]
  1. This was discovered while testing MC-158037, though that issue is different to this one.

Linked issues

Attachments

Comments

No comments.

[Mod] Jingy

(Unassigned)

Confirmed

Particles, Performance

fps-drop, particle, piston

1.20.2, 1.20.3 Pre-Release 3, 1.20.3 Pre-Release 4, 1.20.3, 1.20.4

Retrieved