by stux · 2mo ago · 0 comments
How come the client sends waypoints rather than just the destination? Naively it seems like sending less data would be better. Is the pathfinding so expensive that you'd want to avoid doing it on the server? I suppose it works out as long as it's cheap to validate/correct the client's path?
It's also possible they could have made it work, and it would have been a technical win, but just didn't need to since they had an MVP.
//TODO: good enough, fix later
In the actual source code
One of these was showing NPC pathing in the form of dots with lines in between. At any time the WoW client would know next 5 or so waypoints of a mob that was idle patrolling.
I guess it’s more efficient to send a batch of waypoints occasionally than one at a time more regularly.
It was a interesting watching boss fights where the pathing would update quite regularly, especially if the tank had just died and it was systematically clobbering everyone else.
People spam click, so it's cheaper to compute it once and pass it around.