From 9913194d06f43064b39d97d62b1b1a16fd82f927 Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 28 Jul 2024 11:16:58 +0200 Subject: [PATCH] Benchmarks: reset send interval multipliers back to 1, otherwise it'll give misleading results --- Assets/Mirror/Examples/Benchmark/Prefabs/Monster.prefab | 9 +++++---- Assets/Mirror/Examples/Benchmark/Prefabs/Player.prefab | 9 +++++---- Assets/Mirror/Examples/BenchmarkIdle/Player.prefab | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Assets/Mirror/Examples/Benchmark/Prefabs/Monster.prefab b/Assets/Mirror/Examples/Benchmark/Prefabs/Monster.prefab index 196110542..a5da36bf4 100644 --- a/Assets/Mirror/Examples/Benchmark/Prefabs/Monster.prefab +++ b/Assets/Mirror/Examples/Benchmark/Prefabs/Monster.prefab @@ -101,7 +101,7 @@ MonoBehaviour: sceneId: 0 _assetId: 3853995854 serverOnly: 0 - visible: 0 + visibility: 0 hasSpawned: 0 --- !u!114 &3679374677650722848 MonoBehaviour: @@ -119,19 +119,20 @@ MonoBehaviour: syncMode: 0 syncInterval: 0 target: {fileID: 2697352357490696306} - clientAuthority: 0 syncPosition: 1 syncRotation: 0 syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 interpolatePosition: 1 interpolateRotation: 0 interpolateScale: 0 - sendIntervalMultiplier: 3 + coordinateSpace: 0 + sendIntervalMultiplier: 1 timelineOffset: 1 showGizmos: 0 showOverlay: 0 overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - onlySyncOnChange: 1 bufferResetMultiplier: 5 positionSensitivity: 0.01 rotationSensitivity: 0.01 diff --git a/Assets/Mirror/Examples/Benchmark/Prefabs/Player.prefab b/Assets/Mirror/Examples/Benchmark/Prefabs/Player.prefab index d887fcd19..9a5855c90 100644 --- a/Assets/Mirror/Examples/Benchmark/Prefabs/Player.prefab +++ b/Assets/Mirror/Examples/Benchmark/Prefabs/Player.prefab @@ -101,7 +101,7 @@ MonoBehaviour: sceneId: 0 _assetId: 242745736 serverOnly: 0 - visible: 0 + visibility: 0 hasSpawned: 0 --- !u!114 &3679374677650722848 MonoBehaviour: @@ -119,19 +119,20 @@ MonoBehaviour: syncMode: 0 syncInterval: 0 target: {fileID: 2697352357490696306} - clientAuthority: 0 syncPosition: 1 syncRotation: 0 syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 interpolatePosition: 1 interpolateRotation: 0 interpolateScale: 0 - sendIntervalMultiplier: 3 + coordinateSpace: 0 + sendIntervalMultiplier: 1 timelineOffset: 1 showGizmos: 1 showOverlay: 1 overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - onlySyncOnChange: 1 bufferResetMultiplier: 5 positionSensitivity: 0.01 rotationSensitivity: 0.01 diff --git a/Assets/Mirror/Examples/BenchmarkIdle/Player.prefab b/Assets/Mirror/Examples/BenchmarkIdle/Player.prefab index b9567335a..c076b2c38 100644 --- a/Assets/Mirror/Examples/BenchmarkIdle/Player.prefab +++ b/Assets/Mirror/Examples/BenchmarkIdle/Player.prefab @@ -101,7 +101,7 @@ MonoBehaviour: sceneId: 0 _assetId: 3481667453 serverOnly: 0 - visible: 0 + visibility: 0 hasSpawned: 0 --- !u!114 &3679374677650722848 MonoBehaviour: @@ -119,19 +119,20 @@ MonoBehaviour: syncMode: 0 syncInterval: 0 target: {fileID: 2697352357490696306} - clientAuthority: 0 syncPosition: 1 syncRotation: 0 syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 interpolatePosition: 1 interpolateRotation: 0 interpolateScale: 0 - sendIntervalMultiplier: 3 + coordinateSpace: 0 + sendIntervalMultiplier: 1 timelineOffset: 1 showGizmos: 0 showOverlay: 0 overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - onlySyncOnChange: 1 bufferResetMultiplier: 5 positionSensitivity: 0.01 rotationSensitivity: 0.01