View Single Post
  #16  
Old 12-31-2008, 06:31 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

The problem is it completely lags the main thread. While outgoing and incoming communication have their own threads the main thread still decides when we queue a new outbound position packet. People noticed that aoe with addition spell effects attached make the problem worse which might be that it's more work than attacks, tho not by much but also that for each spell effect it adds extra packets that then need to be sent out. And things like basic packets the client needs to stay connected are already lagged because the main thread is lagging.

Since position packets etc. aren't part of the base protocol they aren't automatically handled in those threads like ACK and disconnect/connect packets for example. Keep alive packets are part of the base protocol but I'm guessing the client expects more info from the server than the base keep alive packet to maintain connection. That is basically the problem. We could spawn another thread for just AoE calculations but that doesn't seem like a very elegant solution.
Reply With Quote