From b3b96d645ef9b09338c6f93bbe95100f3ce1a57d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 19 Mar 2013 15:10:00 +0000 Subject: Optimized BioGen-MultiStepMap's performance by using linear interpolation, about 25 % increase in total chunk generation speed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1289 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Generating/BioGen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Generating/BioGen.h') diff --git a/source/Generating/BioGen.h b/source/Generating/BioGen.h index 0df80967f..88ca3e438 100644 --- a/source/Generating/BioGen.h +++ b/source/Generating/BioGen.h @@ -183,7 +183,7 @@ protected: float m_RiverWidthThreshold; float m_LandBiomesSize; - typedef int IntMap[256]; // x + 16 * z, expected trimmed into [0..255] range + typedef int IntMap[17 * 17]; // x + 17 * z, expected trimmed into [0..255] range // cBiomeGen overrides: virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override; -- cgit v1.2.3