Made tile renderer resetable to reduce the memory for render more than one tile.

This commit is contained in:
Sascha L. Teichmann
2014-09-14 14:57:49 +02:00
parent 3a0b922a9e
commit f762154b05
2 changed files with 24 additions and 13 deletions

View File

@ -70,7 +70,8 @@ func main() {
q1x, q1y, q1z := int16(x), int16(y), int16(z)
q2x, q2y, q2z := q1x+int16(width)-1, q1y+int16(depth)-1, q1z+int16(height)-1
renderer := common.NewRenderer(q1x, q1z, width, height)
renderer := common.NewRenderer(width, height)
renderer.SetPos(q1x, q1z)
yOrder := common.NewYOrder(renderer, 512)
numBlocks := 0