I generate a string like so:
std::string str = "";
str += std::to_string(MapSize);
for (int x = 0; x < MapSize; x++) {
for (int z = 0; z < MapSize; z++) {
str += " ";
str += std::to_string(x);
str += " ";
str += std::to_string(heights[x][z]);
str += " ";
str += std::to_string(z);
}
}
The amount of height data is MapSize^2 (MapSize is usually 256x256). But th question is- Is this a sane amount of data to send through RakNet (UDP)? I could split the data into chunks, but i would like to avoid doing that.