On Wed, 15 Apr 1998, Angus Mezick wrote:
->put a log("%ld %ld %ld",(long)t1, long(t2), secs);
->into your utils.c:mud_time_passed() function right after secs=t2-t1;
->For some reason this function gets called ALOT!
->about every 76-100 seconds 3 times in a row.
Why is that so surprising? Perhaps you should read the <cough> code?
mud_time_passsed() is called in the age() function. The age()
function is called in mana_gain(), hit_gain(), and move_gain().
mana_gain(), hit_gain(), and move_gain() are all called in
point_update() which in turn is called every SECS_PER_MUD_HOUR seconds
from heartbeat(). It took five to ten times longer to write this
message than to find that out.
-dak
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST