summaryrefslogtreecommitdiffstats
path: root/source/Generating
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-24 16:34:24 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-24 16:34:24 +0200
commit7d039dfa90e99f360c728a7a2ac4924ed442a447 (patch)
treec7b916da717c91c0f23702aa1761403b7c120ccf /source/Generating
parentNoise: Removed the reference to Noise.inc (diff)
downloadcuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar.gz
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar.bz2
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar.lz
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar.xz
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.tar.zst
cuberite-7d039dfa90e99f360c728a7a2ac4924ed442a447.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ComposableGenerator.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp
index 8219d67c0..71c4005ef 100644
--- a/source/Generating/ComposableGenerator.cpp
+++ b/source/Generating/ComposableGenerator.cpp
@@ -168,6 +168,19 @@ void cComposableGenerator::InitBiomeGen(cIniFile & a_IniFile)
LOGWARNING("Unknown BiomeGen \"%s\", using \"MultiStepMap\" instead.", BiomeGenName.c_str());
}
m_BiomeGen = new cBioGenMultiStepMap(Seed);
+
+ /*
+ // Performance-testing:
+ LOGINFO("Measuring performance of cBioGenMultiStepMap...");
+ clock_t BeginTick = clock();
+ for (int x = 0; x < 5000; x++)
+ {
+ cChunkDef::BiomeMap Biomes;
+ m_BiomeGen->GenBiomes(x * 5, x * 5, Biomes);
+ }
+ clock_t Duration = clock() - BeginTick;
+ LOGINFO("cBioGenMultiStepMap for 5000 chunks took %d ticks (%.02f sec)", Duration, (double)Duration / CLOCKS_PER_SEC);
+ //*/
}
// Add a cache, if requested: