From 4037e93e4fc65c1be4beb632074beeadd413ffc3 Mon Sep 17 00:00:00 2001 From: codemaster Date: Wed, 24 Nov 2004 22:24:23 +0000 Subject: - Updated to most of jA's 1067Added free()'s git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@353 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/timer.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/common/timer.c') diff --git a/src/common/timer.c b/src/common/timer.c index 3c5f92d9a..97c162e7f 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -20,6 +20,12 @@ #include "memwatch.h" #endif +// If the server shows no reaction when processing thousands of monsters + +// or connected by many clients, please increase TIMER_MIN_INTERVEL. + +#define TIMER_MIN_INTERVEL 50 + static struct TimerData* timer_data; static int timer_data_max,timer_data_num; static int* free_timer_list; @@ -301,8 +307,9 @@ int do_timer(unsigned int tick) } } - if (nextmin<10) - nextmin = 10; + if(nextmin < TIMER_MIN_INTERVEL) + + nextmin = TIMER_MIN_INTERVEL; return nextmin; } -- cgit v1.2.3-60-g2f50