[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
- To: email@example.com
- Subject: peer-peer syncronization
- From: Francesco Orsenigo <firstname.lastname@example.org>
- Date: Sun, 9 Nov 2003 17:00:09 +0100
- Delivered-to: email@example.com
- Delivered-to: mailing list firstname.lastname@example.org
- Delivery-date: Sun, 09 Nov 2003 11:00:47 -0500
- Mailing-list: contact email@example.com; run by ezmlm
- Organization: Xarvh Project
- Reply-to: firstname.lastname@example.org
- 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?