Mojira Archive
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)
    particle_piston_lag_spike.nbt

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:
2023-11-27_21-57-56.mp4

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:
    2023-11-27_22-24-42.mp4
  2. This was discovered while testing MC-158037, though that issue is different to this one.

Won't Fix

[Mod] Jiingy

2023-11-28, 04:30 AM

2023-12-14, 08:20 AM

2023-12-14, 08:20 AM

0

1

Confirmed

Particles, Performance

fps-drop, particle, piston

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

-