[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
- To: firstname.lastname@example.org
- Subject: peer-peer syncronization
- From: Francesco Orsenigo <email@example.com>
- Date: Sun, 9 Nov 2003 17:00:09 +0100
- Delivered-to: firstname.lastname@example.org
- Delivered-to: mailing list email@example.com
- Delivery-date: Sun, 09 Nov 2003 11:00:47 -0500
- Mailing-list: contact firstname.lastname@example.org; run by ezmlm
- Organization: Xarvh Project
- Reply-to: email@example.com
- User-agent: KMail/1.5.4
How can syncronize a game (ie: make two simultaneous events appear
simultaneous to all users) in a peer-peer system, using UDP?
(TCP would be slow, and i'd like to avoid the complexity of a client-server
The technique would be for each peer to send just the info about commands
given by the player, along with the game time when the command itself is
issued, but this may easily lead to unconsistencies between peers.
A more robust way would be for each peer to send, each game tick, a message
with a "I'm ready for next game cycle, no command" to each other peer, OR a
"I'm ready and the player issued the XYZ command"... But this is
EachPlayer*EachOtherPlayer*EachGameTick... too many "each"... the network
load would be too high even for a 5fps game.... or not?
Is there any documentation about doing such things?