Can someone post how to make a stable SpawnSystem, in C++ and if is possible in Java
I mean for example if I have 6.000 mobs I don't like to show all of them to the player so I got a for, and the for check EVERY MOB (6.000 mobs are checked) and if someone have distance < 20 It spawn to player, so that get laggy because, imagine are 30 players, so checks 6.000 mobs for one player and if somemob are with distance less than 20 show to the player, and make it 30 times... so how can i make it better? Or the best way to do that