'Sprite-sheet's applicable or not ?

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
User avatar
Eagle_11
Posts: 759
Joined: November 20th, 2013, 12:20 pm

'Sprite-sheet's applicable or not ?

Post by Eagle_11 »

Is there any performance/filesize difference for using via ~crop and ~blit from one combined sprite-sheet to display the unit's graphics, compared to current method of using seperate pictures for each frame ? Had this idea of going ahead and doing, but thought should maybe ask first to not end up having worked for nothing.
I assume it would spare an few kb's, when combined makes a few mbs, but performance wise is it more taxing for the game to process from one picture or better the current way of using seperate pictures and therefore it is so ?
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: 'Sprite-sheet's applicable or not ?

Post by zookeeper »

You would probably save on filesize by using a sheet, but the game won't handle it any faster or more efficiently. Most likely it'd actually consume a little bit more memory since both the sheet and the individually cropped parts would be stored separately.

So, if it's more convenient for you to use a sheet you can do so, but beyond possible filesize savings there's currently no technical benefit to it.
User avatar
Eagle_11
Posts: 759
Joined: November 20th, 2013, 12:20 pm

Re: 'Sprite-sheet's applicable or not ?

Post by Eagle_11 »

Oh, i see, better to leave it as is then.
Post Reply