View Single Post
  #10  
Old 11-15-2006, 08:29 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Tyhm View Post
:-/ Don't like it. Then you ask the player to detect every few seconds whether they've collided with any element of level.baddies.
No, instead of constantly telling the client to send data packets to the server, you're letting everything happen on the client and only sending data to the server when it needs to. Most overhead comes from client-server interaction. As traffic to the server will increase for every player on the server, the server will take more time to take in all of the data, and therefore also take longer to process and respond. It's also good practice to use bitflags instead of typical bools to reduce traffic.
Reply With Quote