Jump to content
  • Advertisement


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


Doubles or Floats?

This topic is 6149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!