private void OnGenerateVisualContent(MeshGenerationContext mgc) { // This control begs to be fully rewritten and it shouldn't use immediate // mode rendering at all. It should maintain its vertex/index lists and only // update affected vertices when their respective elements are changed. This // way the cost of GenerateVisualContent becomes effectively only two memcpys. GraphViewStaticBridge.DrawImmediate(mgc, DrawMinimapContent); }