From a3c7534d9ed1c8f5656269df6f5b419d3bd492d1 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 6 May 2020 06:59:54 -0500 Subject: [PATCH] add simple point generation timing debug statement --- procedural-placement/Assets/PointRendering.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/procedural-placement/Assets/PointRendering.cs b/procedural-placement/Assets/PointRendering.cs index 4d8c5eb..0fa9203 100644 --- a/procedural-placement/Assets/PointRendering.cs +++ b/procedural-placement/Assets/PointRendering.cs @@ -48,6 +48,7 @@ public class PointRendering : MonoBehaviour { _retryAttempts = retryAttempts; // Handling for different types of point sampling methods + float t1 = Time.realtimeSinceStartup; switch (samplingMethod) { case SamplingTypes.Random: _points = PointGeneration.random_sampling(numPoints, regionSize); @@ -63,6 +64,9 @@ public class PointRendering : MonoBehaviour { default: throw new ArgumentOutOfRangeException(); } + + float t2 = Time.realtimeSinceStartup; + Debug.Log($"{samplingMethod} generated in {t2 - t1:0.0000} seconds"); } }