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

Re: Of time scaling and FPS

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

> Grr!! You senseless waster of machine-power!!! You'll rue this day when we all 
> go back to kilohertz speed processors!!

> {Erm. I'll get my coat..}

Christopher John Purnell  | I thought I'd found a reason to live
http://www.lost.org.uk/   | Just like before when I was a child
--------------------------| Only to find that dreams made of sand
What gods do you pray to? | Would just fall apart and slip through my hands