- Map *map; // map object
- Queue *queue; // MapBlock * queue (thread safe)
- atomic_bool cancel; // used to notify meshgen and sync thread about quit
- pthread_t meshgen_threads[NUM_MESHGEN_THREADS]; // consumer threads for meshgen queue
- pthread_t sync_thread; // this thread requests new / changed blocks from server
- u32 simulation_distance; // simulation distance sent by server
- size_t blocks_count; // cached number of facecache positions to process every sync step (matches simulation distance)
+ Map *map; // map object
+ Queue *queue; // MapBlock * queue (thread safe)
+ atomic_bool cancel; // used to notify meshgen and sync thread about quit
+ pthread_t *meshgen_threads; // consumer threads for meshgen queue
+ pthread_t sync_thread; // this thread requests new / changed blocks from server
+ u32 simulation_distance; // simulation distance sent by server
+ size_t blocks_count; // cached number of facecache positions to process every sync step (matches simulation distance)