• Advertisement

Archived

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

Integers Instead of Floats in GL?

This topic is 6427 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

While working on the tools needed to create some same level-data for me to work with, I noticed that my game deals with only a limited range of vertex values, as the levels themselves are rather small. With this in mind, would it make sense to stick with ints instead of floats? Is there any speed advantage to doing this? Almost all my rotations are being handed off to the GL, with myself only handling the bare minimum needed to handle basic collision detection and game physics. At first glance, the 2^32 range seems to give me plenty of breathing room... (a curious) C=64

Share this post


Link to post
Share on other sites
Advertisement
Well, integers will cause a loss in accuracy and it''s all gonna be converted to floats anyway, so just use floats.

------------------------
Captured Reality.

Share this post


Link to post
Share on other sites

  • Advertisement