[SDL] Double buffering waitretrace and flickering

wahle at innercite.com wahle at innercite.com
Wed Aug 18 19:15:44 PDT 1999

What about locking the screen, then draw your stuff, then unlock and flip 
the buffer.

That might work.

On Wed, 18 Aug 1999 dtabuenc at cs.ucr.edu wrote:

> Perhaps I am totally clueless (or just used to opengl) but I was under
> the impression that all writes were to the backbuffer. If not How do
> you write to the backbuffer? I am just writing to the surface returned
> by SDL_SetVideoMode. How do I reach or write to that back buffer? 
> On 18 Aug, Michael Lunnay wrote:
> > are you drawing to the back buffer or to the screen. If you are drawing to
> > the screen you will still get the screen tearing as you are not wating for
> > the vsync of the monitor. you need to do all your work to the back buffer
> > and once that is complete you then flip the surface to display the contents.
> > 
> > hope this helps.
> > 

More information about the SDL mailing list