[SDL] Optimal mode from SDL_GetVideoMode

Clemens Kirchgatterer clemens at 1541.org
Thu Oct 5 23:14:54 PDT 2006


benang at cs.its.ac.id wrote:

> I get it. And here I thought there's an error in my graphics card.
> Well, I didn't store the image in RWops type. I converted them when I
> read all the bitmap files to Surfaces so it should pose a problem.
> Also I only call SDL_Flip once in every loop. Or maybe I should've
> add some algorithm to check whether the surface is updated (so I
> don't have to Flip the screen) or not to improve the performance?

not only that. but you should use UpdateRect() instead of Flip if not
all of your srenn contents has changed.

clemens




More information about the SDL mailing list