summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-31 00:15:43 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-31 00:15:43 +0300
commit223b3793485a76f87599d39364b1003c2ca7c49c (patch)
tree67b2dcc8603a01a32e33d3f0004e7cf4797df2c0 /src/map.cpp
parent16fdb42590dc14772fcf0cc95c6baf08e6f583cd (diff)
downloadminetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.gz
minetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.bz2
minetest-223b3793485a76f87599d39364b1003c2ca7c49c.zip
Reduced the CPU usage of the sent block selector algorithm
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index a49de3c46..f9809e9fd 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -5692,9 +5692,9 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
p_nodes_min.Y / MAP_BLOCKSIZE - 1,
p_nodes_min.Z / MAP_BLOCKSIZE - 1);
v3s16 p_blocks_max(
- p_nodes_max.X / MAP_BLOCKSIZE + 1,
- p_nodes_max.Y / MAP_BLOCKSIZE + 1,
- p_nodes_max.Z / MAP_BLOCKSIZE + 1);
+ p_nodes_max.X / MAP_BLOCKSIZE,
+ p_nodes_max.Y / MAP_BLOCKSIZE,
+ p_nodes_max.Z / MAP_BLOCKSIZE);
u32 vertex_count = 0;