diff options
author | tycho <work.tycho@gmail.com> | 2015-05-31 19:51:31 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-06-05 23:31:22 +0200 |
commit | 9ebbe969c887d4fbb0c681b80eae589ce79dbd5d (patch) | |
tree | abfdf76c2cd59b260ba408078dfc00bea93a7198 /src/ClientHandle.h | |
parent | Rewrote ChunkSending queue for significantly improved performance (diff) | |
download | cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar.gz cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar.bz2 cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar.lz cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar.xz cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.tar.zst cuberite-9ebbe969c887d4fbb0c681b80eae589ce79dbd5d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 13b5f87e4..27acc4d37 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -377,10 +377,10 @@ private: AString m_Password; Json::Value m_Properties; - cCriticalSection m_CSChunkLists; - cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to - cChunkCoordsList 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 + cCriticalSection m_CSChunkLists; + cChunkCoordsList m_LoadedChunks; // Chunks that the player belongs to + std::unordered_set<cChunkCoords, cChunkCoordsHash> 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 cProtocol * m_Protocol; |