This site is no longer active and is available for archival purposes only. Registration and login is disabled.

sprites load too slow


sprites load too slow

Postby jaguard » Sep 17, 2005 @ 9:40am

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby muff » Sep 17, 2005 @ 10:15am

muff
 


Postby kornalius » Sep 17, 2005 @ 1:16pm

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!
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby StephC » Sep 17, 2005 @ 5:36pm

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...
Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby jaguard » Sep 17, 2005 @ 5:55pm

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby BIGBEN » Sep 17, 2005 @ 6:29pm

Last edited by BIGBEN on Sep 17, 2005 @ 6:33pm, edited 1 time in total.
User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby Guest » Sep 17, 2005 @ 6:33pm

Guest
 


Postby StephC » Sep 17, 2005 @ 6:35pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby muff » Sep 17, 2005 @ 6:36pm

muff
 


Postby jaguard » Sep 21, 2005 @ 11:01am

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby BIGBEN » Sep 21, 2005 @ 3:05pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby _Andrey_ » Oct 7, 2005 @ 4:00pm

With best regards, _Andrey_
http://www.wegroup.org
User avatar
_Andrey_
pm Member
 
Posts: 5
Joined: Sep 21, 2004 @ 1:40am
Location: Belarus


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron