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

@ -33,6 +33,7 @@ class BlocksController {
util::Clock worldTickClock;
FastRandom random {};
std::vector<on_block_interaction> blockInteractionCallbacks;
uint64_t randomTickId = 0;
public:
BlocksController(const Level& level, Lighting* lighting);