From d3a6ee00e63cc0a4adcaa7598ad5614f1e419515 Mon Sep 17 00:00:00 2001 From: lhofhansl Date: Wed, 8 Feb 2023 13:42:12 -0800 Subject: Generalize mesh chunking, and make it configurable. (#13179) * Generalize mesh chunking. Set 3x3x3 chunks. * Make mesh chunk size configurable... Default to 1 (off). * Extract all mesh grid maths into a dedicated class --------- Co-authored-by: x2048 --- src/client/client.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/client/client.h') diff --git a/src/client/client.h b/src/client/client.h index c05e6d325..3c7fc0db2 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -39,6 +39,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "network/peerhandler.h" #include "gameparams.h" #include +#include "util/numeric.h" #define CLIENT_CHAT_MESSAGE_LIMIT_PER_10S 10.0f @@ -437,6 +438,11 @@ public: { return m_env.getLocalPlayer()->formspec_prepend; } + inline MeshGrid getMeshGrid() + { + return m_mesh_grid; + } + private: void loadMods(); @@ -602,4 +608,7 @@ private: u32 m_csm_restriction_noderange = 8; std::unique_ptr m_modchannel_mgr; + + // The number of blocks the client will combine for mesh generation. + MeshGrid m_mesh_grid; }; -- cgit v1.2.3