Jump to content

  • Log In with Google      Sign In   
  • Create Account

Doubles or Floats?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 December 2001 - 02:04 PM

So, is one or the other faster as far as OpenGL goes? It seems like most samples and documentation use floats. For some reason, I want to use doubles.. but I don''t want to introduce an obscure perf problem that would be a pain in the ass to go back and change. -Brannon

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 16 December 2001 - 03:11 PM

Depends on your architecture.

If you switch the FPU to 32bit mode and use floats, performance will always be better. And OpenGL uses floats internally, so I think it''s a good idea to stay with floats for the graphics engine.

Things might be different with a physics engine though, doubles may come in handy for the extended precision.


#3   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 December 2001 - 03:18 PM

That''s exactly the info I was looking for.

thanks,

-Brannon




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS