From 5664e2f68186ad84034b1004f565c56598ca1ccd Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 22 Jun 2013 07:30:06 +0200 Subject: [PATCH] Restored Paging Example back to previous values. --- examples/Paging/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Paging/main.cpp b/examples/Paging/main.cpp index 8e6cba7f..81dc7534 100644 --- a/examples/Paging/main.cpp +++ b/examples/Paging/main.cpp @@ -320,7 +320,7 @@ int main(int argc, char *argv[]) //If these lines don't compile, please try commenting them out and using the two lines after //(you will need Boost for this). If you have to do this then please let us know in the forums as //we rely on community feedback to keep the Boost version running. - LargeVolume volData(compressor, pager, 64); + LargeVolume volData(compressor, pager, 256); //LargeVolume volData(polyvox_bind(&load, polyvox_placeholder_1, polyvox_placeholder_2), // polyvox_bind(&unload, polyvox_placeholder_1, polyvox_placeholder_2), 256); volData.setMaxNumberOfBlocksInMemory(4096); @@ -336,7 +336,7 @@ int main(int argc, char *argv[]) std::cout << "Memory usage: " << (volData.calculateSizeInBytes()/1024.0/1024.0) << "MB" << std::endl; std::cout << "Compression ratio: 1 to " << (1.0/(volData.calculateCompressionRatio())) << std::endl; //volData.setBlockCacheSize(64); - PolyVox::Region reg(Vector3DInt32(-63,0,0), Vector3DInt32(63,63,255)); + PolyVox::Region reg(Vector3DInt32(-255,0,0), Vector3DInt32(255,255,255)); std::cout << "Prefetching region: " << reg.getLowerCorner() << " -> " << reg.getUpperCorner() << std::endl; volData.prefetch(reg); std::cout << "Memory usage: " << (volData.calculateSizeInBytes()/1024.0/1024.0) << "MB" << std::endl;