On Mon, 21 Jul 2003, Billy Biggs wrote: > Mark Vojkovich (mvojkovi@XFree86.Org): > > > > While I'm at it, how hard do you think it would be to do triple > > > buffering in the NVIDIA driver for this same problem? > > > > NVIDIA hardware can only double buffer. Using more buffers than two > > would require queuing them up and programming the new buffers in the > > interrupt handler. > > Can you query which buffer is being displayed? I'd just like to > replace tearing with frame drops if possible, so changing which buffer > is queued next would be sufficient. I know which one is being displayed, but I can't override the one that is pending. If I get a PutImage request and there is already one buffer being displayed and one pending, I have three choices. 1) Drop the new request entirely. 2) Spin until a buffer is free. 3) Overwrite the data in the pending buffer. This will tear if the buffer switches while your are overwriting. I currently do #3 and there is a #if in the "nv" driver allowing you to switch to #2. Mark. _______________________________________________ Devel mailing list Devel@XFree86.Org http://XFree86.Org/mailman/listinfo/devel