More efficient chunk loaders handling (fixed)
This commit is contained in:
parent
f0a74dd821
commit
cbfa073550
@ -12,10 +12,12 @@ private:
|
|||||||
Chunks* chunks;
|
Chunks* chunks;
|
||||||
Lighting* lighting;
|
Lighting* lighting;
|
||||||
ChunksLoader** loaders;
|
ChunksLoader** loaders;
|
||||||
|
int _totalLoaded = 0;
|
||||||
public:
|
public:
|
||||||
ChunksController(Chunks* chunks, Lighting* lighting);
|
ChunksController(Chunks* chunks, Lighting* lighting);
|
||||||
~ChunksController();
|
~ChunksController();
|
||||||
|
|
||||||
|
int countFreeLoaders();
|
||||||
bool loadVisible(WorldFiles* worldFiles);
|
bool loadVisible(WorldFiles* worldFiles);
|
||||||
bool _buildMeshes(VoxelRenderer* renderer, int tick);
|
bool _buildMeshes(VoxelRenderer* renderer, int tick);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user