public static void GenerateAllTerrain() { numCompleted = 0; Perlin2D.Initialize(); Perlin3D.Initialize(); Voronoi.Initialize(); for (int x = 0; x < WidthChunks; x++) { for (int z = 0; z < WidthChunks; z++) { ThreadManager.QueueWork(GenerateTerrainSection, new Vector2i(x, z), false); } } }