Archived

This topic is now archived and is closed to further replies.

Brannon

Doubles or Floats?

Recommended Posts

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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites