Reorganize ClientMap rendering code for a bit more performance
authorPerttu Ahola <celeron55@gmail.com>
Tue, 4 Sep 2012 06:48:26 +0000 (09:48 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 4 Sep 2012 19:41:03 +0000 (22:41 +0300)
commitee2d9d973a0397ce244f05d49083250956578780
treed3626b0eb5f995ede95f929f721d9cd52a7c5072
parent0e6f7a21c60d162b3b7134882dc22dbd8acd014f
Reorganize ClientMap rendering code for a bit more performance

- Don't select blocks for drawing in every frame
- Sort meshbuffers by material before drawing
src/clientmap.cpp
src/clientmap.h
src/game.cpp
src/map.cpp
src/mapblock.cpp
src/mapblock.h