Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: nightmarer on Sun 03/05/2020 22:07:26

Title: ACSPRSET.SPR huge!
Post by: nightmarer on Sun 03/05/2020 22:07:26
Hello.

I just started the game and i have a ACSPRSET.SPR bigger than 100 mb, so I can't use GitHub.
I can't understand this, because the raw sprite folder is not bigger than 26mb.
Can you tell me if there is any solution?

Regards.
Title: Re: ACSPRSET.SPR huge!
Post by: Gilbert on Mon 04/05/2020 02:33:21
That's because by default(or they're compressed by default now, I'm not sure), sprite data are not compressed.
Your original sprite image files may be of PNG, GIF or JPEG format that are compressed, so this is normal.
Try changing "Compress the sprite file" in the Compiler section of General Settings to true (if this is not already done). The sprite data will then be compressed using a rather simple RLE scheme (for performance reason). How much this helps depend on the "complexity" of your sprites.
Title: Re: ACSPRSET.SPR huge!
Post by: Crimson Wizard on Mon 04/05/2020 03:31:16
TBH I would not recommend adding ACSPRSET.SPR into regular repository anyway, better keep it hosted somewhere separately. Size is one of the reasons, another is that it's a packed binary blob which is practically impossible to compare or merge using git.

In the future we hope to make AGS editor work directly with image files on disk and only produce ACSPRSET.SPR for a game build.