mirror of
https://github.com/Xevion/procedural-placement.git
synced 2025-12-06 05:16:05 -06:00
add simple point generation timing debug statement
This commit is contained in:
@@ -48,6 +48,7 @@ public class PointRendering : MonoBehaviour {
|
|||||||
_retryAttempts = retryAttempts;
|
_retryAttempts = retryAttempts;
|
||||||
|
|
||||||
// Handling for different types of point sampling methods
|
// Handling for different types of point sampling methods
|
||||||
|
float t1 = Time.realtimeSinceStartup;
|
||||||
switch (samplingMethod) {
|
switch (samplingMethod) {
|
||||||
case SamplingTypes.Random:
|
case SamplingTypes.Random:
|
||||||
_points = PointGeneration.random_sampling(numPoints, regionSize);
|
_points = PointGeneration.random_sampling(numPoints, regionSize);
|
||||||
@@ -63,6 +64,9 @@ public class PointRendering : MonoBehaviour {
|
|||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException();
|
throw new ArgumentOutOfRangeException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float t2 = Time.realtimeSinceStartup;
|
||||||
|
Debug.Log($"{samplingMethod} generated in {t2 - t1:0.0000} seconds");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user