1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Text Parsing -->
<!--X-From-R13: [nggurj [vunyl <qvnoybNorfg.pbz> -->
<!--X-Date: Wed, 9 Jun 1999 23:13:35 &#45;0700 -->
<!--X-Message-Id: Pine.BSF.4.10.9906092005590.8930&#45;100000#shell9,ba.best.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199906100140.TAA02051@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Text Parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:diablo#best,com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00678.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00680.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00654.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00709.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00679">Author</A>
&nbsp;|&nbsp;<A HREF="#00679">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00679">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Text Parsing</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Text Parsing</LI>
<LI><em>From</em>: Matthew Mihaly &lt;<A HREF="mailto:diablo#best,com">diablo#best,com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 9 Jun 1999 20:13:58 -0700 (PDT)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Wed, 9 Jun 1999, Chris Gray wrote:

&gt; [Matthew Mihaly:]
&gt; 
&gt; &gt; Can anyone tell me if this seems normal to you?
&gt; 
&gt; 100 seems low to me. What kind of machine do you run on? What language
&gt; is your server written in? Are you sure its not a communications problem,
&gt; in that your link to the internet isn't fast enough?

Machine has k6 400 processor, w/128 megs RAM. The server is written in C,
I believe, but I didn't write the server (I may not have an exact
understanding of what constitutes the server, but what I mean by it is the
thing that handles the low-level connection stuff). 

The game itself (from the main loop which polls connections to see if
anything is happening) is all written in the language (which I'm told is
C-like...I don't know C) that comes with the server. 

I am positive it isn't the size of our pipe that is the problem. We have
individual tasks (delayed events) that slow down when we get overloaded. 

&gt;
&gt; The main advice that has been given here in the past is to profile your
&gt; code. If it's C or C++ code, compile it with -p or -pg flags, and run it
&gt; for a while. Collect the results and see where all of your time is going.
&gt; Let us know the results, and I'm sure lots of further advice will
&gt; follow from there.

Yeah, I profiled it all. Mob ai is taking up about 20% of processor time,
and player movement is quite slow, taking up to .07 seconds when malloc is
low (our server has an irritating little memory leak, which we're working
to fix). 

Currently, mob AI is broken up into three main tasks. One handles mobiles
that randomly wander about (quite a few of those. Butterflies to net and
the like). One handles mobiles that are involved in a fight. The final one
handles everything else (healing, gathering items, etc). 

So really, at most, that accounts for, on the high end, say, 35% of
processor time. The other 65% seems to be reasonably well-distributed
among everything else.
--matt




_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00734" HREF="msg00734.html">Re: [MUD-Dev] Text Parsing</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#varesearch,com&gt;</li></ul>
<li><strong><A NAME="00709" HREF="msg00709.html">Re: [MUD-Dev] Text Parsing</A></strong>
<ul compact><li><em>From:</em> Adam Wiggins &lt;adam#angel,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00654" HREF="msg00654.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00678.html">RE: [MUD-Dev] Goals and directions (was the gender thing)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00680.html">RE: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00654.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00709.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00679"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00679"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] Text Parsing</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00593" HREF="msg00593.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Greg Miller <a href="mailto:gmiller#classic-games,com">gmiller#classic-games,com</a>, Tue 08 Jun 1999, 14:52 GMT
<UL>
<LI><strong><A NAME="00625" HREF="msg00625.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
David Bennett <a href="mailto:ddt#discworld,imaginary.com">ddt#discworld,imaginary.com</a>, Wed 09 Jun 1999, 01:15 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
<LI><strong><A NAME="00620" HREF="msg00620.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 08 Jun 1999, 23:58 GMT
</LI>
<LI><strong><A NAME="00654" HREF="msg00654.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 10 Jun 1999, 01:43 GMT
<UL>
<LI><strong><A NAME="00679" HREF="msg00679.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Thu 10 Jun 1999, 06:13 GMT
<UL>
<LI><strong><A NAME="00709" HREF="msg00709.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 10 Jun 1999, 18:43 GMT
<UL>
<LI><strong><A NAME="00715" HREF="msg00715.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Katrina McClelan <a href="mailto:kitkat#marcus,pants.nu">kitkat#marcus,pants.nu</a>, Thu 10 Jun 1999, 21:57 GMT
<UL>
<LI><strong><A NAME="00721" HREF="msg00721.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 10 Jun 1999, 22:41 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00717" HREF="msg00717.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Thu 10 Jun 1999, 22:15 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>