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:
- Place down an armor stand
- Hold a mace
- Teleport the player 10 blocks into the air
/tp @p ~ ~10 ~
- Land a 'heavy' attack
→ Observe results - 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:
2024-03-14, 05:32 PM
2024-05-15, 06:33 PM
2024-05-15, 06:33 PM
5
3
1206653
fps, mace, mace-smash, particles