Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: WMCoolmon on August 17, 2003, 09:22:58 pm

Title: Testers wanted: 25% loading times
Post by: WMCoolmon on August 17, 2003, 09:22:58 pm
FS2 should now load everything a lot quicker than normal:Testing EXE (http://members.cox.net/~wmcoolmon/fs2_open_w.zip)

I didn't change too much, so there should only be a few bugs (if any). :nod:

Testing instructions:
Run the test EXE and make sure it doesn't go any slower and there aren't any new bugs as compared with the latest CVS build. Make sure you have pilot files already created, as the best indication of a bug will be that they don't show up.
Title: Testers wanted: 25% loading times
Post by: Bobboau on August 17, 2003, 09:49:17 pm
it seems somewhat faster, though ever sence my new computer it has been just so much faster it's hard to tell,
what did you do?
Title: Testers wanted: 25% loading times
Post by: WMCoolmon on August 17, 2003, 10:01:48 pm
In cf_find_file_location, it was looking for the existence of a file in every subdir with a call to fopen()...I changed that to _findfirst().

Code: [Select]
for (i=CF_TYPE_ROOT; i {
if ( i != pathtype ) {
search_order[num_search_dirs++] = i;
}
}

#if defined WIN32
long findhandle;
_finddata_t findstruct;
#endif

for (i=0; i {
char longname[MAX_PATH_LEN];

cf_create_default_path_string( longname, search_order[i], filespec, localize );
#if defined _WIN32
findhandle = _findfirst(longname, &findstruct);
if (findhandle != -1) {
if ( size ) {
*size = findstruct.size;
}

_findclose(findhandle);
#elif defined unix
FILE *fp = fopen(longname, "rb" );
if (fp) {
if ( size ) {
struct stat statbuf;
fstat(fileno(fp), &statbuf);
*size = statbuf.st_size;
}

fclose(fp);

#endif
if ( offset ) *offset = 0;
if ( pack_filename ) {
strcpy( pack_filename, longname );
}
return 1;
}
}
Title: Testers wanted: 25% loading times
Post by: Support 1 on August 17, 2003, 10:28:02 pm
You were right about the pilot files. It didn't detect one of my multiplayer pilot files, but it did see the other pilot files.

Another bug: I can't delete pilot files! The Barracks will remove the pilot but when I go back it's still there.
Title: Testers wanted: 25% loading times
Post by: WMCoolmon on August 17, 2003, 11:07:13 pm
Does it detect any other multiplayer pilot files? Are you sure none of your pilot files are read only?
Title: Testers wanted: 25% loading times
Post by: FreeTerran on August 18, 2003, 03:31:14 am
Ok...
i start with the good it loading a bit faster

and now the bugs....

i have only found 2 bugs from te old shine exe i think you haven't use the new source from bob
Title: Testers wanted: 25% loading times
Post by: Support 1 on August 18, 2003, 08:30:59 pm
No, none of my files are read only. All but one file are detected, other multi files are detected.
Title: Testers wanted: 25% loading times
Post by: Inquisitor on August 19, 2003, 10:24:56 am
FT: I am not sure bob has committed the shine stuff to the main project.
Title: Testers wanted: 25% loading times
Post by: FreeTerran on August 19, 2003, 10:28:09 am
hmm but the shine works with WMCoolmon's  exe fine
Title: Testers wanted: 25% loading times
Post by: WMCoolmon on August 20, 2003, 03:45:15 am
Quote
Originally posted by Support 1
No, none of my files are read only. All but one file are detected, other multi files are detected.

Try downloading http://members.cox.net/~wmcoolmon/fs2_open_w.zip and trying both EXEs and see if you get an error message for both. (the z version doesn't have the quickloading change).
Title: Testers wanted: 25% loading times
Post by: Inquisitor on August 21, 2003, 08:15:05 am
Sounds like this is getting close to being ready to commit :)
Title: Testers wanted: 25% loading times
Post by: Goober5000 on August 21, 2003, 09:56:43 am
Quote
Originally posted by Inquisitor
FT: I am not sure bob has committed the shine stuff to the main project.


He has, and it's rather buggy. :shaking: The interface flickers a lot, the HUD flashes on and off in spasms, and sometimes the screen goes completely to black.  I've also had some null vector asserts come up occasionally.

Needless to say, this'll need a bit of work. :)
Title: Testers wanted: 25% loading times
Post by: phreak on August 21, 2003, 10:01:19 am
i fixed the flashing screen bits. they just needed zeroing out
Title: Testers wanted: 25% loading times
Post by: Support 1 on August 21, 2003, 08:30:10 pm
I have the _r version, and it detects all my files.

Phreak: The link in your sig is not working at the time of posting.
Title: Testers wanted: 25% loading times
Post by: WMCoolmon on August 21, 2003, 09:46:21 pm
Quote
Originally posted by Support 1
I have the _r version, and it detects all my files.

Phreak: The link in your sig is not working at the time of posting.


I don't know what exactly that version has in it; it could've been introduced by some other change. The _z version is identical to the _w version (in the zip) except that it uses the old loading code. Hopefully it's not the loading code, since I have no idea where that's called when deleting pilots. :confused:
Title: Testers wanted: 25% loading times
Post by: Inquisitor on August 22, 2003, 10:59:23 am
WM, a bunch of stuff has been committed in the last couple days, update if you haven't, that code might have made it in to the main branch.

I'll leave it to Bob or phreak to verify, but, c'est possible' :)