aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientmap.h
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2023-03-11 14:10:26 +0100
committerGitHub <noreply@github.com>2023-03-11 14:10:26 +0100
commit705195b43e620d305bf83b3796699faadb2314ef (patch)
tree4df8a624217f329cb77a5a42e79d63b820e99e43 /src/client/clientmap.h
parent1de8a1e962098b94154111c7aafe18c4aab74fc9 (diff)
downloadminetest-705195b43e620d305bf83b3796699faadb2314ef.tar.xz
Scale culler steps proportionally to the mesh sizes (#13250)
Diffstat (limited to 'src/client/clientmap.h')
-rw-r--r--src/client/clientmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/clientmap.h b/src/client/clientmap.h
index 37931d4e7..b9f7b4dfa 100644
--- a/src/client/clientmap.h
+++ b/src/client/clientmap.h
@@ -143,6 +143,7 @@ public:
protected:
void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks) override;
private:
+ bool isMeshOccluded(MapBlock *mesh_block, u16 mesh_size, v3s16 cam_pos_nodes);
// update the vertex order in transparent mesh buffers
void updateTransparentMeshBuffers();