Multiplayer tutorial 1: concepts

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • So 8 bits can store "10000001" for up to eight controls. But it can also store up to

    2|2|2|2|2|2|2|2

    5|5|5|5|5|5|5|5

    5|5|5|5|5|5|5|5

    for each bit, yes?

    Since "0" & "1" are single digits per bit, are not "2-9" also as efficient to utilize, also being single digits? And "10-99" would have to also be more efficient than "100-255". Even if the efficiency of fewer digits per bit in a byte is rather negligible...?

    Edit: Right. 1s & 0s in combo * 8 digits = 255.

    8 slots to indicate 8 controls in-/active in one packet, or all 8 slots used to indicate just one piece of info.