#109073 - Cthulhu - Tue Nov 14, 2006 9:39 pm
Does zlib work well with libnds and the FAT lib? I need it because i have to access data from compressed files (uncompressed ~80mb)
#109074 - Lick - Tue Nov 14, 2006 9:45 pm
80MB? That won't fit in any memory on the DS. My PC processor needs a few seconds to de- and compress 80MB files, I guess the DS will need a few minutes?
_________________
http://licklick.wordpress.com
#109077 - Cthulhu - Tue Nov 14, 2006 9:51 pm
Yeah, well, i can divide the file in smaller files, but the thing is that if zlib can access those files... i will be very happy, and dont need to decompress the data, just gzseek it :D
#109079 - OOPMan - Tue Nov 14, 2006 9:59 pm
Compressed files do not need to be accessed in such a trivial fashion Lick...
Many games use compressed archives and do not tend to extract the entire archive into memory while accessing one file within the archive.
As long as the file within the compressed archive you're accessing is not too large and the compression ratio method is not too intensive then accessing a single file on the fly and uncompressing it should not be a problem, as long as it's done correctly...
However, you will need to actually port zlib and test it...
It should be remembered, however, that computers have been accessing compressed data a lot longer than the DS has been around and that a lot of these computers were nowhere near as powerful as the DS. Hence I find the occasional "You can't do that on the DS posts" rather ridicolous, seeing as how it's been done on PCs and the like that were a lot less powerful...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI
You can find my NDS homebrew projects here...
#109081 - Lick - Tue Nov 14, 2006 10:28 pm
Well, it might have been DONE, but was it done in a reasonable amount of time?
_________________
http://licklick.wordpress.com
#109093 - josath - Wed Nov 15, 2006 1:24 am
zlib works on DS without issue...however I have not tried direct integration with libfat. You may need to implement custom read/write functions, and not be able to use the pre-made easy methods (gzopen, gzread, etc)
#109121 - Sektor - Wed Nov 15, 2006 7:39 am
zlib 1.2.2 is here: http://gpf.dcemu.co.uk/ndsSDL.shtml
A newer port would be nice since that version has two known security vulnerabilities. I don't know how well it works with libfat.
_________________
GTAMP.com/DS
#109248 - Payk - Thu Nov 16, 2006 11:00 am
Well, moonshell also uses that lib. You may visit that site and get latest source. It seems to work fast enough...i guess it was used for the video format.