Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimize Your Packets!
#15
Gilgamesch Wrote:is there an easy way to add this :lol:

i looked at the code and didnt really understand it :/

Simply - no. 8)

If you want to use binary packets, you're going to have to redesign every single packet once to fit the system, then again to optimize them.

Oh also, something I noticed is that you guys pack an integer to show how large the string is - you should rarely be sending strings over 255 characters long, so a byte should suffice. I created two functions - Put_String and Put_StringEX, where Put_String packs a byte and Put_StringEX packs an integer, and I only have to use Put_StringEX for when I am retrieving/writing the main body message of in-game mail. May not be that big of a change, but that is -1 byte for every string you send. 8)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)