|
@@ -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;
|
|
|
}
|
|
|
|