mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
VoxelManip cleanups (const ref, const move) + function removal (#6169)
* VoxelManip cleanups (const ref, const move) permitting to improve a little bit performance * VoxelArea: precalculate extent (performance enhancement) This permits to reduce extend high cost to zero and drop many v3s16 object creation/removal to calculate extent It rebalance the client thread update to updateFastFaceRow instead of MapBlockMesh generation This will also benefits to mapgen
This commit is contained in:
@@ -63,7 +63,7 @@ struct MinimapPixel {
|
||||
};
|
||||
|
||||
struct MinimapMapblock {
|
||||
void getMinimapNodes(VoxelManipulator *vmanip, v3s16 pos);
|
||||
void getMinimapNodes(VoxelManipulator *vmanip, const v3s16 &pos);
|
||||
|
||||
MinimapPixel data[MAP_BLOCKSIZE * MAP_BLOCKSIZE];
|
||||
};
|
||||
|
Reference in New Issue
Block a user