iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
114 stars 32 forks source link

[OpenGL] optimized rendering (map split in chunks, only chunks around camera are rendered) #60

Closed melchips closed 11 years ago

melchips commented 11 years ago

Optimized rendering for OpenGL.

Map is divided in chunks and a circular array is used to store chunks around camera. Chunks are only rebuilt if needed.

Optional parameters (CHUNK_SIZE, VISIBLE_CHUNKS, CHUNKS_TO_TESSELATE_PER_FRAME) will be added to the json file in the next commit.

melchips commented 11 years ago

It may lower the stutter encountered on issue #45.

It needs testing ^^