Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Albert Cuandero on Fri 17/09/2004 09:14:04

Title: Sprite sizes reduction - suggestion?
Post by: Albert Cuandero on Fri 17/09/2004 09:14:04
How can I reduce the KB size of my sprites?

E.g. I have a bunch of sprites using just black lines on transparent backgroud. As GIFs those would be very small files, even if they are fullscreen pixel-size.

My imported sprites however are all the same file size, relating only to the screen size (according to the sprite-properties button)

Can I have GIF-like compression on sprites? (as is done with the backgrounds)

If not, can I place it as a suggestion? Thanks.

(a search didn't return any results - can it be none asked this before?)
Title: Re: Sprite sizes reduction - suggestion?
Post by: Privateer Puddin' on Fri 17/09/2004 09:22:39
I don't think AGS compresses sprites due to a speed issue
Title: Re: Sprite sizes reduction - suggestion?
Post by: Gilbert on Fri 17/09/2004 10:50:53
As cus... pudding pointed out, sprites are never compressed because of speed issue (no matter what format they're originally in, they occupies the same space after import). Backgrounds are, however, compressed to save space.

Normally it wouldn't be much of a problem, as when you distribute a game you may compress it first (ZIP, RAR, etc.), which should reasonably reduce the game size. Though when people uncompress the game in their computers it may be larger, most people should has harddisks large enough to hold it already (compared to those zvarily-awesome-looking commercials that would install GBs in your harddisks).

But if you're really concerned about the game size (like for example you're only creating a short/medium length game, which doesn't worth using that much space), you may consider more on how you make your game, like using less sprites if they're not necessary, etc.
Title: Re: Sprite sizes reduction - suggestion?
Post by: Moox on Fri 17/09/2004 11:31:46
You could use png for importing them
Title: Re: Sprite sizes reduction - suggestion?
Post by: Gilbert on Fri 17/09/2004 11:37:29
LT, read carefully.
Quote from: Gilbot V7000a on Fri 17/09/2004 10:50:53
(no matter what format they're originally in, they occupies the same space after import).
Title: Re: Sprite sizes reduction - suggestion?
Post by: Albert Cuandero on Fri 17/09/2004 12:33:01
Too bad... thanks anyway

I really have do sprites (pages of and such) which PS compreses to 15KB gifs, but AGS makes the 400+KB. Maybe I will try to make each line of the book a single sprite, thus saveing the space between them...

Yeah, zipping will hopefully help - my real concern is the DL-size as a 75-100 MB game would be wuite limited in distribution by this (plus the bandwith costs).
Title: Re: Sprite sizes reduction - suggestion?
Post by: Rui 'Trovatore' Pires on Fri 17/09/2004 14:29:06
Sprites compress very easily. I always cut down on a lot of space when I use RAR's "Best Compression" setting, on any given game. And as I recall, I once playd a game that got reduced to it's third when compressed - an AGS game.

So if you're concern is download size, you don't have to worry. ;)
Title: Re: Sprite sizes reduction - suggestion?
Post by: Pumaman on Fri 17/09/2004 19:55:30
You'd be surprised at how similar the compression ratio is for images using standard zip/rar compared to lossless image formats (eg. GIF, PNG).

There's very little advantage download-size-wise in AGS compressing the sprites, but it would impact run-time performance.
Title: Re: Sprite sizes reduction - suggestion?
Post by: SSH on Fri 17/09/2004 20:02:23
How about if AGS unpacked the sprites during a games intro sequence or while waiting for the user to select which savegame, etc. Certain sprites to be used in the intro could be designated as non-compressable?

Title: Re: Sprite sizes reduction - suggestion?
Post by: Pumaman on Fri 17/09/2004 20:08:18
I just don't see the point, to be honest. For game distribution, compressing it with WinZip is just as good as if AGS compressed the sprites internally; and for installation, even the largest AGS game doesn't even make a dent in today's huge hard drives.
Title: Re: Sprite sizes reduction - suggestion?
Post by: on Sun 19/09/2004 19:54:07
Ah... But WinZip doesn't read RAR files, now does it? Get the trial version of PicoZip. It reads every type of compression that I know of. Don't worry about the "This is only for evaluation" disclaimer. So who cares if it takes you 20 years to decide if you like it...
Title: Re: Sprite sizes reduction - suggestion?
Post by: Gilbert on Mon 20/09/2004 03:18:24
Or, use free programmes to extract RAR files instead, like 7Zip (http://www.7zip.org)...
Title: Re: Sprite sizes reduction - suggestion?
Post by: BorisZ on Mon 20/09/2004 14:08:42
I use WinAce, but I compress it in ZIP format (best compression option). As you can check, ZIP format I uploaded is about 2,8 MB and uncompressed game is 8,7 MB (as I recall). That's about 3 times smaller ZIP.

WinAce is not free, but it is shareware with unlimited using time (only shows pop-up's on opening), and it reads ZIP,RAR and other formats.