gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > FileArchive using zip would it help?

#112388 - jippie - Fri Dec 15, 2006 9:44 pm

I was wondering if this would be a good idea!
Reading from files is pretty slow on my GBAMP.
So I was thinking to put it in a zip file and then unzip what I need on the fly.

Do you think this would speed up loading time??

It would make the it a bit cleaner as I would not need a directory with all my files in just one zipped file.

Would it also maybe possible to put this code so it runs on the GBA process in the background???

Has someone port zip to ds yet?

regards,

jippie

#112392 - Sausage Boy - Fri Dec 15, 2006 9:52 pm

If the uncompressing algorithm is faster than reading from the cf, then yes. You'd want to do some benchmarks before you implement this. Zlib should be trivial to get running on the DS.
_________________
"no offense, but this is the gayest game ever"

#112393 - tepples - Fri Dec 15, 2006 10:00 pm

Sausage Boy wrote:
Zlib should be trivial to get running on the DS.

In fact, if you have libpng, you already have zlib.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#112396 - Sausage Boy - Fri Dec 15, 2006 10:08 pm

If I recall correctly, someone has modified an older version to work on the DS.
_________________
"no offense, but this is the gayest game ever"

#112402 - LiraNuna - Fri Dec 15, 2006 11:30 pm

davr and dragonminded successfully ported libpng to the DS.
davr's port
_________________
Private property.
Violators will be shot, survivors will be shot again.