getUncompressedBlock() now checks if it's getting the same block as last time.

This commit is contained in:
David Williams
2011-03-12 19:15:27 +00:00
parent ff12264744
commit b5f60b28a2
2 changed files with 25 additions and 14 deletions

View File

@ -194,6 +194,7 @@ namespace PolyVox
mutable std::vector<uint32_t> m_pUncompressedTimestamps;
mutable uint32_t m_uTimestamper;
mutable Vector3DInt32 m_v3dLastAccessedBlockPos;
mutable Block<VoxelType>* m_pLastAccessedBlock;
mutable Vector3DInt32 m_v3dLoadBlockPos;
uint32_t m_uMaxUncompressedBlockCacheSize;
uint32_t m_uMaxBlocksLoaded;