1 | /* |
1 | /* |
2 | * static char *rcsid_config_h = |
2 | * static char *rcsid_config_h = |
3 | * "$Id: config.h,v 1.17 2006/05/31 23:30:56 root Exp $"; |
3 | * "$Id: config.h,v 1.19 2006/09/04 11:07:59 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
413 | * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all |
413 | * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all |
414 | * maps. |
414 | * maps. |
415 | */ |
415 | */ |
416 | |
416 | |
417 | /* How many ticks till maps are swapped out */ |
417 | /* How many ticks till maps are swapped out */ |
418 | #define MAP_MAXTIMEOUT 500 |
418 | #define MAP_MAXTIMEOUT 300 |
419 | /* At least that many ticks before swapout */ |
419 | /* At least that many ticks before swapout */ |
420 | #define MAP_MINTIMEOUT 300 |
420 | #define MAP_MINTIMEOUT 300 |
421 | |
421 | |
422 | /* |
422 | /* |
423 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
423 | * MAP_MAXRESET is the maximum time a map can have before being reset. It |
… | |
… | |
433 | */ |
433 | */ |
434 | |
434 | |
435 | /* Maximum time to reset. */ |
435 | /* Maximum time to reset. */ |
436 | #define MAP_MAXRESET 7200 |
436 | #define MAP_MAXRESET 7200 |
437 | /* Default time to reset. */ |
437 | /* Default time to reset. */ |
438 | #define MAP_DEFAULTRESET 7200 |
438 | #define MAP_DEFAULTRESET 3600 |
439 | |
439 | |
440 | /* |
440 | /* |
441 | * MAX_OBJECTS is no hard limit. If this limit is exceeded, crossfire |
441 | * MAX_OBJECTS is no hard limit. If this limit is exceeded, crossfire |
442 | * will look for maps which are already scheldued for swapping, and |
442 | * will look for maps which are already scheldued for swapping, and |
443 | * promptly swap them out before new maps are being loaded. |
443 | * promptly swap them out before new maps are being loaded. |
… | |
… | |
449 | * consumes more memory. If you have gobs of free memory, a high number |
449 | * consumes more memory. If you have gobs of free memory, a high number |
450 | * might not be a bad idea. Each object is around 350 bytes right now. |
450 | * might not be a bad idea. Each object is around 350 bytes right now. |
451 | * 25000 is about 8.5 MB |
451 | * 25000 is about 8.5 MB |
452 | */ |
452 | */ |
453 | |
453 | |
454 | #define MAX_OBJECTS 200000 |
454 | #define MAX_OBJECTS 400000 |
455 | |
455 | |
456 | /* |
456 | /* |
457 | * Max objects low water mark (lwm). If defined, the map swapping strategy |
457 | * Max objects low water mark (lwm). If defined, the map swapping strategy |
458 | * is a bit different: |
458 | * is a bit different: |
459 | * 1) We only start swapping maps if the number of objects in use is |
459 | * 1) We only start swapping maps if the number of objects in use is |
… | |
… | |
606 | #define HIGHSCORE "highscore" |
606 | #define HIGHSCORE "highscore" |
607 | #define TREASURES "treasures" |
607 | #define TREASURES "treasures" |
608 | #define BANISHFILE "banish_file" |
608 | #define BANISHFILE "banish_file" |
609 | |
609 | |
610 | #define MAX_ERRORS 25 /* Bail out if more are received during tick */ |
610 | #define MAX_ERRORS 25 /* Bail out if more are received during tick */ |
611 | #define STARTMAX 4000 /* How big array of objects to start with */ |
|
|
612 | #define OBJ_EXPAND 500 /* How big steps to use when expanding array */ |
611 | #define OBJ_EXPAND 5000 /* How big steps to use when expanding array */ |
613 | |
612 | |
614 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
613 | #define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ |
615 | |
614 | |
616 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
615 | #define ARCHTABLE 16384 /* Arch hashtable size */ |
617 | #define MAXSTRING 20 |
616 | #define MAXSTRING 20 |