次のような文字列を生成します。
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);
}
}
高さデータの量は MapSize^2 です (MapSize は通常 256x256 です)。しかし、質問は、これは RakNet (UDP) を介して送信するのに妥当な量のデータですか? データをチャンクに分割することはできますが、それは避けたいと思います。