[Home] [Groups] - Message: [Prev in Group] [Next in Group]
12027: Re: [MUD-Dev] Combat systems
[Full Header] [Plain Text]
From: J C Lawrence <claw@cp.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 16 Dec 1999 17:24:23 -0800
References: [1]
Organization: Kanga.Nu
On Thu, 16 Dec 1999 21:16:25 +0100 (CET)
Marc Spoorendonk <marc@freud.et.tudelft.nl> wrote:
> Using the squareroot function in order to create some curves in
> the statistics is a good idea. Log and exp functions are cool too
> but in my current driver they aren't implemented.
Words of advice:
Write up integer approximating functions for sqrt(), log() etc.
Outside of MIPS and Alpha platforms (and even there) these are
extremely expensive calls. Integer approximations are often far far
lighter and result int he same end.
--
J C Lawrence Internet: claw@kanga.nu
----------(*) Internet: coder@kanga.nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...
_______________________________________________
MUD-Dev maillist - MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev