Commit
98e556c42d8aa61872fa9fe144e728a980a435a7
by 16738302+Haxk20Tree: Resize map memory to the exact VXL memory size
Before we would output memory to 10MiB regardless
of the actual memory size.
Most of the time we would fit in this size but its
easy to hit this limit with much more complex maps.
Now we allocate the maximum possible memory size for
given XYZ size of VXL and after filling this memory
with the map info reallocate to the exact map size
of the output VXL memory. And compress that.
This has multiple advantages.
Its impossible to overflow if given valid VXL map
info about the size.
We send the minimal amount of data to player so
faster map loading and compressing.
We can load any size of valid VXL map. Even those
that may be currently non existent. Such as
1024x1024x256.
(commit: 98e556c)