[maemo-developers] Tips to optimize SDL aplication

From: Michael Stepanov michael at stepanoff.org
Date: Tue Dec 18 15:15:44 EET 2007
On 12/18/07, Eero Tamminen <eero.tamminen at nokia.com> wrote:
>
> Hi,
>
>
> The latter point is important because because image data is usually
> where SDL apps memory goes and having them as 16-bit instead of 32-bits
> can both almost halve the memory needs and (if the program was badly
> programmed to start with) almost double the performance.  The
> conversions can slow down the startup slightly though.


Excellent point, Eero! I checked the source code of the application and
found that a 32-bit surface is used there. So, I replaced it by 16-bit. I'll
able test it tonight and let you know. Thanks again for your suggestion.

CPU usage cannot get application crashing, so I wouldn't worry about
> clipping and screen updates yet, but Valgrind should be definitely
> used.  For instructions, see:
>         http://maemo.org/development/tools/doc/valgrind
>
>
>         - Eero
>



-- 
Cheers,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20071218/70e4d024/attachment.htm 
More information about the maemo-developers mailing list