From 3facd4df4163401ca9325fda38dd4c2f7f88bb70 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 21 Mar 2015 16:27:43 +0100 Subject: [PATCH] Removed commented out code. --- include/PolyVox/PagedVolume.inl | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/PolyVox/PagedVolume.inl b/include/PolyVox/PagedVolume.inl index 38d8dc91..545f017e 100644 --- a/include/PolyVox/PagedVolume.inl +++ b/include/PolyVox/PagedVolume.inl @@ -270,18 +270,6 @@ namespace PolyVox template typename PagedVolume::Chunk* PagedVolume::getChunk(int32_t uChunkX, int32_t uChunkY, int32_t uChunkZ) const { - //Check if we have the same chunk as last time, if so there's no need to even update - //the time stamp. If we updated it everytime then that would be every time we touched - //a voxel, which would overflow a uint32_t and require us to use a uint64_t instead. - //This check should also provide a significant speed boost as usually it is true. - /*if ((uChunkX == m_v3dLastAccessedChunkX) && - (uChunkY == m_v3dLastAccessedChunkY) && - (uChunkZ == m_v3dLastAccessedChunkZ) && - (m_pLastAccessedChunk != 0)) - { - return m_pLastAccessedChunk; - }*/ - Vector3DInt32 v3dChunkPos(uChunkX, uChunkY, uChunkZ); // The chunk was not the same as last time, but we can now hope it is in the set of most recently used chunks.