diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-31 00:15:43 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-31 00:15:43 +0300 |
commit | 223b3793485a76f87599d39364b1003c2ca7c49c (patch) | |
tree | 67b2dcc8603a01a32e33d3f0004e7cf4797df2c0 /src/utility.h | |
parent | 16fdb42590dc14772fcf0cc95c6baf08e6f583cd (diff) | |
download | minetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.gz minetest-223b3793485a76f87599d39364b1003c2ca7c49c.tar.bz2 minetest-223b3793485a76f87599d39364b1003c2ca7c49c.zip |
Reduced the CPU usage of the sent block selector algorithm
Diffstat (limited to 'src/utility.h')
-rw-r--r-- | src/utility.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h index f18d31278..534aea483 100644 --- a/src/utility.h +++ b/src/utility.h @@ -244,6 +244,9 @@ inline f32 readF1000(std::istream &is) { char buf[2]; is.read(buf, 2); + // TODO: verify if this gets rid of the valgrind warning + //if(is.gcount() != 2) + // return 0; return readF1000((u8*)buf); } |