1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Remove workaround in itemdef.cpp to enable/disable/enable "enable_shaders" setting

* Increase performance (client)
* Avoid changing a global value to solve a local problem
This commit is contained in:
Craig Robbins 2015-02-11 17:45:49 +10:00
parent 98b37e3e0d
commit c8f60bd224
6 changed files with 14 additions and 17 deletions

View file

@ -283,6 +283,7 @@ Client::Client(
}
m_cache_smooth_lighting = g_settings->getBool("smooth_lighting");
m_cache_enable_shaders = g_settings->getBool("enable_shaders");
}
void Client::Stop()
@ -2681,7 +2682,7 @@ void Client::addUpdateMeshTask(v3s16 p, bool ack_to_server, bool urgent)
Create a task to update the mesh of the block
*/
MeshMakeData *data = new MeshMakeData(this);
MeshMakeData *data = new MeshMakeData(this, m_cache_enable_shaders);
{
//TimeTaker timer("data fill");