optimize BlocksController::randomTick & reduce small allocations count

This commit is contained in:
MihailRis 2026-01-28 23:04:06 +03:00
parent fb0ad19a65
commit f1a015d3e7
3 changed files with 6 additions and 14 deletions

View file

@ -40,6 +40,8 @@ public:
bool dirtyHeights : 1;
} flags {};
uint64_t lastRandomTickId = -1;
/// @brief Block inventories map where key is index of block in voxels array
ChunkInventoriesMap inventories;
/// @brief Blocks metadata heap