Original Post
Hi guys i have been reading around about network programming for RTS, mainly the lockstep method and i have a few questions. How do you make sure all network frames are exactly synchronized with each other?(executed at the same time) Is it even necessary? Is it possible to synchronized the frames even if clients join the game later on? Will this method work?: 3 clients connected in a P2P manner(star). 1st net frame - (Exchanging of commands) client A broadcasts commands to B and C client B broadcasts commands to A and C client C broadcasts commands to A and B (executing and incrementing frame) If client A recives commands from all clients, execute all commands. Move to nxt frame. If client B recives commands from all clients, execute all commands. Move to nxt frame. If client C recives commands from all clients, execute all commands. Move to nxt frame. Each net frame will be a fixed length, abt 50ms. This way the game will have the exact same thng going on on all clients, but at slightly diffrent paces. Some may be a few second behind or ahead. What are the problems with this method?