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:
parent
13266d4728
commit
2b17232fd5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue