Class BorderDebugUtility
Debug and benchmarking utilities for border rendering Extracted from BorderComputeDispatcher for single responsibility
Responsibilities:
- Benchmark border detection performance
- Generate debug visualizations
- Clear/fill border textures for debugging
- Save debug textures to disk
public class BorderDebugUtility
- Inheritance
-
objectBorderDebugUtility
Constructors
BorderDebugUtility(MapTextureManager, bool)
public BorderDebugUtility(MapTextureManager manager, bool enablePerformanceLogging = false)
Parameters
managerMapTextureManagerenablePerformanceLoggingbool
Methods
BenchmarkBorderDetection(Action<BorderMode>)
Benchmark border detection performance across different modes
public void BenchmarkBorderDetection(Action<BorderMode> detectBordersCallback)
Parameters
detectBordersCallbackAction<BorderMode>
ClearBorders()
Clear all borders
public void ClearBorders()
FillBordersWhite()
Fill border texture with white for debugging
public void FillBordersWhite()
GenerateCurveDebugTexture()
Generate debug texture showing extracted curve points as colored dots RED = Country borders, GREEN = Province borders
public Texture2D GenerateCurveDebugTexture()
Returns
SaveCurvePointsDebug(string)
Save curve points debug visualization to disk
public void SaveCurvePointsDebug(string outputPath = "D:/Stuff/My Games/Hegemon/curve_points_debug.png")
Parameters
outputPathstring