Added compatibility mode.

This commit is contained in:
David Williams
2011-02-14 22:14:41 +00:00
parent 03a713867f
commit 3c34d401fc
3 changed files with 20 additions and 1 deletions

View File

@ -511,11 +511,12 @@ int main(int argc, char *argv[])
//Create an empty volume and then place a sphere in it
Volume<MaterialDensityPair44> volData(256, 256, 256);
volData.useCompatibilityMode();
//createSphereInVolume(volData, 30);
createPerlinTerrain(volData);
//createPerlinVolumeSlow(volData);
std::cout << "Memory usage: " << volData.calculateSizeInBytes() << std::endl;
volData.setBlockCacheSize(8);
//volData.setBlockCacheSize(8);
std::cout << "Memory usage: " << volData.calculateSizeInBytes() << std::endl;
std::cout << "Compression ratio: " << volData.calculateCompressionRatio() << std::endl;