mirror of
https://github.com/Xevion/procedural-placement.git
synced 2025-12-06 15:16:03 -06:00
add simple point generation timing debug statement
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user