time synchronization on server & client
Members - Reputation: 756
Posted 07 January 2012 - 05:00 AM
If your app is real time, carry that time in every net response. In real time app you of course continuously communicate with the server.
If you app is not real time, sync the time in every reasonable period. 1 second, 5 seconds. 1 minute, whatever. You client needs to remember the time and use local clock to increase the time until next sync.
cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.
v1.5.5 was released. Now supports tween and timeline for ease animation.