aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-08-17 15:42:36 +0200
committerSmallJoker <mk939@ymail.com>2019-08-23 19:17:43 +0200
commit6ada090bb05d9e6d5961a59f33ff6e104b44061a (patch)
tree632bbefcd414b1707500c79f88de741bb3234aac /src/client
parent7d016b4efd279d2ac2bbb84b457bfe6e5d7f4a56 (diff)
downloadminetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.gz
minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.tar.bz2
minetest-6ada090bb05d9e6d5961a59f33ff6e104b44061a.zip
Occlusion: Check for light_propagates and do mapblock bounds checks
Diffstat (limited to 'src/client')
-rw-r--r--src/client/clientmap.cpp5
1 files changed, 5 insertions, 0 deletions
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 &sector_it : m_sectors) {
MapSector *sector = sector_it.second;
v2s16 sp = sector->getPos();