jhester / DistributedGA

A distributed Genetic Algorithm simulation.
http://josiahhester.com
5 stars 0 forks source link

Synchronization Issues #21

Closed jhester closed 13 years ago

jhester commented 13 years ago

Ok so Ive been looking through our code and we seem to be having issues synchronizing the observer and the game, the thing is that the observer is realtime and the actual game can be played much much faster. This is causing problems because we are updating the player list mid way through the observer walking players around the map, its making for some freaking wierd behavior. I think we need all the while loops we have going on to be synced, cause right now theyre not. time.sleep may not be the answer to this.

jhester commented 13 years ago

Ok so I removed some of the time.sleep stuff and used ACK's instead, essentially i just confirm reception of data between the observer and the server and now the problem is pretty much fixed. Had to update the client as well because theyre were synchronization issues with the map. Trying to get this system as robust as possible for the presentation.

jhester commented 13 years ago

Ok so all those sync issues are resolved! Observer is running very smoothly now, and attacking and moving look great and smooth.