Skip to content

Commit a150deb

Browse files
committed
余計なコメント消した
1 parent 933bc15 commit a150deb

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Assets/PhysicsLayers/Example/Scripts/TestController.cs

-18
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,7 @@ void Update()
3838
{
3939
var colls = this.collisions
4040
.FindAll(coll => coll.LayerID == LayersManager.UnityLayerCount).ToArray();
41-
42-
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
43-
sw.Start();
44-
45-
//実行時間を知りたい処理.
46-
for(var i = 0; i < colls.Length; i++)
47-
{
48-
colls[i].Layer.ChangeLayer(33);
49-
}
50-
51-
// list → 333ms
52-
// Array -> 23ms
53-
54-
// 100で333ms → 3.33ms / 1
55-
// 100で25ms → 0.25ms / 1
5641

57-
sw.Stop();
58-
Debug.Log("経過時間:" + sw.ElapsedMilliseconds + "ms");
59-
6042
for(var i = 0; i < colls.Length; i++)
6143
{
6244
colls[i].UpdateIgnoreLayers();

0 commit comments

Comments
 (0)