Clearing the screen with FillRect faster than doing nothing?

Ok I thought this was strange…
I have one big 2560x2560 surface I blit from, to the screen which is
800x600. I used to need to call SDL_FillRect to clear the screen, which
is no longer needed so I figgured I would simply get rid of it and it
would give me a higher fps since I wouldnt be passing over the screen a
second time.

SDL_FillRect (this->game_video.getscreen(), NULL, BACKGROUNDCOLOR);

But it doesnt, if I remove it, I LOOSE 2fps. Does that make any sence?
The blit overwrites what FillRect does… how could removing it make it
go slower??–
Matt Pruett <@Matt_Pruett>

Solved it, I added a sdldelay(10) and removed it and got similar speeds
without it while dropping the cpu to 2%. It must have been something
with the cpu being maxed out.On Thu, 2005-06-16 at 13:38 -0700, Matt Pruett wrote:

Ok I thought this was strange…
I have one big 2560x2560 surface I blit from, to the screen which is
800x600. I used to need to call SDL_FillRect to clear the screen, which
is no longer needed so I figgured I would simply get rid of it and it
would give me a higher fps since I wouldnt be passing over the screen a
second time.

SDL_FillRect (this->game_video.getscreen(), NULL, BACKGROUNDCOLOR);

But it doesnt, if I remove it, I LOOSE 2fps. Does that make any sence?
The blit overwrites what FillRect does… how could removing it make it
go slower??


Matt Pruett <@Matt_Pruett>