private void Update() { if (this.lastInputFrame != Time.frameCount && (!this._controllable || !this._controllable.masterControllable.forwardsPlayerClientInput)) { this.lastInputFrame = Time.frameCount; this.ClientInput(); } if (NetCull.isClientRunning && !Globals.isLoading) { ulong num = NetCull.localTimeInMillis; if (num >= this.nextAutoReclockTime) { try { ulong num1 = Math.Min(num - this.nextAutoReclockTime, (ulong)500); NetCull.ResynchronizeClock((double)((float)((long)3000 + num1)) / 1000); num = num + num1; } finally { this.nextAutoReclockTime = num + (long)420000; } } } }
private void Update() { if ((this.lastInputFrame != Time.frameCount) && ((this._controllable == null) || !this._controllable.masterControllable.forwardsPlayerClientInput)) { this.lastInputFrame = Time.frameCount; this.ClientInput(); } if (NetCull.isClientRunning && !Globals.isLoading) { ulong localTimeInMillis = NetCull.localTimeInMillis; if (localTimeInMillis >= this.nextAutoReclockTime) { try { ulong num2 = Math.Min(localTimeInMillis - this.nextAutoReclockTime, (ulong)500L); NetCull.ResynchronizeClock((double)(((double)(((ulong)0xbb8L) + num2)) / 1000.0)); localTimeInMillis += num2; } finally { this.nextAutoReclockTime = localTimeInMillis + ((ulong)0x668a0L); } } } }
protected void RS(float duration) { NetCull.ResynchronizeClock((double)duration); }