Le DeleteChunk est maintenant en multi-thread et peux enfin keep up avec le reste!

This commit is contained in:
MarcEricMartel
2021-12-15 21:00:06 -05:00
parent 2ec9170fe3
commit 5dc05167de
8 changed files with 51 additions and 9 deletions

View File

@@ -40,6 +40,7 @@ public:
void ChangeBlockAtCursor(BlockType blockType, Player& player, bool& block);
void ChangeBlockAtPosition(BlockType blockType, Vector3f pos);
void CleanUpWorld(int& deleteframes, bool clear);
int GettbDeleted() const;
private:
Array2d<Chunk*> m_chunks = Array2d<Chunk*>(WORLD_SIZE_X, WORLD_SIZE_Y);
std::vector<Chunk*> m_tbDeleted;