Table of Contents

Class BorderDebugUtility

Namespace
Map.Rendering.Border
Assembly
MapAssembly.dll

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
object
BorderDebugUtility

Constructors

BorderDebugUtility(MapTextureManager, bool)

public BorderDebugUtility(MapTextureManager manager, bool enablePerformanceLogging = false)

Parameters

manager MapTextureManager
enablePerformanceLogging bool

Methods

BenchmarkBorderDetection(Action<BorderMode>)

Benchmark border detection performance across different modes

public void BenchmarkBorderDetection(Action<BorderMode> detectBordersCallback)

Parameters

detectBordersCallback Action<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

Texture2D

SaveCurvePointsDebug(string)

Save curve points debug visualization to disk

public void SaveCurvePointsDebug(string outputPath = "D:/Stuff/My Games/Hegemon/curve_points_debug.png")

Parameters

outputPath string