Early drop of non-significant blocks

Skip blocks made of ignored content (m_blockIgnoreId or m_blockAirId)
during deserialization.
Big performance increase here.
This commit is contained in:
Christophe Le Roy 2016-09-24 20:35:23 +02:00
parent 13266d4728
commit 2b17232fd5
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ void TileGenerator::renderMap()
}
dataOffset += nameLen;
}
// Skip block if made of only air or ignored blocks
if (m_nameMap.empty()) {
continue;
}
}
// Node timers