<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Text Parsing --> <!--X-From-R13: Yngevan [pQyryna <xvgxngNznephf.cnagf.ah> --> <!--X-Date: Thu, 10 Jun 1999 14:57:52 -0700 --> <!--X-Message-Id: Pine.LNX.4.04.9906101337510.935-100000#marcus,pants.nu --> <!--X-Content-Type: text/plain --> <!--X-Reference: Pine.SGI.3.96.990610113118.15044C-100000#zazu,angel.com --> <!--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:kitkat#marcus,pants.nu"> </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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00714.html">Previous</a> | <a href="msg00716.html">Next</a> ] Thread: [ <a href="msg00709.html">Previous</a> | <a href="msg00721.html">Next</a> ] Index: [ <A HREF="author.html#00715">Author</A> | <A HREF="#00715">Date</A> | <A HREF="thread.html#00715">Thread</A> ] <!--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>: Katrina McClelan <<A HREF="mailto:kitkat#marcus,pants.nu">kitkat#marcus,pants.nu</A>></LI> <LI><em>Date</em>: Thu, 10 Jun 1999 13:43:01 -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 Thu, 10 Jun 1999, Adam Wiggins wrote: > Then at the top of act(), which is the routine which get called to turn the > markup language into text that everyone in the room can see, I simply checked > to see if num_pcs_in_room was greater than zero. If not, I just returned without > doing any processing. This made quite a difference; up until then it had been > constructing the "You leave north" and "A hobbit arrives from the south" strings > every time a mobile moved, whether a PC was present or not. > This works, except that you then don't get full information when you snoop a mob... oh yeah... can't do that in standard diku ;) (not that you couldn't code around this limitation and still "blind" the mobs in the general case anyway) > I also staggered the way that things happened; at the time, most all of the game > updating happened on the "tick" mark (every 60 seconds), which caused a slowdown > right then. I made an "object tick", a "character tick", and so forth. > By the same token, mobiles, which previous updated every 3 seconds (all of them), > I changed to update every second. However, not *all* of them would update, only > about 1/3rd. I'd just save the linked list pointer until the next second, and > pick up where I left off. When it got to the end it would loop around again. > An informative note that this works because the standard game look checks start time, and end time, and the last thing it does is sleep for the remainder of 1/4 second. If your one loop takes longer than 1/4 second, then you get server side lag. However if you distribute the computing over multiple loops that use less than 1/4 second you don't notice the high load on the client side. Only adding this because I had a mud once reject this optimization arguing that it didn't save any CPU time. Truthfully it doesn't save any computing time. It does help with server lag however. -Katrina _______________________________________________ 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="00721" HREF="msg00721.html">Re: [MUD-Dev] Text Parsing</A></strong> <ul compact><li><em>From:</em> Adam Wiggins <adam#angel,com></li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00709" HREF="msg00709.html">Re: [MUD-Dev] Text Parsing</A></STRONG> <UL><LI><EM>From:</EM> Adam Wiggins <adam#angel,com></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00714.html">Re: [MUD-Dev] Game Economies</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00716.html">Re: [MUD-Dev] Text Parsing</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00709.html">Re: [MUD-Dev] Text Parsing</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00721.html">Re: [MUD-Dev] Text Parsing</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00715"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00715"><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> <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 <UL> <LI><strong><A NAME="00722" HREF="msg00722.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:55 GMT </LI> <LI><strong><A NAME="00727" HREF="msg00727.html">Re: [MUD-Dev] Text Parsing</A></strong>, Katrina McClelan <a href="mailto:kitkat#marcus,pants.nu">kitkat#marcus,pants.nu</a>, Fri 11 Jun 1999, 01:35 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL> </LI> </ul> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>