Author Topic: Sending data very often  (Read 1548 times)

djray2k

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 4
  • Posts: 74
  • Blockey Hockey!
    • View Profile
    • Walking Talking Grilling Bear Studios
Sending data very often
« on: June 26, 2014, 12:19:48 PM »
Let's say I'm doing a Server-Client structure.

Would it be OK for all the client players to send small amount of data (say 4 bytes) to the server 60 times per second? How many clients would it take for something like that to affect performance?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sending data very often
« Reply #1 on: June 27, 2014, 02:12:08 PM »
I wouldn't recommend that. Your packets will be bundled into fewer packets, batched and sent many at a time, resulting in the opposite of what you're trying to achieve. Use prediction instead of frequent packets. Also note that with 60 times per second updates, a half a second spike in network traffic will be extremely noticeable.