Table of Contents

Class OwnerTextureDispatcher

Namespace
Map.Rendering
Assembly
MapAssembly.dll

Manages GPU compute shader for high-performance owner texture population. Processes entire map in parallel to populate province owner texture from simulation data. Part of the texture-based map rendering system - dual-layer architecture compliance. Performance: ~2ms for entire map vs 50+ seconds on CPU

public class OwnerTextureDispatcher : MonoBehaviour
Inheritance
object
OwnerTextureDispatcher

Methods

Initialize()

Initialize compute shader kernels. Called by ArchonEngine.

public void Initialize()

PopulateOwnerTexture(ProvinceQueries)

Populate owner texture from Core simulation data using GPU compute shader Architecture: Core ProvinceQueries → GPU buffer → GPU texture

[ContextMenu("Populate Owner Texture")]
public void PopulateOwnerTexture(ProvinceQueries provinceQueries)

Parameters

provinceQueries ProvinceQueries

Read-only access to Core simulation data

SetTextureManager(MapTextureManager)

Set the texture manager reference

public void SetTextureManager(MapTextureManager manager)

Parameters

manager MapTextureManager