[MUD-Dev] Combat systems

J C Lawrence claw at cp.net
Thu Dec 16 17:24:23 CET 1999


On Thu, 16 Dec 1999 21:16:25 +0100 (CET) 
Marc Spoorendonk <marc at 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 at kanga.nu
----------(*)                            Internet: coder at kanga.nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list