Original Post
I have been looking into mmorpg server as previous posts here in this forum have hinted. I have managed to write a pathfinding using A-star. I can make a pathfind on a 20x20 grid and got it down to 30 ms, I''m sure it can be optimized more. The problem is it is 30 ms without any sleep in thread. If i sleep path thread to much between nodes it will take to long and it definately will not be RT. The problem increases on a server that will host 100+ NPCs that wander about. I hope you understand my problem, note I am no java pro but find this challenge interesting. If anyone has a good idea of how to go about pathfinding 100+ NPCs at once on a java server please help! Any ideas are welcome (even if you are novice like me!)