We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933bc15 commit a150debCopy full SHA for a150deb
Assets/PhysicsLayers/Example/Scripts/TestController.cs
@@ -38,25 +38,7 @@ void Update()
38
{
39
var colls = this.collisions
40
.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
56
57
- sw.Stop();
58
- Debug.Log("経過時間:" + sw.ElapsedMilliseconds + "ms");
59
60
for(var i = 0; i < colls.Length; i++)
61
62
colls[i].UpdateIgnoreLayers();
0 commit comments