veloren/common/src/terrain
Joshua Yanovski 7d6aebb316 Fix hacky solution with proper defragmentation.
After generating a chonk, we now find the highest frequency block (in
terms of the number of groups that uniformly consist of that block) and
replace the chunk's default with that one.  We also resort the data in
the process to be in the same order as the original array index.  This
improves our memory savings from 3x to almost 7x, and brings us within a
factor of 3 or so of what I hope a true average will be.

The defragmentation is not totally optimal and can probably be improved
from a performance perspective, but given how much of a hard bottleneck
RAM is this seems worthwhile.  Also, this doesn't suffer from the issues
the previous solution did.
2020-09-28 16:56:26 +02:00
..
biome.rs updated dependencies and fixed stuff 2020-07-07 09:43:49 +02:00
block.rs Fix hacky solution with proper defragmentation. 2020-09-28 16:56:26 +02:00
chonk.rs Fix hacky solution with proper defragmentation. 2020-09-28 16:56:26 +02:00
map.rs Corrected some spelling errors 2020-08-25 12:21:25 +00:00
mod.rs Improved representation of Block for better performance, more features, and better backwards-compatibility 2020-09-20 11:46:12 +01:00
sprite.rs Remove spurious uses of Vox. 2020-09-26 16:30:40 +02:00
structure.rs Remove spurious uses of Vox. 2020-09-26 16:30:40 +02:00