diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-17 14:57:37 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-17 14:57:37 +0200 |
commit | 0fa0e0752a28eeb43195f2288c018d5c0b24520b (patch) | |
tree | 72c05dc4cd98663d92a6a312c6b8128c18791590 /src/constants.h | |
parent | bd26be262d30eeb0ca818b634891704de4365893 (diff) | |
download | minetest-0fa0e0752a28eeb43195f2288c018d5c0b24520b.tar.gz minetest-0fa0e0752a28eeb43195f2288c018d5c0b24520b.tar.bz2 minetest-0fa0e0752a28eeb43195f2288c018d5c0b24520b.zip |
old water removed, some fixes here and there
Diffstat (limited to 'src/constants.h')
-rw-r--r-- | src/constants.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/constants.h b/src/constants.h index e31f75d32..fc8007602 100644 --- a/src/constants.h +++ b/src/constants.h @@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc., Cross-platform compatibility crap should go in porting.h. */ -#define HAXMODE 0 +//#define HAXMODE 0 #define APPNAME "minetest" @@ -52,6 +52,19 @@ with this program; if not, write to the Free Software Foundation, Inc., // The absolute working limit is (2^15 - viewing_range). #define MAP_GENERATION_LIMIT (31000) +// Size of node in rendering units +#define BS 10 + +#define MAP_BLOCKSIZE 16 +/* + This makes mesh updates too slow, as many meshes are updated during + the main loop (related to TempMods and day/night) +*/ +//#define MAP_BLOCKSIZE 32 + +// Sectors are split to SECTOR_HEIGHTMAP_SPLIT^2 heightmaps +#define SECTOR_HEIGHTMAP_SPLIT (MAP_BLOCKSIZE/8) + // Time after building, during which the following limit // is in use //#define FULL_BLOCK_SEND_ENABLE_MIN_TIME_FROM_BUILDING 2.0 @@ -61,15 +74,11 @@ with this program; if not, write to the Free Software Foundation, Inc., // is very low #define BLOCK_SEND_DISABLE_LIMITS_MAX_D 1 -// Viewing range stuff - +// The fps limiter will leave this much free time //#define FREETIME_RATIO 0.15 //#define FREETIME_RATIO 0.0 #define FREETIME_RATIO 0.05 -// Sectors are split to SECTOR_HEIGHTMAP_SPLIT^2 heightmaps -#define SECTOR_HEIGHTMAP_SPLIT 2 - #define PLAYER_INVENTORY_SIZE (8*4) #define SIGN_TEXT_MAX_LENGTH 50 |