big gif files x multiple gifs files
Hi,
I have a question about performance:
Is it better to have a big gif file with all tiles, sprites, and all other graphics resource for a game? Or is better to have for example: a medium gif file holding all tiles, a gif file for each sprite?
In my opinion the second way is better, because I think that a big gif file is difficult to handle because I will have to crop individual tiles and frames for the sprite animation and the image gets a messy.
But anyway I just wanna heard your opiniions about this issue.
Tks
[563 byte] By [
luisoft] at [2007-9-30 11:37:26]

It totally depends on the number of colors in your images.
Remeber a GIF is limited to 256 colors, if you need more than this you will obviously have to split your tiles & animation frames across multiple gifs.
Ofcourse, the better solution is to use PNGs.
There is also the consideration of acceleration - large images will not be cached in vram, if you look at the assets of commercial titles, you will find the best size to go for is either 256x256 or 512x512.
You should perform the cropping as you render the images, as it will be no slower than precropping them, and will take a good deal less vram. (a 20x20 image when cached in vram will be expanded to 32x32)
Abuse at 2007-7-4 12:44:50 >
