Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Sep 4, 2024
1 parent b45e693 commit 66b4bce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/mesh_generator_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ MeshUpdateManager::MeshUpdateManager(Client *client):
void MeshUpdateManager::updateBlock(Map *map, v3s16 p, bool ack_block_to_server,
bool urgent, bool update_neighbors)
{
if (static thread_local const bool headless_optimize =
g_settings->getBool("headless_optimize");
headless_optimize) {
return;
}

static thread_local const bool many_neighbors =
g_settings->getBool("smooth_lighting")
&& !g_settings->getFlag("performance_tradeoffs");
Expand Down

0 comments on commit 66b4bce

Please sign in to comment.