Hi again!
After much sweat (I worked at McDonalds this morning) I have finally
got a nice little system for my game. The game can now run five ships
at a time (far cry from 50, I know) but it now allows you to swap the
fleets you have out there - the "Sky beam" picks up and replaces fleets
with another fleet that is waiting "in orbit".
Anyway. The packets I send now contain pretty much the entire
gamestate - or at least half of it. All the ships on the one side are
sent over, each one requires 15 bytes. As well, the health of the ships
on the other side are sent over - one byte each. Wether or not a win
occured, types and lengths ect. are packed into one byte.
After all this, the maximum size of one packet works out to be 86 bytes. Plus header = 137 bytes.
Is this packet too big? I hope to be able to send it out at least
ten times per second, optimally 20 or 30 times per second (as my
prediction algorithms could use a little work....)
Looking at the network prediction sample, the packets sent in it are
91 bytes in size, and it works perfectly well. Can someone help me out
here? Think it'll be okay? Or do I need to do a cut down in size?
Thanks in advance for the advice - btw, this is an old thread I've recycled, so the stuff following won't be continuous.