mojira.dev
MC-217056

Some high-speed particles lag/freeze the game

Creating a relatively small amount of particles at a high speed completely lags out the game (in 1.16 this doesn't happen).

How to reproduce:

Run 

particle smoke ~ ~ ~ 0 0 0 100 20

Which only creates 20 particles, at the speed 100.

Observe the game freezing (only for a few seconds, a higher speed lags it out far more).

I went through every particle available to the particle command using the above method; I got:

Particles which do this:

  • Smoke

  • Campfire Cosy/Signal Smoke (very severe)

  • Large smoke

  • Bubble pop

  • Firework

  • Fishing

  • Item

  • Poof

  • Snowflake

  • Soul

  • Spit

  • Totem of undying

Particles which don't do this:

  • Ash

  • Ambient Entity Effect

  • Angry villager

  • Bubble

  • Block

  • Barrier

  • Bubble / Bubble column up

  • Cloud

  • Composter

  • Crimson Spore

  • Crit

  • Current down

  • Damage indicator

  • Dolphin

  • Dragon Breath

  • Any dripping

  • Dust/colour transition

  • Effect

  • Elder guardian

  • Enchant/ed hit

  • End rod

  • Entity effect

  • Explosion / emitter

  • Falling *

  • (Small/soul fire) Flame

  • Flash

  • Glow / squid ink

  • Happy villager

  • Heart

  • Instant effect

  • Item slime/snowball (not item itself, that lags)

  • Landing *

  • Lava

  • Mycelium

  • Nautilus

  • Note

  • (Reverse) Portal

  • Rain

  • Sneeze

  • Splash

  • Spore blossom air

  • Sweep attack

  • Underwater

  • Vibration

  • Warped spore

  • White ash

  • Witch

Linked issues

Attachments

Comments 16

Can confirm in 1.16.4

I set Campfire Smoke to a speed of 200 on accident inside a command block on a datapack development server. It crashed everyone's client except for 1 player who had extreme lag. The server logs kept getting confused as to what particle was being emitted by the command block, which I thought was pretty strange. 

[Thu, 18. Feb 2021 20:10:53 EST INFO] [@: Displaying particle minecraft:soul_fire_flame]
[Thu, 18. Feb 2021 20:10:53 EST INFO] [@: Displaying particle minecraft:elder_guardian]
...
[Thu, 18. Feb 2021 20:11:06 EST INFO] [@: Displaying particle minecraft:elder_guardian]
[Thu, 18. Feb 2021 20:11:06 EST INFO] [@: Displaying particle minecraft:angry_villager]
...
[Thu, 18. Feb 2021 20:11:33 EST INFO] [@: Displaying particle minecraft:angry_villager]
[Thu, 18. Feb 2021 20:11:33 EST INFO] [@: Displaying particle minecraft:dripping_lava]

These are a few examples of where the console thought that a different particle was running in the command block, when it was campfire smoke. It would change what particle it thought was being emitted every half minute or so.

NOTE: I experienced this on February 18th but was using Spigot, so did not report it here.

Which particles did you try? Also try increasing the 20 to a higher number if you potentially have a higher computer. 20 was a low number so I could tell the lag but not crash the game

Can confirm in 1.17.1 Pre-release 1. Running the command created a MASSIVE lag spike, dropping from 60 to 0 fps.

Can confirm in 1.17.1 Release Candidate 1.

6 more comments

Can confirm in 21w43a.

Can confirm in 1.17.1.

@unknown That version is already marked as affected.

Can confirm in 21w44a.

Can confirm in 1.18 Pre-release 1.

lolad

Felix Jones

Confirmed

Important

Crash, Particles, Performance

21w08b, 1.17.1 Pre-release 1, 1.17.1 Release Candidate 1, 1.17.1, 21w38a, ..., 21w40a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1

1.18 Pre-release 2

Retrieved