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

Taking advantage of faster PNG load/display


Taking advantage of faster PNG load/display

Postby Jeffer » Nov 29, 2006 @ 3:57am

I'm looking for a quick fix to reduce the time/memory required to load and display PNG files. This only seems to affect VGA (I'm assuming just because of the file size differences its not as noticable with QVGA). I'm currently using 2.6 but understand that 2.8 and possibly 2.9 include improvements that may help me. I'm only displaying PNG files with BltFast and either E2DSurface or E2DSurfaceRGBA surfaces depending on the particular need.

How do I need to change these calls, or what new calls do I need to add to take advantage of the new faster routines? Or should I only have to rebuild? Which doesn't seem to help at all.
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Nov 29, 2006 @ 12:13pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Jeffer » Nov 29, 2006 @ 4:02pm

Yes I did a rebuild all with 2.9 but since it didn't seem to have any effect I was wondering if there were actually code changes I had to make to take advantage of the new features or if they were behind the scenes and should just get built in.

Yes, the PNG's are packed in EPK's
Jeffer
pm Member
 
Posts: 36
Joined: Mar 11, 2006 @ 7:31pm


Postby edge » Nov 29, 2006 @ 5:00pm

Hi Jeffer,

You may try to disable compression when adding .png pictures to your .EPK file to increase loading performance and decrease used memory.

If there are many files in the package (for example, more than 25) you can also get a speedup by using PackBuildIndex on the .EPK file (don't forget to delete the index pointer when closing the package).
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

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