ACSPRSET.SPR huge!

Started by nightmarer, Sun 03/05/2020 22:07:26

Previous topic - Next topic

nightmarer

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.

Gilbert

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.

Crimson Wizard

#2
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.

SMF spam blocked by CleanTalk