Just the counting of entities is laggy, we have systems in place for keeping track of entities. If there are too many of one type of entity it randomly kills some of them until it's under a set amount. If there are way too many entities in the world it will pause the spawning of entities. We do quite a bit to limit entities as well as staff checking players. I have learned that there's a balance between automation with functions and lag. Too much checking/anti-cheat code causes lag, about 15-20% of the lag comes just from anti dupe, anti lava, hacking detection, and other functions. The reason I have implemented so much in the panel is to remove as much as I can from the slow Minecraft functions.