It takes a long time to download all terrain
#1
I run a home server, and the upload speed is not all that good so it can take up to 20 seconds before all initial terrain has been downloaded and I can finally play.

By changing this function, players can enter the world much sooner (cClientHandle.cpp line 1776)
Code:
void cClientHandle::CheckIfWorldDownloaded(void) { if (m_State != csDownloadingWorld) { return; } cCSLock Lock(m_CSChunkLists); if (m_ChunksToSend.empty()) { SendConfirmPosition(); } }
Code:
void cClientHandle::CheckIfWorldDownloaded(void) { if (m_State != csDownloadingWorld) { return; } cCSLock Lock(m_CSChunkLists); if (m_ChunksToSend.size() < ((m_ViewDistance*2) * (m_ViewDistance*2)) - (4*4) ) { SendConfirmPosition(); } }

It's kinda ugly, and it requires the first couple of chunks in the list to be around the player. Luckily for us this is trueTongue

I think the essence of this change NEEDS to be in MCServer, however it could be a tiny bit neater
Reply
Thanks given by:


Messages In This Thread
It takes a long time to download all terrain - by FakeTruth - 03-01-2012, 03:10 AM



Users browsing this thread: 1 Guest(s)