Do not render air only blocks. Nice performance speed up! :-)

This commit is contained in:
Sascha L. Teichmann
2014-10-19 17:15:33 +02:00
parent 1c530a2ce7
commit 8b42446acc
2 changed files with 9 additions and 0 deletions

View File

@ -182,6 +182,11 @@ func (r *Renderer) RenderBlock(block *Block, nameIndex map[string]int32) (err er
return
}
if db.AirOnly {
r.Rejected++
return
}
w := r.width << 4
ofs := int(bz)*w<<4 + int(bx)<<4
yB := r.yBuffer