Spawning particles without lagging the server

Discussion in 'Spigot Discussion' started by DeleteMetaInf, Feb 21, 2020.

  1. I want to spawn particles inside portals in the hub. Currently, on my test server, I’m using command blocks, but I fear they’ll lag the server once there are many players on it.

    Four repeating command blocks constantly spawning particles every tick probably aren’t very server-friendly.

    I did find a plugin called Block Particles. I’m not sure if this’ll be a good solution or if it’ll just lag the server just as much.

    Does anyone have a solution, or should I just not use particles at all? Is there a way I can only spawn the particles if there is a player looking in the direction of them so they aren’t constantly spawned, perhaps? :coffee:
     
  2. Hi. I used Block Particles before. It won't affect performance that much. Give Block Particles a try. :D
     
  3. It shouldn’t lag your server. What’s your CPU?
     
  4. 2020-02-21_10.33.20-shrink.png
    I did this as an experiment a while back, forgot to turn it off so it's been always running. What is it? 545 command blocks every tick spawning one of the potion swirly particles at the same place. Still at 20 tps, 4 should be no problem.
     
  5. Block Particles is a very good plugin. Give it a try. ^^
     
  6. Huh. I suppose I’ll continue to use command blocks, then. Thank you! :coffee: