mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
optimize BlocksController::randomTick & reduce small allocations count
This commit is contained in:
parent
fb0ad19a65
commit
f1a015d3e7
3 changed files with 6 additions and 14 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue