diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-09-04 09:48:26 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-09-04 22:41:03 +0300 |
commit | ee2d9d973a0397ce244f05d49083250956578780 (patch) | |
tree | d3626b0eb5f995ede95f929f721d9cd52a7c5072 /src/mapblock.cpp | |
parent | 0e6f7a21c60d162b3b7134882dc22dbd8acd014f (diff) | |
download | minetest-ee2d9d973a0397ce244f05d49083250956578780.tar.gz minetest-ee2d9d973a0397ce244f05d49083250956578780.tar.bz2 minetest-ee2d9d973a0397ce244f05d49083250956578780.zip |
Reorganize ClientMap rendering code for a bit more performance
- Don't select blocks for drawing in every frame
- Sort meshbuffers by material before drawing
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index b2da768f5..2ae6e9bd7 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -56,7 +56,8 @@ MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy): m_generated(false), m_timestamp(BLOCK_TIMESTAMP_UNDEFINED), m_disk_timestamp(BLOCK_TIMESTAMP_UNDEFINED), - m_usage_timer(0) + m_usage_timer(0), + m_refcount(0) { data = NULL; if(dummy == false) |