Jump to content
  • Advertisement
Sign in to follow this  
X5-Programmer

FastLoad Textures

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

Hi, I have been working with an terrain test, and ahve been using a 2048*2048 image for the map.. but I load it like a jpg file and it takes a long time to load it.. what format or method can be better/faster to load so big files? hope anyone can point me somewere. [Edited by - X5-Programmer on March 9, 2005 11:03:03 AM]

Share this post


Link to post
Share on other sites
Advertisement
Load images as fast as possible involves finding a format that can be decoded with the same speed as you can do io. Memory mapped files is one easy way to parallelize loading/decoding. So the optimum format depends largely on the intended storage medium. And since JPEG is to slow I can only assume that you're cpu bound and need to find a less complex format.

Hardware texture compression and vector quantization seems like a good choices, especially since they allow you to keep the images in a compressed form in memory. But something as easy as storing raw images in a reduced bit depth could be enough.

Share this post


Link to post
Share on other sites
Maybe start loading _before_ you need it - it predict when it's
probable you need it and already start loading it async.

Share this post


Link to post
Share on other sites
i am looking for a ready-made utility to convert my image files to a character-based array file for use by GLUT wrt Mark Kilgard's book. Please provide the utility if you have it.
Else is there some other simply way to load an image onto an object in openGL.

thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!