Jump to content
  • Advertisement
NetworkDev19

Understanding Lag Compensation & Timestamps

Recommended Posts

I *think* I figured out why it was oscillating so much.

At a tickrate of 60, my server was ticking sporadically because performance is not refined yet. I started to count how many ticks occur in an Update() loop in Unity, and it would bounce between 1-4 frequently. This means that the game client has to continually change its guessing.

I dropped the tickrate to 30, my server is currently running around 40FPS anyway, and now I get a much more stable guess at the server's tickrate. The delta is closer to 2 after the game client connects and syncs up a bit.

I'll have to ramp up the tickrate when I get better performance.

Share this post


Link to post
Share on other sites
Advertisement

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!