• Advertisement

Archived

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

How to load over 50 textures faster

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

If I have a game with over 50 textures, what can I do to load fast.Every game have a textures but they load very fast!But in my game textures are loading slow.How can I save rendered texture in file or what can I do to do this wor faster for my game!please help me with that!

Share this post


Link to post
Share on other sites
Advertisement
seeing as how you didnt post any source as to how you''re loading textures i''m gonna give a general bit of advice.

If you''ve writen a custom loader that does all the file IO stuff make sure its not reading in one byte at a time. read the whole file into a buffer and use that instead. this will cut your load time.

Share this post


Link to post
Share on other sites
Show us how you load them now and we''ll se what can be improved.

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Add some timing-code to different stages of your handling of textures to find out what''s really the problem.
You could use DDS-format instead of (raw|tga|jpg|whatever), a single DDS can hold different stages of mipmaps, instead of having to generate them at loadtime.

Defragged your harddrive lately? If it''s badly fragmented it also shows when you''re after fast loading.
A last suggestion would be to make sure your textures are in the correct format before uploading so the driver won''t have to swap around bytes to get it right.

Share this post


Link to post
Share on other sites
Here''s a first optimization: if you are using gluBuild2DMipmaps, you could precalculate yourself all the mipmap levels so that you''d only have to upload them to OpenGL.

Y.

Share this post


Link to post
Share on other sites

  • Advertisement