DSCompress

OSW

Wii King
Former Staff
Joined
Oct 30, 2006
Messages
4,787
Trophies
0
XP
482
Country
DScompress version 1.3 is out. see the source topic that this thread links on the front page.

well, some games can be compressed very well.
for example many i've tried compress result in about half the size (already trimmed roms by the way)

The best usage is to compress files you want to keep on your cart, but you don't use very often.
It's also probably not worth using with files which are greater than 40ish megabytes

IBNobody: Save game compression is pretty useless. you wouldn't save much space and it would be very annoying to have to enter a program just to decompress usch a small file.
for example my Saves on ez4 (not all 512kb like some carts) total up to 4 megabytes. thats about 9 NDS gamesaves and 16 GBA gamesaves.
 

Glacius0

Well-Known Member
Member
Joined
Nov 27, 2005
Messages
604
Trophies
0
Age
38
Location
The Netherlands
Website
Visit site
XP
205
Country
Netherlands
Here's some math on how much space compressing may save you.

high assumption: 1 gb cart, 25% compression rate, 128 mb roms only
1024 / 128 = 8 (roms)
1024 / 4 (25%) = 256 mb
256 - 128 (extraction space) = 128 mb
Result: one extra rom (3 roms for a 2 gb cart or 64 mb roms, 7 for both)
Rom efficiency: 112% (119% roms for a 2 gb cart or 64 mb roms, 122% for both)

realistic assumption: average number of roms on 1 gb cart = 20
1024 / 20 = 51.2 mb (average rom size)
1024 / 4 (25%) = 256 mb
256 - 128 (extraction space) = 128 mb
result: 128 / 51.2 = 2.5 extra roms (7.5 roms for a 2 gb cart)
rom efficiency: 112.5% (119% for a 2 gb cart)

Conclusion: By average, you get 12% more roms on a 1 gb cart and 20% on a 2 gb.
You have to draw your own conclusion if that's worth the loading time.
Keep in mind the actual compression rate may be worse.

Opinion: for a 1 gb cart you're better off getting a 2gb microSD card. For a 2 gb cart, if the loading times are under 20 seconds for a 128mb rom it could be worth it to some. However, I expect loading times longer than that, and if not, then the compression rate will be worse, so to me I don't think it's worth it.
 

OSW

Wii King
Former Staff
Joined
Oct 30, 2006
Messages
4,787
Trophies
0
XP
482
Country
You overly complicated your math!

some roms can be compressed much more than others (even pretrimmed)

Pokemon diamond Trimmed: 58.3 megabytes
Trimmed then Compressed with 7zip: 26.1 megabytes
saving of 32 megabytes or 65.2%

Donkey Kong - King of Swing: 16 megabytes
Compressed with 7zip: 3 megabytes
saving of 13 megabytes or 81% LOLOLOLOLOLOLOLOLOLOLOLOL

The ones which compress alot are the best top use with this app.
Simply don't use this program on files which don't compress much.
 

IBNobody

I try to keep myself amused.
Member
Joined
Nov 16, 2006
Messages
1,151
Trophies
1
Location
Texas, Hang 'Em High
Website
Visit site
XP
954
Country
United States
Ok, apparently I'm not allowed to have an opinion anymore. Let me explain WHY THIS HAS NO USEFUL PURPOSE AS A STAND-ALONE APP. Let's say you have a 1GB MicroSD card and a 32MB ROM. You use this to compress the rom to 28MB. You need 32MB of extra space to extract it into. So, when trying to play any game, the size it takes is Orignal Size + Compressed Size. In this case, it takes 60MB for a 32MB rom. And to make it worse, what if you have a lot of small, 8 or 16MB roms and one 128MB rom. You need empty space equal the uncompressed size of the largest rom.

HOWEVER, this would be useful for small files like saves IF it were built into the flash cart. It could uncompress them only when it needed to, like when saving.

You're only considering one ROM at a time. Zipping usually yields a compression rate of 50%-75% of the file size. Assume you have an average compression rate of 75%. Leaving a scratch 100MB on a 1GB card (for restores) would give you 900MB. That space could hold 1.125GB of ROMs. (I'm simplifying the numbers a little here.) You're limited to playing one game at a time, but you'll have extra storage, above and beyond what you'd normally have.

Whether or not this is a good thing depends on your flashcart. If you use something with removable storage, compression is of less use to you. You can just swap out the micro SD card. If you bought a G6 Real or a DS-X, though, compression is the only way you can increase the size of your card.
 

IBNobody

I try to keep myself amused.
Member
Joined
Nov 16, 2006
Messages
1,151
Trophies
1
Location
Texas, Hang 'Em High
Website
Visit site
XP
954
Country
United States
IBNobody: Save game compression is pretty useless. you wouldn't save much space and it would be very annoying to have to enter a program just to decompress usch a small file.
for example my Saves on ez4 (not all 512kb like some carts) total up to 4 megabytes. thats about 9 NDS gamesaves and 16 GBA gamesaves.

I won't argue against having it integrated into the cart OS. That is the best way to go. The guy's providing his source; maybe other flash teams will pick it up?

Saves on my R4 right now total 12MB. On my DS-X, they'd be less than 200KB. Actually, my 30-save archive is 67k compressed and 16MB uncompressed.
 

Glacius0

Well-Known Member
Member
Joined
Nov 27, 2005
Messages
604
Trophies
0
Age
38
Location
The Netherlands
Website
Visit site
XP
205
Country
Netherlands
You overly complicated your math!

some roms can be compressed much more than others (even pretrimmed)

Pokemon diamond Trimmed: 58.3 megabytes
Trimmed then Compressed with 7zip: 26.1 megabytes
saving of 32 megabytes or 65.2%

Donkey Kong - King of Swing: 16 megabytes
Compressed with 7zip: 3 megabytes
saving of 13 megabytes or 81% LOLOLOLOLOLOLOLOLOLOLOLOL

The ones which compress alot are the best top use with this app.
Simply don't use this program on files which don't compress much.
You still need a 128 mb buffer to unpack it to. Only compressing a few roms makes no sense. My point is that you can't say because some roms compress 50% you can have 50% more roms on your cart.
 

kellyan95

Banned!
Banned
Joined
Jul 4, 2007
Messages
1,460
Trophies
0
XP
51
Country
United States
Ok, apparently I'm not allowed to have an opinion anymore. Let me explain WHY THIS HAS NO USEFUL PURPOSE AS A STAND-ALONE APP. Let's say you have a 1GB MicroSD card and a 32MB ROM. You use this to compress the rom to 28MB. You need 32MB of extra space to extract it into. So, when trying to play any game, the size it takes is Orignal Size + Compressed Size. In this case, it takes 60MB for a 32MB rom. And to make it worse, what if you have a lot of small, 8 or 16MB roms and one 128MB rom. You need empty space equal the uncompressed size of the largest rom.

HOWEVER, this would be useful for small files like saves IF it were built into the flash cart. It could uncompress them only when it needed to, like when saving.


You're only considering one ROM at a time. Zipping usually yields a compression rate of 50%-75% of the file size. Assume you have an average compression rate of 75%. Leaving a scratch 100MB on a 1GB card (for restores) would give you 900MB. That space could hold 1.125GB of ROMs. (I'm simplifying the numbers a little here.) You're limited to playing one game at a time, but you'll have extra storage, above and beyond what you'd normally have.

Whether or not this is a good thing depends on your flashcart. If you use something with removable storage, compression is of less use to you. You can just swap out the micro SD card. If you bought a G6 Real or a DS-X, though, compression is the only way you can increase the size of your card.


Ok, let's have somebody get 12 random games (at least 1 of every size) and compress them all with THIS utility. See how long it takes, and how much actual space is saved
 

OSW

Wii King
Former Staff
Joined
Oct 30, 2006
Messages
4,787
Trophies
0
XP
482
Country
Yeah well my point is that you shouldn't bother compressing files that won't compress very much.

Another obvious suggestion, don't compress files you regularly use (since you don't have to wait decompressing times)

Common sense if you ask me.

So if you compress Two 50mbyte files that can be compressed to 50% size, then you don't need more room than you originally had on your cart to uncompress it.

Compress more files and you start saving more.


I understand some slot carts offer compression features. I think it'd be useful if we had a general app which could uncompress to the ram of other carts which don't have the feature built in.
 

Glacius0

Well-Known Member
Member
Joined
Nov 27, 2005
Messages
604
Trophies
0
Age
38
Location
The Netherlands
Website
Visit site
XP
205
Country
Netherlands
Yeah well my point is that you shouldn't bother compressing files that won't compress very much.

Another obvious suggestion, don't compress files you regularly use (since you don't have to wait decompressing times)

Common sense if you ask me.

So if you compress Two 50mbyte files that can be compressed to 50% size, then you don't need more room than you originally had on your cart to uncompress it.

Compress more files and you start saving more.


I understand some slot carts offer compression features. I think it'd be useful if we had a general app which could uncompress to the ram of other carts which don't have the feature built in.
Again, you are forgetting you need a place to unpack the rom. If you have two 50 mb files, compressed to 25 mb, you need 50 mb of free space to unpack it to. Meaning you saved 0 mb.
 

OSW

Wii King
Former Staff
Joined
Oct 30, 2006
Messages
4,787
Trophies
0
XP
482
Country
No i didn't forget that
tongue.gif


I meant exactly that that when you unpack it there is the right amount of room.
now if you increased the number of compressed files then the room increases and you do indeed save space.

Besides, despite how i may have sounded, i don't mean to force anyone to accept my opinion on the merits of the app, i just wish to explain how i find it to be best used and how i personally find it useful.

I'm not compressing a huge amount of files on my cart at the moment.
I have
5 compressed gba games (and 12 uncompressed, 4 in NOR)
1 compressed nds game (9 uncompressed)
1 compressed kernel update

now here is the biggest part
50 compressed homebrew games/demos (36.8mb)(uncompressed is 76.8mb)

with the 40mb saved i can fit a dpg video in, since on average the homebrew is 1.5mb.

these are average or good homebrew which i might use once every 2 months or so.
 

Kamgusta

Well-Known Member
Newcomer
Joined
Aug 11, 2006
Messages
58
Trophies
0
Location
Guess it
Website
Visit site
XP
75
Country
Italy
can be useful if you want to have all your roms gzipped on your cart...
then you can decompress the roms you want to play (and delete others to save space)
So it is useless. Trim anyone?

If you think it is useless since trimming exists, sorry but you just don't know what both do...
wink.gif


Let's take a simple example here, with a fictive rom that simply contains 56 characters (hope big-N won't sue me for posting its "code" !
unsure.gif
).

64 bytes rom (512 bits
tongue.gif
) :
ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD00000000

The zeroes are there because of the storage format; as the size of the cartridge will be the nearest higher power of 2, the remaining space is occupied by zeroes, which don't do anything in that case.

Now let's trim it :
ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD
A 56 bytes rom.

We have saved some room!
biggrin.gif
But now, let's try compressing it instead...

(ABCD)*14(0)*8
A 14 bytes rom!

Weee, it is now even smaller! Trimming just trims what isn't need (oddly reminds another topic from here!) , whereas compressing makes what exists take much less space, without losing anything in this case.

I hope you understand the difference better now, and realize the use this could have!

- Vince989
I didn't say trim=compress

0556 Megaman ZX (U)
67.108.864 byte

TRIM
45.798.068 byte

ZIP
34.743.252 byte

Let's do some math. The time you wast zipping could be used to earn 5$ and buy 512MB more storage... if that is the problem.
 

A2hok

Member
Newcomer
Joined
Oct 26, 2006
Messages
23
Trophies
0
Website
www.ugames.tk
XP
98
Country
This program COULD be usefull only if the speed of unzipping was optimized. At the moment it takes over a minute to unzip generally. This is just way too much, if the time could be less this would be a very good program.

In other words, its just way too slow.
 

Maikel Steneker

M3 Fanboy
Member
Joined
May 16, 2007
Messages
3,394
Trophies
1
Age
32
Website
ndss.nl
XP
383
Country
Netherlands
This could be useful in another way. I've got both a M3 Simply and M3 Lite. Wouldn't it be possible to compress a GBA-rom and directly uncompress it to the M3 Lite memory? It would mean that you don't need any space to uncompress your roms to.

This program could also be useful in another way: like going on vacation. You could compress all of your roms, and use the space you're saving to put some DPG-files on your flashcart. You can watch the movies, and after you saw them you delete them (using DSOrganize or something) leaving space to unpack your roms!
 

Groundhog

New Member
Newbie
Joined
Dec 11, 2006
Messages
1
Trophies
0
XP
9
Country
Belgium
Beware, DsCompress 1.3 is bugged. I don't know for the older versions since this is the first one I use.

I made several tests with a 16Mb (bytes, not bits) file on my M3 micro-SD. Here are the results :

- Winzip compression, maximum portable .zip, uncompressed with DsCompress, resulting file corrupted.
- Original Gzip (command line), default options, uncompressed with DsCompress, resulting file corrupted.
- 7Zip, Gzip Ultra mode, uncompressed with DsCompress, resulting file >>> OK > CORRECT
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Gray zone warfare looks kinda cool
  • Psionic Roshambo @ Psionic Roshambo:
    Ohhh on one episode they could use rings to summon Captain Criminal who is just Obama like a spoof of Captain Planet lol
    +1
  • BigOnYa @ BigOnYa:
    Does look good
  • Psionic Roshambo @ Psionic Roshambo:
    By your powers combined, hmmm where is Epstein?
  • K3Nv2 @ K3Nv2:
    Just another shit fps clone
  • K3Nv2 @ K3Nv2:
    Thought it was some warzone dlc bs
  • Psionic Roshambo @ Psionic Roshambo:
    Looks like an enhanced Far cry 1
  • K3Nv2 @ K3Nv2:
    That's a far cry from it
  • BigOnYa @ BigOnYa:
    Is it a free to play bs, pay to get any good weapon/gear
  • K3Nv2 @ K3Nv2:
    Not free to play but $35
  • K3Nv2 @ K3Nv2:
    Inb4 kiiwii gives it a 0/10
  • BigOnYa @ BigOnYa:
    6/10 rating on steam
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
    Psionic Roshambo @ Psionic Roshambo: Not sure I would want something on fire between my legs