03-01-2012, 03:10 AM
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)
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 true
I think the essence of this change NEEDS to be in MCServer, however it could be a tiny bit neater
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 true
I think the essence of this change NEEDS to be in MCServer, however it could be a tiny bit neater