From eaf1df2dc12204bd30b86c8fd1bed2fca509d5d8 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 17 Nov 2020 20:46:27 +0800 Subject: [PATCH] better --- .../Tests/Performance/Editor/NetworkWriterPerformance.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Assets/Mirror/Tests/Performance/Editor/NetworkWriterPerformance.cs b/Assets/Mirror/Tests/Performance/Editor/NetworkWriterPerformance.cs index f20a387d7..1b4c6bae7 100644 --- a/Assets/Mirror/Tests/Performance/Editor/NetworkWriterPerformance.cs +++ b/Assets/Mirror/Tests/Performance/Editor/NetworkWriterPerformance.cs @@ -54,12 +54,9 @@ public void RunWriteQuaternion() static void WriteQuaternion() { NetworkWriter writer = new NetworkWriter(); - for (int j = 0; j < 1000; j++) + for (int j = 0; j < 100000; j++) { - for (int i = 0; i < 10; i++) - { - writer.WriteQuaternion(Quaternion.identity); - } + writer.WriteQuaternion(Quaternion.identity); } } }