Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Revae on Fri 16/03/2012 04:36:18

Title: .spr filesize
Post by: Revae on Fri 16/03/2012 04:36:18
So my sprite images equal ~20MB total in their raw .png format.  But the .spr filesize is around 310MB. I have about 500 sprites used in the editor.

Is there a way to remedy this, or is their something I'm missing?  I don't even have my short demo done, and the game is much larger than I was hoping it would be at this point.

On an unrelated note, is there a way I can get it to stop greying out buttons when the script is blocking actions?

But mostly the filesize thing.
Title: Re: .spr filesize
Post by: Calin Leafshade on Fri 16/03/2012 04:38:37
Both options are in the general settings

Look for Compress The Sprite File and When player interface is disabled GUIs should:
Title: Re: .spr filesize
Post by: Revae on Fri 16/03/2012 05:57:33
Pft.  It's always the most obvious places...  Don't know why I didn't think to look there.  Thanks.

The filesize is 60MB now.  Still ~3x larger than the original sprites, but much better, thank you.

Any reason the .spr file would be so much larger?  Or info on how it's generated?  I tried searching around, but it's hard to search for '.spr' without pulling up all sorts of others things.
Title: Re: .spr filesize
Post by: Calin Leafshade on Fri 16/03/2012 06:01:55
PNGs have more advanced compression than AGS (specifically zlibs DEFLATE).

AGS uses simple RLE for its compression so it wont be as good as PNGs native compression i'm afraid.