Peter Surda wrote:
> 
> On Sun, Sep 23, 2001 at 02:14:00PM +0200, Matthias Dahl wrote:
> > > What card do you have?
> >  Matrax G400 MAX (and quite happy with the DH stuff *grin*)
> k.
> 
> > Back to the original topic again. :) As Mark Vojkovich kindly pointed out, X
> > does not provide any way to check the vsync pulse. :(
> As he also pointed out that hardware automatically does this.
> At least ATI seems to do it when using monitor (but it fsckes up when I use
> tvout).
> 
> Anyway, I tried getting it working on my ATI with tvout, and I found a
> register in the docs that signals retrace status, however it still doesn't
> mix.
> 
> > I  consider  video output sync with the vsync pulse as quite important,
> > especially if you wanna watch high-quality video material on your home
> > computer. :(
> Indeed.
> 
> I suggest you do what I did: look the register number in docs and add
> something like this code into MGAPutImage just before MGADisplay422 is called,
> or perhaps directly to the beginning of MGADisplay422 function:
> 
> while (inreg(blah) == retrace_in_progress);
> while (inreg(blah) != retrace_in_progress);
> 
> This will end at the beginning of retrace cycle. I've been told by other
> developers that inreg is so slow that this also ensures the "while" isn't
> called millions of times and eat up cpu.
No MGA can do that without polling, If you only want to wait the next
vsync. I just mailed a patch at [EMAIL PROTECTED] Copy and past from
ATI driver for double buffers and use Vtotal rather than vcount. 

If you want a particular vsync then I'm not sure Xv is the right API, at
least on an unix like OS.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to