Page 1 of 1

sprites load too slow

PostPosted: Sep 17, 2005 @ 9:40am
by jaguard

PostPosted: Sep 17, 2005 @ 10:15am
by muff

PostPosted: Sep 17, 2005 @ 1:16pm
by kornalius
Why don't you group all the images that are the same size into a big image and draw your sprites using a different source rectangle? This would be a lot easier and would save a lot of memory too. 500 little images in seperate files is not a good design, you will have to change that for sure!

PostPosted: Sep 17, 2005 @ 5:36pm
by StephC
A good ressource manager should enable the coder to dump a binary image of your loaded sprites in memory, then you simply have to compress this image (if the sprites are RLE encoded you'll gain space comparing to the png version) and loading all your sprite will be as easy as loading and uncompressing a single file.

You may need a custom handle based memory manager for this feature...

PostPosted: Sep 17, 2005 @ 5:55pm
by jaguard

PostPosted: Sep 17, 2005 @ 6:29pm
by BIGBEN

PostPosted: Sep 17, 2005 @ 6:33pm
by Guest

PostPosted: Sep 17, 2005 @ 6:35pm
by StephC

PostPosted: Sep 17, 2005 @ 6:36pm
by muff

PostPosted: Sep 21, 2005 @ 11:01am
by jaguard

PostPosted: Sep 21, 2005 @ 3:05pm
by BIGBEN

PostPosted: Oct 7, 2005 @ 4:00pm
by _Andrey_