mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
More efficient chunk loaders handling
This commit is contained in:
parent
35f8ebe79c
commit
f0a74dd821
2 changed files with 16 additions and 8 deletions
|
|
@ -310,7 +310,10 @@ int main() {
|
|||
|
||||
chunks->setCenter(wfile, camera->position.x,0,camera->position.z);
|
||||
chunksController._buildMeshes(&renderer, frame);
|
||||
chunksController.loadVisible(wfile);
|
||||
|
||||
int freeLoaders = chunksController.countFreeLoaders();
|
||||
for (int i = 0; i < freeLoaders; i++)
|
||||
chunksController.loadVisible(wfile);
|
||||
|
||||
draw_world(camera, assets, chunks, occlusion);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue