multi-threaded chunk loading
This commit is contained in:
parent
186ea5f204
commit
7b9de49502
4 changed files with 73 additions and 58 deletions
14
const.h
14
const.h
|
@ -4,21 +4,19 @@
|
|||
|
||||
typedef struct Vertex {
|
||||
vec3 pos;
|
||||
} Vertex;
|
||||
} Vertex;
|
||||
|
||||
typedef struct VertexI {
|
||||
int pos[3];
|
||||
} VertexI;
|
||||
|
||||
} VertexI;
|
||||
|
||||
typedef struct Vertex2 {
|
||||
vec2 pos;
|
||||
} Vertex2;
|
||||
|
||||
|
||||
#define CHUNK_LENGTH 16
|
||||
#define CHUNK_RADIUS_H 4//8
|
||||
#define CHUNK_RADIUS_V 4 //4
|
||||
#define CHUNK_LENGTH 8
|
||||
#define CHUNK_RADIUS_H 16 // 8
|
||||
#define CHUNK_RADIUS_V 8 // 4
|
||||
|
||||
#define TEXT_GAP_H 1 / 3.0
|
||||
#define TEXT_GAP_V 1 / 1.0
|
||||
|
@ -28,7 +26,7 @@ typedef struct Vertex2 {
|
|||
#define CHUNK_ALL CHUNK_DIAMETER_H *CHUNK_DIAMETER_H *CHUNK_DIAMETER_V
|
||||
#define BLOCK_ALL CHUNK_LENGTH *CHUNK_LENGTH *CHUNK_LENGTH
|
||||
#define CBLOCK_ALL BLOCK_ALL *CHUNK_ALL
|
||||
#define CBUF_ALL 25
|
||||
#define CBUF_ALL 10
|
||||
|
||||
#define CTRI_ALL CBLOCK_ALL * 18 * sizeof(Vertex)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue