Jump to content

  • Log In with Google      Sign In   
  • Create Account


time synchronization on server & client


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 artificialguy   Members   -  Reputation: 100

Like
0Likes
Like

Posted 07 January 2012 - 03:24 AM

Hello there.
I've got a float variable that increments every frame on the server. How do I synchronize this value with the timer on the client side since
the client needs this?

Thanks.

Sponsor:

#2 wqking   Members   -  Reputation: 756

Like
0Likes
Like

Posted 07 January 2012 - 05:00 AM

Not know your specify problem.

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.

http://www.cpgf.org/
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.


#3 artificialguy   Members   -  Reputation: 100

Like
0Likes
Like

Posted 07 January 2012 - 05:27 AM

Thanks. I got it working now.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS