Client-Server question

Started by
1 comment, last by VaderSB 23 years, 6 months ago
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?
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
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
- Brad Pickeringhttp://home.earthlink.net/~uubp/Home for organically grown games

This topic is closed to new replies.

Advertisement