More work on compression and bug fixes.
This commit is contained in:
@ -388,11 +388,11 @@ namespace PolyVox
|
||||
return block;
|
||||
}
|
||||
|
||||
const uint32_t MaxUncompressedBlocks = 10;
|
||||
const uint32_t MaxUncompressedBlocks = 1000;
|
||||
if(m_pUncompressedBlocks.size() == MaxUncompressedBlocks)
|
||||
{
|
||||
Block<VoxelType>* pLeastRecentlyUsedBlock = 0;
|
||||
uint32_t uLeastRecentTimestamp = 100000000;
|
||||
uint32_t uLeastRecentTimestamp = 1000000000000000;
|
||||
for(std::set<Block<VoxelType>*>::iterator iter = m_pUncompressedBlocks.begin(); iter != m_pUncompressedBlocks.end(); iter++)
|
||||
{
|
||||
if((*iter)->m_uTimestamp < uLeastRecentTimestamp)
|
||||
|
Reference in New Issue
Block a user