Advertisement Jump to content
Sign in to follow this  

Speeding up batch D3DXCreateTextureFromFileEx

This topic is 4935 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/", 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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!