mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
reduce allocations while reading chunks data
This commit is contained in:
parent
21f7390265
commit
9dc9441902
12 changed files with 93 additions and 43 deletions
|
|
@ -46,7 +46,7 @@ static void read_voxel_data(ByteReader& reader, util::Buffer<ubyte>& dst) {
|
|||
auto rleData = gzip::decompress(reader.pointer(), gzipCompressedSize);
|
||||
reader.skip(gzipCompressedSize);
|
||||
|
||||
extrle::decode16(rleData.data(), rleData.size(), dst.data());
|
||||
extrle::decode16(rleData.data(), rleData.size(), dst.data(), dst.size());
|
||||
}
|
||||
|
||||
void compressed_chunks::decode(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue