In online games there's always lag for everyone, some have it high and some low, can't remember exactly where but I read about a technique in hiding lag and making smooth play by "delaying" the clients by a constant time, so if the server is running at time X, the clients are rendering what happened at time X-delay.
I'm trying to implement this technique, using the following script:
Player lag compensation script, what's wrong?
I'm trying to implement this technique, using the following script:
Code (CSharp):
- class PlayerController : NetworkBehaviour {
- class Snapshot{
- public long time;...