Re: Formula for Damping f times
Robin Green <[email protected]>
| Newsgroups | gmane.games.devel.algorithms |
|---|---|
| Message-ID | <[email protected]> |
exp() is one of the simplest and most direct math function to implement. It should be approximately the cost of, say, five or sequential six multiply-adds (and that includes range reduction and reconstruction). Do not fear exp(). pow(), however, is a different story. - Robin Green. On Fri, Jun 5, 2009 at 8:06 AM, Jeff Russell<[email protected]> wrote: > x *= e ^ k * dt (where k < 0) is my good old standby. Works well with > variable time steps. The call to exp() can be expensive, but if you have a > lot of things decaying at the same rate you can compute exp( k * dt ) once > for the frame and keep reusing it. > cheers, > jeff ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ GDAlgorithms-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list