mojira.dev
MC-269370

Sharp lag spike caused by incorrect upper limit on particles created by mace smash attack

There is no obvious upper limit to the particles created by the mace, leading to a decrease in FPS when finishing the attack from high distances. Related very closely to MC-270216

Steps to Reproduce:

  1. Place down an armor stand

  2. Hold a mace

  3. Teleport the player 10 blocks into the air

    /tp @p ~ ~10 ~
  4. Land a 'heavy' attack
    → Observe results

  5. Repeat steps 3 and 4, this time increasing the height to 200 blocks up

    /tp @p ~ ~200 ~

    → Observe results

Expected & Observed Results:

❌ - There will be a heavy amount of particles creating, leading to a large FPS decrease upon landing a heavy attack.
✔ - The particles would have an upper limit to avoid FPS problems when scaling the attack with height.

Screenshots/Videos:

[media]

Attachments

Comments

muzikbike

Would it be possible to take the logarithm of the height and use that to generate the particles instead of it scaling linearly?

[Mod] Jingy

Effect is even more noticable now, with additional particles

[media]

[Mod] Jingy

(Unassigned)

1206653

Confirmed

Expansion B

Normal

Particles, Performance

fps, mace, mace-smash, particles

24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.6, 24w19b

24w21a

Retrieved