client local timeline is now STABLE, only synced once, always += local delta

This commit is contained in:
mischa 2024-09-24 14:36:55 +02:00
parent 216c549c1a
commit 143c14471f

View File

@ -148,7 +148,8 @@ static void UpdateTimeInterpolation()
// NetworkTime uses unscaled time and ignores Time.timeScale. // NetworkTime uses unscaled time and ignores Time.timeScale.
// fixes Time.timeScale getting server & client time out of sync: // fixes Time.timeScale getting server & client time out of sync:
// https://github.com/MirrorNetworking/Mirror/issues/3409 // 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. // progress local interpolation.
// TimeSnapshot doesn't interpolate anything. // TimeSnapshot doesn't interpolate anything.