Running both server and client on one PC causes lag despite ping < 1 ms.

Started by
26 comments, last by Heelp 7 years, 6 months ago

Seems enough for now. I hope there aren't any floating point errors that can accumulate and mess up my timers with time.

4222246165.png

(the article the image is taken from - interesting read, but the war isn't over yet)

Advertisement
If you use "double," it will happen after years of uptime, which probalby is an OK trade-off.

Ok, I changed it.

Thus, it is good to include timing information in each packet, and if you find that the PC is "too different" from the server, adjust the PC.
If the PC is too far behind the server, adjust the clock forwards by 1/10th of the delta. That way, it will be reasonably smooth when catching up, without making a large jump.

I was just going to ask about that. Mindreader.

Thanks to all for the help. :cool:

This topic is closed to new replies.

Advertisement