Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

E2DSurface's resize() waste too much time,how to handle that


E2DSurface's resize() waste too much time,how to handle that

Postby sunfred » Mar 11, 2009 @ 4:55am

resize() waste too much time,how to handle that?
sunfred
pm Member
 
Posts: 11
Joined: Nov 7, 2008 @ 4:53am


Postby edge » Mar 12, 2009 @ 10:04am

Hi SunFred,

The Resize() function should only be used at load-time, it isn't a realtime function because it uses filtering to improve downscaling quality.

For realtime operations, use Blt(). If you're loading and resizing a lot of images (and you want it to be faster), you could also cache the rescaled images. For caching you can write the resulting image as PNG and load it the next time you start the game (instead of the original, non-scaled images).
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