Jump to content
  • Advertisement
igormorgado

Levels of authoritative server

Recommended Posts

While developing a authoritative server to control game state and physics, is it worth to also duplicate the physics engine inside the client and do a sanity check every n frames or this is just throwing resources away since most of time the client will be out of sync?

Share this post


Link to post
Share on other sites
Advertisement

In many cases the client uses physics to extrapolate future positions/collisions and to simulate things that only need to be simulated on the client.  This allows the client to be more resilient to lag, and can help to provide a more detailed client side experience.

Generally speaking the Authority in the server comes from the fact that both sides are running the same simulation concurrently.  The server having the authoritative version.  The client taking steps to remain in sync at all times.

Edited by Septopus

Share this post


Link to post
Share on other sites

That all being said, you don't have to have physics on the client(depends some on game of course), but I think you lose more than you would probably gain in most scenarios.

Share this post


Link to post
Share on other sites

Thanks Septopus, yes. I think that keep the client with physics and just rewind in case of disagreement is a better approach. I still need to learn more about this.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!