Skip to content

Instantly share code, notes, and snippets.

@mjn33
Created June 13, 2015 15:09
Show Gist options
  • Save mjn33/96a7dd8a02a1bda58e96 to your computer and use it in GitHub Desktop.
Save mjn33/96a7dd8a02a1bda58e96 to your computer and use it in GitHub Desktop.
diff --git a/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs b/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs
index c8d23e5..718af43 100644
--- a/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs
+++ b/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs
@@ -389,6 +389,7 @@ namespace FerramAerospaceResearch.FARAeroComponents
private void OnDestroy()
{
+ Debug.Log("[FARVesselAero.OnDestroy] Entered method, " + _vessel.vesselName + " (" + _vessel.id + ")");
DisableModule();
}
diff --git a/FerramAerospaceResearch/FARPartGeometry/VehicleVoxel.cs b/FerramAerospaceResearch/FARPartGeometry/VehicleVoxel.cs
index ca0f8c4..43066b1 100644
--- a/FerramAerospaceResearch/FARPartGeometry/VehicleVoxel.cs
+++ b/FerramAerospaceResearch/FARPartGeometry/VehicleVoxel.cs
@@ -173,10 +173,12 @@ namespace FerramAerospaceResearch.FARPartGeometry
lock (clearedChunks) //make sure that we can actually voxelize without breaking the memory limits
{
+ ThreadSafeDebugLogger.Instance.RegisterMessage("[VehicleVoxel] " + chunksInUse + " out of " + MAX_CHUNKS_ALLOWED + " chunks in use");
while (chunksInUse >= MAX_CHUNKS_ALLOWED)
{
- ThreadSafeDebugLogger.Instance.RegisterMessage("Voxel waiting for chunks to be released");
+ ThreadSafeDebugLogger.Instance.RegisterMessage("[VehicleVoxel] Voxel waiting for chunks to be released");
Monitor.Wait(clearedChunks);
+ ThreadSafeDebugLogger.Instance.RegisterMessage("[VehicleVoxel] Voxel finished waiting");
}
chunksInUse += xLength * yLength * zLength;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment