Thanks a lot, Tarani. I should read maemo docs more careful :) I found the
tip of using valgrind under scratchbox in the Maemo Debugging Guide.

BTW I watched a top during the application was working. It took up to 80% of
memory and about 20% of CPU at some point. So, I'm going to trace it using
valgrind.

On 12/18/07, Tapani Pälli <[EMAIL PROTECTED]> wrote:
>
> ext Michael Stepanov wrote:
> > Hi,
> >
> > I ported existing SDL application to maemo platform. It works fine on
> > N800 but on Nokia770 ii crashes very often. And I suppose it happens
> > because the application takes a lot of recourses - memory or CPU. Can
> > somebody give me a right point to optimize that application - some
> > docs, hack, tips.
> >
> One thing to note is that make sure you are clipping properly all the
> drawing you do. However it sounds like there are some other bugs in the
> application. Try to run it in desktop environment using valgrind
> (http://valgrind.org/). Also from the optimization point of view, make
> sure you are converting all your surfaces to same format as screen has
> (using SDL_ConvertSurface for example).
>
> > Thanks in advance.
> >
> > --
> > Cheers,
> > Michael
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > maemo-developers mailing list
> > [email protected]
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
>
>
> // Tapani Pälli
>
> --
> Software Engineer
> Open Source Software Operations
>
>


-- 
Cheers,
Michael
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to