So I'm not sure if I'm the only person experiencing this, but as soon as I try to spawn a single firework, the client starts a lagfest like never seen before. I get a new frame rendered every 10 seconds or so, CPU usage is at one maxed-out core. Server load is fine. I'm using no fancy code, just that example I found in another thread where a firework would be launched on level up. So obviously this is somewhat a client issue, but I was wondering if someone knows what might cause this. Crafting a simple firework with no effect works fine. I'm adding like two colors and a fade to my test rocket, not like 500 colors and 5 trillion shapes...
Less? How does that even make sense? Even if it would help, I couldn't ask all my players to fiddle around with their launcher settings. Update: meta.setPower(3 + Helper.nextInt(9)); seems to be the cause. If I don't change the power after spawning, I can add tons of effects and everything is fine... So any ideas how I can make my fireworx go higher without lagging out all clients? EDIT by Moderator: merged posts, please use the edit button instead of double posting.