From e94eefb0494c5c06469f350a62040c6b61688c70 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 8 Mar 2023 11:49:13 +0800 Subject: [PATCH] obsolete --- .../Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs b/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs index 3493bd6c2..58cd4eb07 100644 --- a/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs +++ b/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs @@ -8,6 +8,7 @@ // fholm: netcode streams // fakebyte: standard deviation for dynamic adjustment // ninjakicka: math & debugging +using System; using System.Collections.Generic; using System.Runtime.CompilerServices; @@ -88,6 +89,7 @@ public static double TimescaleV2( // note that negative threshold should be <0. // caller should verify (i.e. Unity OnValidate). // improves branch prediction. + [Obsolete("use TimescaleV2 instead")] public static double Timescale( double drift, // how far we are off from bufferTime double catchupSpeed, // in % [0,1]