From d8c860ae58d03076fee4721267e2e3b566c0844a Mon Sep 17 00:00:00 2001 From: tycho Date: Mon, 5 Oct 2015 16:20:07 +0100 Subject: Improved the data structure for storing loaded chunks Should significantly increase the performance of deciding which chunks to stream --- src/ClientHandle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index b305648cb..32e894d41 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -383,7 +383,7 @@ private: Json::Value m_Properties; cCriticalSection m_CSChunkLists; - cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to + std::unordered_set m_LoadedChunks; // Chunks that the player belongs to std::unordered_set m_ChunksToSend; // Chunks that need to be sent to the player (queued because they weren't generated yet or there's not enough time to send them) cChunkCoordsList m_SentChunks; // Chunks that are currently sent to the client -- cgit v1.2.3