From 6ada090bb05d9e6d5961a59f33ff6e104b44061a Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 17 Aug 2019 15:42:36 +0200 Subject: Occlusion: Check for light_propagates and do mapblock bounds checks --- src/client/clientmap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/clientmap.cpp') diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp index f2db94296..3e4ab2e94 100644 --- a/src/client/clientmap.cpp +++ b/src/client/clientmap.cpp @@ -151,6 +151,11 @@ void ClientMap::updateDrawList() occlusion_culling_enabled = false; } + // Uncomment to debug occluded blocks in the wireframe mode + // TODO: Include this as a flag for an extended debugging setting + //if (occlusion_culling_enabled && m_control.show_wireframe) + // occlusion_culling_enabled = porting::getTimeS() & 1; + for (const auto §or_it : m_sectors) { MapSector *sector = sector_it.second; v2s16 sp = sector->getPos(); -- cgit v1.2.3