Start of actual RLE compression.

This commit is contained in:
David Williams
2011-02-06 22:30:32 +00:00
parent 7be083a243
commit 4621ef8091
4 changed files with 68 additions and 7 deletions

View File

@ -388,10 +388,10 @@ namespace PolyVox
return block;
}
const uint32_t MaxUncompressedBlocks = 4;
const uint32_t MaxUncompressedBlocks = 10;
if(m_pUncompressedBlocks.size() == MaxUncompressedBlocks)
{
Block<VoxelType>* pLeastRecentlyUsedBlock;
Block<VoxelType>* pLeastRecentlyUsedBlock = 0;
uint32_t uLeastRecentTimestamp = 100000000;
for(std::set<Block<VoxelType>*>::iterator iter = m_pUncompressedBlocks.begin(); iter != m_pUncompressedBlocks.end(); iter++)
{