[SDL] Re: CPU Usage

Olof Bjarnason olof.bjarnason at gmail.com
Sat Jul 30 02:59:51 PDT 2005


what are the number is you change to SDL_SWSURFACE?

/Olof

On 7/30/05, Diaa Sami <diaasami at yahoo.com> wrote:
> I'm drawing transparent images over 70% of the screen.
> but the FPS is low even without drawing(and without the limiter, of course)
> 
> when I draw nothing to the screen and turn off the fps limiter, I get
> around 95 fps.
> the code:
> 
>         // SDL setup
>         screen = SDL_SetVideoMode(640, 480, 0, SDL_HWSURFACE);
> 
>         // drawing loop
>         SDL_FillRect(screen, NULL, black);
>         SDL_UpdateRect(screen, 0, 0, 0, 0);
> 
> if this is normal, then I'll have to use SDL_UpdateRects to speed up the
> drawing, otherwise please tell me what's wrong with my SDL configuration.
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>



More information about the SDL mailing list