Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 22nd, 2004, 1:59 AM   #1
thefalsearthur
Newbie
 
Join Date: Aug 2004
Posts: 1
Rep Power: 0 thefalsearthur is on a distinguished road
I am using the following code to put a number of picture files (called pic0, pic1, pic2 etc) into a char array:
char fname[43]; 
memset(fname,0,43); 
for(int i=0; i<43; i++) 
{ 
sprintf(fname,"pic%d.dds", i); 
}
This method works, except for the fact that there is a noticable loading time. Does anyone know how I can accomplish this more efficiently? I have tried various file formats for the pictures, and what's strange is that the loading time is the same when using any format.
Thanks in advance.
thefalsearthur is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:13 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC