Byte vs. Int over network
BlitzMax Forums/BlitzMax Programming/Byte vs. Int over network
| ||
In a network game context, is it better to send and receive Bytes through a socket rather than Ints since Bytes are small even though Ints are word size? |
| ||
It depends on the overall size of your packets... Because your OS uses specific window sizes (receive and send window) it has a little slowdown when reaching the limit. As long as you only send the position of a player and the id of him there wouldn't be a case to matter about. bye MB |
| ||
okay thanks |
| ||
Remember that the minimum size of an Ethernet frame is 64 bytes (512 bits). If you send less, it will be padded by your NIC. |