[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Of time scaling and FPS



Quoting Chris Purnell <cjp@lost.org.uk>:

> On Thu, May 09, 2002 at 12:58:07PM +0100, Katie Lauren Lucas wrote:
> > Quoting Chris Purnell <cjp@lost.org.uk>:
> > > If you want a float it is easy enought to do the integer
> subtraction
> > > becasue you can skip the carry.  You just take the two signed
> results
> > > of the subtaction, convert to float, scale to the same units and
> add.
> 
> > BUT!!! If you do that, you're using an EXTRA integer->float
> conversion... per 
> > frame...
> 
> The only way to get away with only doing one integer->float conversion
> is
> by doing it last.  If you convert to float first you will have to do 4
> conversions.

You still can't tell when I'm winding you up, can you?

_______________________________________________________________________________
      Katie Lauren Lucas, Consultant Software Engineer, Parasol Solutions
katie@fysh.org katie.lucas@parasolsolutions.com http://www.parasolsolutions.com