From 143c14471f88e0883bfae50ebd2755cca413a1f7 Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 24 Sep 2024 14:36:55 +0200 Subject: [PATCH] client local timeline is now STABLE, only synced once, always += local delta --- Assets/Mirror/Core/NetworkClient_TimeInterpolation.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/NetworkClient_TimeInterpolation.cs b/Assets/Mirror/Core/NetworkClient_TimeInterpolation.cs index 33546d6aa..1080a5d4c 100644 --- a/Assets/Mirror/Core/NetworkClient_TimeInterpolation.cs +++ b/Assets/Mirror/Core/NetworkClient_TimeInterpolation.cs @@ -148,7 +148,8 @@ static void UpdateTimeInterpolation() // NetworkTime uses unscaled time and ignores Time.timeScale. // fixes Time.timeScale getting server & client time out of sync: // https://github.com/MirrorNetworking/Mirror/issues/3409 - SnapshotInterpolation.StepTime(Time.unscaledDeltaTime, ref localTimeline, localTimescale); + // SnapshotInterpolation.StepTime(Time.unscaledDeltaTime, ref localTimeline, localTimescale); + localTimeline += Time.deltaTime; // progress local interpolation. // TimeSnapshot doesn't interpolate anything.