mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-03 08:30:45 +02:00
Do not render air only blocks. Nice performance speed up! :-)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user