Doubles or Floats?

Started by
1 comment, last by Brannon 22 years, 4 months ago
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
-Brannon
Advertisement
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.
That''s exactly the info I was looking for.

thanks,

-Brannon
-Brannon

This topic is closed to new replies.

Advertisement