Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267068

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.2, 1.20.3 Pre-Release 3, 1.20.3 Pre-Release 4, 1.20.3, 1.20.4
    • Confirmed
    • Particles, Performance

      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.

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: