Hi there,
I’m porting an SDL app from Linux to MacOSX, and I just ran it through
a profiler and it has given the most interesting results.
The most relevant is this: 73’8% of cpu time is being spent on a
function called SDL_AddTimer, when it is called by SDL_LowerBlit,
called from the one SDL_Flip my app does per frame. And I’m afraid I
don’t understand how could this possibly be :-S
A method (SDL_LowerBlit) used to copy pixels from one buffer to
another, is wasting most of its time creating timers??
I’m concerned about this because this app is going to be running in
laptops, in wich battery time is very dependant on cpu usage. If I
could minimize that 73’8%, even by a small amount, that would surely
mean a longer battery life.
Does anybody have any ideas of how to make SDL_LowerBlit be more
efficient in terms of cpu usage?
thanks in advance
bye