RE: [AD] BUG(?): Page flipping and vsync

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> > > In fullscreen mode, page-flipping really means flipping two pages
> > > of video
> > > memory, i.e moving the point in video memory from which the video card
> > > starts to send data to the monitor. In order to make sure
> that the flip
> > > doesn't happen in the middle of the screen retrace, we have to
> > > wait for the
> > > hotspot to be at the bottom of the screen.
> >
> > The same is true when windowed.
>
> Huh... no, it isn't. We simply can't flip the primary surface
> because we have
> not requested the DirectDraw exclusive mode. We use a couple of
> backbuffers
> which are alternatively block-copied onto the portion of the
> primary surface
> that makes up the window.

I meant we have to wait until it reaches the bottom :)

> > I have to call vsync manually to stop it from flickering and
> get a 'nice'
> > grayish colour. I don't have to do this with the fullscreen
> driver, so the
> > (added) call to vsync will do a double vsync and I get only 30 FPS.
> >
> > IMHO the windowed driver should implement vsync too.
>
> Yes, I'm now leaning towards your viewpoint. Does the attached
> patch for the
> 4.1.x series fit your needs?

Yes, it works beautifully! I now get a 'nice' grayish colour at exactly
60 Hz. I couln't be more happier!





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/