Skip to main content
GameDev.net gamedev.net
🔒 Locked

Speeding up batch D3DXCreateTextureFromFileEx

Started by EddHead Jul 21, 2005 at 4:09 AM 0 replies 550+ views
Original Post
EddHead
EddHead
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++] ); } -------------------------------------------------------------------------------
Jayanth.KRaptor Entertainment Pvt. Ltd.http://www.raptorentertainment.com---------------------------------------------------------Why Mr. Anderson? Why? ...Why keep fighting? Do you think you're fighting for something - for more than your survival? Can you tell me what it is? Do you even know? Is it freedom, or truth, perhaps peace, could it be for love? Illusions Mr. Anderson, vagaries of perception. Temporary constructs of a feeble human intellect trying desperately to justify an existence wit

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.