mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
client local timeline is now STABLE, only synced once, always += local delta
This commit is contained in:
parent
216c549c1a
commit
143c14471f
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user