bridge library

The visible half: ground as a mesh, a crowd as one batch, buildings as themselves.

The only file in this package that draws, which is what the structure rule a genre package draws only where it says is about — reaching a renderer, rather than importing Flutter. Everything under src/ is arithmetic and stays reachable from a test with no device; this is where the arithmetic meets a GPU, and the seam is one class wide on purpose.

The crowd is one node, not one node each. That is the whole reason a strategy is the genre that exercises InstancedMeshNode: a thousand nodes is a thousand draws, and the measurement that started this work put fifty thousand instanced units at the refresh rate of the display with the processor encoding the frame — not the device drawing it — as what gives way first. So the batch is written every frame, in full, because that is the case a game actually has: units that stand still would let the engine skip an upload a moving crowd cannot skip.

Classes

StrategyVisuals
Draws a StrategySimulation.
UnitSize
How big a unit is drawn, in metres.