[maemo-developers] Tips to optimize SDL aplication
From: Michael Stepanov michael at stepanoff.orgDate: Tue Dec 18 11:27:45 EET 2007
- Previous message: Tips to optimize SDL aplication
- Next message: Tips to optimize SDL aplication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <tapani.palli at nokia.com> 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 > > maemo-developers at maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > // Tapani Pälli > > -- > Software Engineer > Open Source Software Operations > > -- Cheers, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20071218/6f015f62/attachment.htm
- Previous message: Tips to optimize SDL aplication
- Next message: Tips to optimize SDL aplication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]