My current tilemap is 150x100, so that basically means 15000 type conversions + string concatenations... I didn't really think this would be a problem. Am I doing something stupid here? Any ideas on how to fix it?
- Code: Select all
int width = dungeonTiles.GetLength(0);
int height = dungeonTiles.GetLength(1);
String tilesString = "";
for (int row = 0; row < height; row++)
{
for (int col = 0; col < width ; col++)
{
tilesString += (int)dungeonTiles[col, row];
}
}