Doubles or Floats?
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement