From cbfa073550a39eb4d2b028467ab0ea78a2baea2a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 6 Mar 2022 03:18:04 +0300 Subject: [PATCH] More efficient chunk loaders handling (fixed) --- src/voxels/ChunksController.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/voxels/ChunksController.h b/src/voxels/ChunksController.h index 56bcab80..15189ab7 100644 --- a/src/voxels/ChunksController.h +++ b/src/voxels/ChunksController.h @@ -12,10 +12,12 @@ private: Chunks* chunks; Lighting* lighting; ChunksLoader** loaders; + int _totalLoaded = 0; public: ChunksController(Chunks* chunks, Lighting* lighting); ~ChunksController(); + int countFreeLoaders(); bool loadVisible(WorldFiles* worldFiles); bool _buildMeshes(VoxelRenderer* renderer, int tick); };