multi-threaded chunk loading

This commit is contained in:
onezplpl 2024-07-13 17:02:49 -04:00
parent 186ea5f204
commit 7b9de49502
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
4 changed files with 73 additions and 58 deletions

6
gen.h
View file

@ -1,5 +1,5 @@
#include "const.h"
int cube_exists(int x, int y, int z, Chunk dat);
Chunk fetch_chunk(int x, int y, int z);
void purge_chunks();
int cube_exists(int x, int y, int z, Chunk dat, int ci);
Chunk fetch_chunk(int x, int y, int z, int ci);
void purge_chunks(int ci);