feat: initialize world in multiple threads

This commit is contained in:
2026-04-18 12:35:48 +08:00
parent 099b1cbdd7
commit 11b6e88d0d
4 changed files with 43 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ public:
// 1 : (-1, 0)
// 2 : (0, 1)
// 3 : (0, -1)
void gen_vertex_data(const std::vector<const std::vector<uint8_t>*>& neighbor_block);
void gen_vertex_data(const std::array<const std::vector<uint8_t>*, 4>& neighbor_block);
void upload_to_gpu();
GLuint get_vbo() const;