Which is better, big spritesheet or a small sprite?

Hi there,

Currently i develop card game,

There are 52 type of cards.

Is better to put it into single image as a spritesheet or split it into 52 sprites?

And also, all 52 cards are shown or created on a single scene.

Thanks

About the file size, you could compare the two ways by yourself looking at the disk size of the files.

But, the real problem will be the dimensions of the one sprite with all cards. If it has more than 3000px x 6000px size, the CANVAS type won’t load the sprites in mobile devices and WEBGL will experiment performance issues, according to my own experience.

So, I do suggest you to split the sprite to small image files.

1 Like

Depends how fast your card game must be :slight_smile: If you need every last FPS you better use a spritesheet. As long as the GPU has the texture, it can draw it all in 1 call. Otherwise it will have to use a call for every texture (and switch them).
Also if you have small images, you’ll waste space (see power of 2 size).

2 Likes

Thank you, actually my spritesheets is less than 2000px

Thanks for your explanation