ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/config.h
(Generate patch)

Comparing deliantra/server/include/config.h (file contents):
Revision 1.16 by pippijn, Fri Apr 28 13:56:26 2006 UTC vs.
Revision 1.21 by root, Sun Nov 26 19:48:49 2006 UTC

1/*
2 * static char *rcsid_config_h =
3 * "$Id: config.h,v 1.16 2006/04/28 13:56:26 pippijn Exp $";
4 */
5
6/* 1/*
7 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
8 3
9 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
10 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
413 * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all 408 * velow. If MINTIMEOUT > MAXTIMEOUT, MAXTIMEOUT will be used for all
414 * maps. 409 * maps.
415 */ 410 */
416 411
417/* How many ticks till maps are swapped out */ 412/* How many ticks till maps are swapped out */
418#define MAP_MAXTIMEOUT 1000 413#define MAP_MAXTIMEOUT 300
419/* At least that many ticks before swapout */ 414/* At least that many ticks before swapout */
420#define MAP_MINTIMEOUT 500 415#define MAP_MINTIMEOUT 300
421 416
422/* 417/*
423 * MAP_MAXRESET is the maximum time a map can have before being reset. It 418 * MAP_MAXRESET is the maximum time a map can have before being reset. It
424 * will override the time value set in the map, if that time is longer than 419 * will override the time value set in the map, if that time is longer than
425 * MAP_MAXRESET. This value is in seconds. If you are low on space on the 420 * MAP_MAXRESET. This value is in seconds. If you are low on space on the
433 */ 428 */
434 429
435/* Maximum time to reset. */ 430/* Maximum time to reset. */
436#define MAP_MAXRESET 7200 431#define MAP_MAXRESET 7200
437/* Default time to reset. */ 432/* Default time to reset. */
438#define MAP_DEFAULTRESET 7200 433#define MAP_DEFAULTRESET 3600
439 434
440/* 435/*
441 * MAX_OBJECTS is no hard limit. If this limit is exceeded, crossfire 436 * MAX_OBJECTS is no hard limit. If this limit is exceeded, crossfire
442 * will look for maps which are already scheldued for swapping, and 437 * will look for maps which are already scheldued for swapping, and
443 * promptly swap them out before new maps are being loaded. 438 * promptly swap them out before new maps are being loaded.
449 * consumes more memory. If you have gobs of free memory, a high number 444 * 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. 445 * might not be a bad idea. Each object is around 350 bytes right now.
451 * 25000 is about 8.5 MB 446 * 25000 is about 8.5 MB
452 */ 447 */
453 448
454#define MAX_OBJECTS 200000 449#define MAX_OBJECTS 400000
455 450
456/* 451/*
457 * Max objects low water mark (lwm). If defined, the map swapping strategy 452 * Max objects low water mark (lwm). If defined, the map swapping strategy
458 * is a bit different: 453 * is a bit different:
459 * 1) We only start swapping maps if the number of objects in use is 454 * 1) We only start swapping maps if the number of objects in use is
532 * will drop the client connection for falling too far behind. So if 527 * will drop the client connection for falling too far behind. So if
533 * you have very slow client connections, a larger value may be 528 * you have very slow client connections, a larger value may be
534 * warranted. 529 * warranted.
535 */ 530 */
536 531
537#define SOCKETBUFSIZE 128*1024 532#define SOCKETBUFSIZE 256*1024
538 533
539/* 534/*
540 * Your tmp-directory should be large enough to hold the uncompressed 535 * Your tmp-directory should be large enough to hold the uncompressed
541 * map-files for all who are playing. 536 * map-files for all who are playing.
542 * It ought to be locally mounted, since the function used to generate 537 * It ought to be locally mounted, since the function used to generate
606#define HIGHSCORE "highscore" 601#define HIGHSCORE "highscore"
607#define TREASURES "treasures" 602#define TREASURES "treasures"
608#define BANISHFILE "banish_file" 603#define BANISHFILE "banish_file"
609 604
610#define MAX_ERRORS 25 /* Bail out if more are received during tick */ 605#define MAX_ERRORS 25 /* Bail out if more are received during tick */
611#define STARTMAX 500 /* How big array of objects to start with */
612#define OBJ_EXPAND 100 /* How big steps to use when expanding array */ 606#define OBJ_EXPAND 5000 /* How big steps to use when expanding array */
613 607
614#define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */ 608#define HIGHSCORE_LENGTH 1000 /* How many entries there are room for */
615 609
616#define ARCHTABLE 16384 /* Arch hashtable size */ 610#define ARCHTABLE 16384 /* Arch hashtable size */
617#define MAXSTRING 20 611#define MAXSTRING 20
685 * may not be large enough to save all of them.) As it is now, it will 679 * may not be large enough to save all of them.) As it is now, it will
686 * just set the base tick of when they log on, which should keep the 680 * just set the base tick of when they log on, which should keep the
687 * saves pretty well spread out (in a fairly random fashion.) 681 * saves pretty well spread out (in a fairly random fashion.)
688 */ 682 */
689 683
690#define AUTOSAVE 500 684#define AUTOSAVE 1000
691 685
692/* Often, emergency save fails because the memory corruption that caused 686/* Often, emergency save fails because the memory corruption that caused
693 * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE 687 * the crash has trashed the characters too. Define NO_EMERGENCY_SAVE
694 * to disable emergency saves. This actually does 688 * to disable emergency saves. This actually does
695 * prevent emergency saves now (Version 0.90.5). 689 * prevent emergency saves now (Version 0.90.5).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines