PCs and Pathfinding

Moderator: Event DM

Post Reply
Czarcasm
Team Member; Retired with Honors
Posts: 1724
Joined: Tue Nov 09, 2004 2:55 pm
Timezone: GMT-6
Location: St. Louis, MO

PCs and Pathfinding

Post by Czarcasm » Fri Sep 02, 2005 11:03 pm

When a player clicks a location for his PC to move on a server, which computer does the pathfinding? I ask because I've noticed when I move using the keyboard, I tend to actually move during lag, unlike clicking.

I know pathfinding can cause big lag for NPC's, but how about PC's? Does moving with the keyboard decrease lag at all? Just curious, really.
Dralix
Elder Sage
Posts: 4761
Joined: Thu Jul 17, 2003 6:08 pm
Location: FTP

Post by Dralix » Fri Sep 02, 2005 11:09 pm

Don't know if it decreases lag for others, but during high lag situations, you'll definately move better using the keyboard.
User avatar
Themicles
CoPaP Ambassador
Posts: 2673
Joined: Wed Jan 29, 2003 10:45 pm
Location: Wolverine Lake, MI
Contact:

Post by Themicles » Fri Sep 02, 2005 11:17 pm

Your computer get's the walkmesh data from the server, at the very least. I don't know for sure, but from experience:

I've noticed lag on on Tairis with a single group of people all moving at once near each other, using point and click movement. That suggests to me that the server is doing the pathfinding...

Maybe someone should ask on the Bio-boards.

-Themicles
A wise man does not dwell on his past. He learns from it, he grows from it, and then moves ahead into his future.

And some wise words from a wise man. :P
Orleron wrote:You have to excuse Themi. Tact, diplomacy, and softness are not his best traits, but he does not mean anything by his writing. He's a nice guy. You just get used to it after a while because he doesn't seem to learn. :)
User avatar
Tigg
Elder Sage
Posts: 3486
Joined: Wed Feb 09, 2005 11:18 pm
Location: Into the sunset/Hyboria

Post by Tigg » Sat Sep 03, 2005 12:02 am

When you use the keyboard to move during big lag, you'll actually move on your screen.

However... you'll experience a lot more of the stuff where, when you actually do click on something, you find yourself teleported backwards a ways, or your character standing there doing hurky-jurky stuff which is actually some approximation of the 'catching up' of the motions that they would have done to get to where they went. Or... you ran up the road to the transition, then when you try to go through it, it takes forever.

It doesn't make much sense, but to me it seems to indicate that keyboard happens client-side, and click happens server-side. Or rather, keyboard activates immediately on client-side while sending a character string (wwwwwwwdddddwwwwww...) to the server, which when it is lagging only registers it in bits. The difference in these two techniques would seem to indicate that pathfinding happens server-side.

That's why, after years of fighting lag, I now mix the techniques when things are moving slow. If I'm going through open territory, keyboard is fine.. but if there's going to be maneuvering around obstacles, keyboard can mess you up during lag because you may get stuck running into something and put back there when the server registers your moves, due to (I assume) a couple characters in the string of what you were sending with keyboard controls getting lost in the transmission. So for finer maneuvering, or if there might be combat, I use click. It will be slower, but you'll be more likely to really 'be' where you're shown... Also an extra click here and there can help, i.e. if you're not seeming to attack that monster, click on it again.

:) :)
Ua mau ke ea o ka ina i ka pono.
Post Reply