🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Understanding Lag Compensation & Timestamps

Started by
20 comments, last by NetworkDev19 4 years, 9 months ago

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.

This topic is closed to new replies.

Advertisement