• Advertisement

Archived

This topic is now archived and is closed to further replies.

Client-Server question

This topic is 6287 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I faced a problem durin developin my client-server code (i''m usin DPlay7) - at first i planned this technique: all clients send their control buttons data (like player5 press left button and fire button) while server sends them current level status (all objs locations and params)... It all looks fine but only when all players (includin server) have same fps - but when server, for example, have 60 fps and client have 30fps - client''s state will be updated too fast for him... So my problem is how to synchronize server''s and client''s states without any fps dependence. Do u know how to do it?

Share this post


Link to post
Share on other sites
Advertisement
You can find some info on this web page on NTP, that will synchronize timmers between your client and server.

www.codewhore.com

Good Luck

-ddn

Share this post


Link to post
Share on other sites
You can let the frame rate be whatever but you should choose a fixed rate to sample the controls and send them to the server. I like 15fps but I''ve seen 10, 20, and 30 used too. It is probably simpler if you make your frame rate match your sample rate.


- Brad Pickering
http://home.earthlink.net/~uubp/
Home for organically grown games

Share this post


Link to post
Share on other sites

  • Advertisement