On Sun, 2002-12-08 at 12:05, Ville Syrjälä wrote:
> On Sun, Dec 08, 2002 at 02:38:52PM +0500, Antonino Daplas wrote:
> > On Sun, 2002-12-08 at 11:19, Ville Syrjälä wrote:
> > > Well, the async flip stuff would only work with triple buffering. With
> > > just two buffers you will end up drawing to the front buffer.
> > > 
> > Not necessarily. For standard 2d/3d apps, that is true. For frontends
> > that guarantee a steady frame rate, this is useful and you will have
> > extra CPU cycles to spare. I've been using this capabability, and I'm
> > only getting 1-3% cpu usage.
> 
> Well unless you have special hardware there's nothing to guarantee that
> the input and output are running in sync. With video players the input is
> usually synced to the audio card and output is synced to the video card.
> 
Right.  Mplayer uses both /dev/rtc + AV syncing (I think).  It sends the
video data to the backend and upon return, it processes the next frame
then checks for the time.  If it's too early, it delays the display of
the next frame, and if it's too late, it skips the next frame.

In effect, the backend (in this case, DirectFB) has nothing to do but
display the frame, and to make it pleasurable for the viewer, do the
flips during the sync pulse. Since Mplayer already guarantees that each
frame is delivered at the correct time, waiting for vsync is needed only
for hardware incapable of synchronous flips.

Tony
> -- 
> Ville Syrjälä
> [EMAIL PROTECTED]
> http://www.sci.fi/~syrjala/
> 
> 
> -- 
> Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
> "unsubscribe directfb-dev" as subject.
> 




--
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.

Reply via email to