Multiplayer game server sync

by Devester   Last Updated June 12, 2016 08:05 AM

I am building a 2d multiplayer game with no physics and my own authoritative server. Already have all players getting synced each with other but their movement isn't so smooth yet.

Here is the mechanics:
- player clicks on the screen to move towards the mouse pointer. Client sends action + angle to server
- server calculate new position based on a certain speed and sends it back
- player then moves through interpolation

After reading a lot of articles and play around with few samples code, I still have my doubts about how to get the clock right on both sides.

Would the approach below be suitable for my type of game?
- Run the server at 1000/10
- Run the Client network loop at 1000/60 and the game loop at 1000/60

Also do I need a game loop running in the server at 1000/60?

Related Questions

Client prediction issues

Updated June 16, 2018 05:13 AM

Client interpolation without smoothing

Updated January 27, 2017 14:05 PM

Updating game state from server

Updated June 04, 2017 13:13 PM