Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Doubles or Floats?

4: Adsense

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 Brannon   Members   

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   

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 Brannon   Members   

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.