mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-03 06:09:07 +02:00
minedmap: split up big types by adding Boxes
Make these values faster to move around, and optimize their size when used in Options.
This commit is contained in:
parent
cd1a5e869d
commit
7b46adf6e7
3 changed files with 12 additions and 9 deletions
|
@ -125,11 +125,11 @@ impl<'a> RegionProcessor<'a> {
|
|||
else {
|
||||
return Ok(());
|
||||
};
|
||||
processed_region.chunks[chunk_coords] = Some(ProcessedChunk {
|
||||
processed_region.chunks[chunk_coords] = Some(Box::new(ProcessedChunk {
|
||||
blocks,
|
||||
biomes,
|
||||
depths,
|
||||
});
|
||||
}));
|
||||
|
||||
let chunk_lightmap = Self::render_chunk_lightmap(block_light);
|
||||
overlay_chunk(&mut lightmap, &chunk_lightmap, chunk_coords);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue