On Fri, Nov 29, 2002 at 06:34:06AM +0200, Ville Syrj�l� wrote: > > You're not alone :(
Good. At least it's not just me then.
> I've been seeing some strange glitches as well. More
> so with direct rendering.
I have not tried "disabling" DR to see what effect that has.
> Have you tried doing
>
> if (vo_vsync) {
> int field;
> crtc2->GetCurrentOutputField( crtc2, &field );
> if (field)
> crtc2->WaitForSync( crtc2 );
> }
>
> just before Flip()?
In flip_page() or in before every call to Flip()?
> It seems to fix things for me but I'd like to be sure
> that it is the correct fix.
So we always wait for field 1 before Flip()ing? Why? Does this not
suggest an error somewhere in the logic DirectFB Flip()ping logic?
Should it not be sufficient to just write a frame to the framebuffer
and ask DirectFB to Flip() the buffers, and know that it will do it
synced with the vsync?
> Obviously there's still a slim chance that the
> field will change between the two function calls but I don't think there's
> anything we can do about that.
Indeed. But why do we need this in the first place?
b.
--
Brian J. Murrell
msg01117/pgp00000.pgp
Description: PGP signature
