SmartFox 2X vs SmartFox 1.6.x
Posted: 17 Sep 2012, 22:59
Hey guys, I am at the point in our project where the groundwork is in place and I have a question. Forgive me if this is a dumb question, but we are using SmartFox 1.6 and sending messages as pure string values like so:
x:120:70:45
We then tokenize the string on each end based on the ":" character to get the values, so first entry in the list would be a 1-2 character keyword and based on that we extract the values, so example above could be a player position update.
Now this is pretty small, which I like, but I was wondering if there was any performance gain with SmartFox 2X. I heard there is a binary protocol? Does this actually send it in a compressed binary message, or does it send the binary values as a string? As ascii the binary looks like:
011110000011101000110001001100100011000000111010
0011011100110000001110100011010000110101
Which is way more bloated than the pure text example above. So yeah, some insight on this would be much appreciated! Thanks guys!
x:120:70:45
We then tokenize the string on each end based on the ":" character to get the values, so first entry in the list would be a 1-2 character keyword and based on that we extract the values, so example above could be a player position update.
Now this is pretty small, which I like, but I was wondering if there was any performance gain with SmartFox 2X. I heard there is a binary protocol? Does this actually send it in a compressed binary message, or does it send the binary values as a string? As ascii the binary looks like:
011110000011101000110001001100100011000000111010
0011011100110000001110100011010000110101
Which is way more bloated than the pure text example above. So yeah, some insight on this would be much appreciated! Thanks guys!