Jump to content
  • Advertisement
Sign in to follow this  

Speeding up batch D3DXCreateTextureFromFileEx

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

I would like to know how to speed up batchloading dds sprite pages as intended in the following peice of code. will combining them all into one flat file help, by skipping file handle/header detection? thanks in advance if you can help! ------------------------------------------------------------------------------- for(int i=first;i<=last;i++) { sprintf(ss, "./sprites/%s/sheet_%d%d.dds", folder, i / 10, i % 10 ); D3DXCreateTextureFromFileEx( g_pApp->m_pd3dDevice, _T(ss), D3DX_DEFAULT, D3DX_DEFAULT, 0, 0, d3dFormat, D3DPOOL_DEFAULT, D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, D3DX_FILTER_TRIANGLE|D3DX_FILTER_MIRROR, 0, NULL, NULL, sprPages[iTexFileCount++] ); } -------------------------------------------------------------------------------

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!