Tag Info

Hot answers tagged

3

You need to have a future command queue that will only be acted upon once all parties will have confirmed reception of the command. This queue will include no-operation null commands if no new command is to be executed. The delay for each command can be dependent on the ping/lag. The simulation on every peer only executes to the point (call it frame ...


3

3G is optimized for stuff like streaming video. It's terrible with regard to latency when talking about small bits of data. There's a reason multiplayer mobile games over 3G with split-second timing don't exist.


2

I highly recommend you study the TCP model; it is very mature and has many features built in over the years, making it a jack-of-all-trades networking protocol. It will likely have features that address any follow-up concerns you may have. The scenario you describe is also known as packet loss; Player_A has sent a confirmation to Player_B but Player_B ...


2

Even if there's no host or server, one of the players needs to be in control, be the "host". Assume there's host A and any number of players B (in your case just 1). A pings B and records the average delay. When the game is about to start, A sends to B that it needs to start within N msec (delay value obtained above) after that message arrives. Now when ...


2

Start with whatever's easiest to get your stuff up and working. It sounds like you have a good grasp of potential improvements and tradeoffs, so, go for "easy and works" first, and improve if needed. Do profiling of time & space. Might even, just to start, send un-delta'd messages, if it is feasible. Choice 1 is pretty good, by the way, and there may be ...


2

With a multiplayer >2 game like StarCraft you can do a best out of X to figure out who's lagging. With a 2 player game there is no way to know who's at fault as it's a single connection, its that one connection that is having issue. Again, there is no such thing as player B being disconnected as the one single connection gets broken, both A and B gets ...



Only top voted, non community-wiki answers of a minimum length are eligible