I'm considering all the ways for my Java RTS server to encode the game-state in a byte array for each client's valid vision.
Obviously, thousands of units are possible, also, if ordinance is included as a unit.
I have 2 byte integers and a band of tuples for each unit's x,y location and a boolean for whether or not the unit exists.
The whole issue is how many units to make room for, even with supply limits for units.
In an 8 FFA or a 4 v 4 game, thousands of units will exist.
How big could my byte be? 4096 ? 32k 64k
- for optimal transfer? what should my data structure look like?