[SDL] How do I implement double buffering graphics in S.D.L.(R)...
Peter Mulholland
darkmatter at freeuk.com
Fri Aug 4 08:04:24 PDT 2006
SlntHero at aol.com wrote:
> How do I implement double buffering graphics in S.D.L.(R)...
>
>
> Hi everyone,
>
> How do I draw to screen only a small part of the screen ?
>
> Screen is 640x480x32bit.
>
> Need to optimize game to run faster.
>
> Would like to draw only small part of the screen (ex: a 32x32 pixel part)
> each game frame.
Use SDL_UpdateRects() to only update the parts of the screen you have
changed.
You might be best profiling your code to see exactly where it's slow.
Updating parts of the screen isn't usually the answer.
Pete.
More information about the SDL
mailing list