mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Log more stuff in Client::afterContentReceived()
This commit is contained in:
parent
7a427c9070
commit
22df8b81b3
@ -2348,6 +2348,7 @@ ClientEvent Client::getClientEvent()
|
|||||||
|
|
||||||
void Client::afterContentReceived()
|
void Client::afterContentReceived()
|
||||||
{
|
{
|
||||||
|
verbosestream<<"Client::afterContentReceived() started"<<std::endl;
|
||||||
assert(m_itemdef_received);
|
assert(m_itemdef_received);
|
||||||
assert(m_nodedef_received);
|
assert(m_nodedef_received);
|
||||||
assert(m_media_received);
|
assert(m_media_received);
|
||||||
@ -2357,23 +2358,31 @@ void Client::afterContentReceived()
|
|||||||
m_media_name_sha1_map.clear();
|
m_media_name_sha1_map.clear();
|
||||||
|
|
||||||
// Rebuild inherited images and recreate textures
|
// Rebuild inherited images and recreate textures
|
||||||
|
verbosestream<<"Rebuilding images and textures"<<std::endl;
|
||||||
m_tsrc->rebuildImagesAndTextures();
|
m_tsrc->rebuildImagesAndTextures();
|
||||||
|
|
||||||
// Update texture atlas
|
// Update texture atlas
|
||||||
|
verbosestream<<"Updating texture atlas"<<std::endl;
|
||||||
if(g_settings->getBool("enable_texture_atlas"))
|
if(g_settings->getBool("enable_texture_atlas"))
|
||||||
m_tsrc->buildMainAtlas(this);
|
m_tsrc->buildMainAtlas(this);
|
||||||
|
|
||||||
// Update node aliases
|
// Update node aliases
|
||||||
|
verbosestream<<"Updating node aliases"<<std::endl;
|
||||||
m_nodedef->updateAliases(m_itemdef);
|
m_nodedef->updateAliases(m_itemdef);
|
||||||
|
|
||||||
// Update node textures
|
// Update node textures
|
||||||
|
verbosestream<<"Updating node textures"<<std::endl;
|
||||||
m_nodedef->updateTextures(m_tsrc);
|
m_nodedef->updateTextures(m_tsrc);
|
||||||
|
|
||||||
// Update item textures and meshes
|
// Update item textures and meshes
|
||||||
|
verbosestream<<"Updating item textures and meshes"<<std::endl;
|
||||||
m_itemdef->updateTexturesAndMeshes(this);
|
m_itemdef->updateTexturesAndMeshes(this);
|
||||||
|
|
||||||
// Start mesh update thread after setting up content definitions
|
// Start mesh update thread after setting up content definitions
|
||||||
|
verbosestream<<"Starting mesh update thread"<<std::endl;
|
||||||
m_mesh_update_thread.Start();
|
m_mesh_update_thread.Start();
|
||||||
|
|
||||||
|
verbosestream<<"Client::afterContentReceived() done"<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
float Client::getRTT(void)
|
float Client::getRTT(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user