From bab559f2b65faaeaa0d0f4781aa05d992cb6d479 Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 9 Apr 2024 11:35:47 +0800 Subject: [PATCH] perf: disable interp for now --- .../Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs index 06b6f68b2..90b7ba829 100644 --- a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs +++ b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs @@ -92,7 +92,8 @@ protected virtual void Awake() // in fast mode, we need to force enable Rigidbody.interpolation. // otherwise there's not going to be any smoothing whatsoever. - predictedRigidbody.interpolation = RigidbodyInterpolation.Interpolate; + // PERF: disable this for now! + // predictedRigidbody.interpolation = RigidbodyInterpolation.Interpolate; // cache computations velocitySensitivitySqr = velocitySensitivity * velocitySensitivity;