On Mon, Dec 09, 2002 at 02:58:42PM +0100, Denis Oliver Kropp wrote: > The following only applies to the specified circumstances: > If you specify DSLF_READ you will lock the system memory instance, but > write only goes into video memory directly (surfaces.c: 490). And after > writing to video memory you never will get the system instance again.
Yes I noticed :) I was messing about with the locking stuff and was wondering why on some occasions things were hideosly slow. After I found the reason in the surface code things were much better. But what I still don't understand that even when mplayer claims that it will only write to the surface I really must use DSLF_READ or the performance will drop. Apparently it's better to copy the frame in one big chunk rather than decode it directly to video memory. > > Perhaps we should just let the programmer worry about the signal and keep > > the DirectFB part very simple. So we just need a new DSFLIP_ASYNCHRONOUS > > (from the calling process' pov) And possibly a new layer capability flag > > DLCAPS_ASYNCHRONOUS_FLIP or something like that. > > What about DSFLIP_ONSYNC and DSFLIP_WAIT. > The old DSFLIP_WAITFORSYNC could be defined as DSFLIP_ONSYNC | DSFLIP_WAIT. > The only combination that wouldn't make sense is DSFLIP_WAIT without > DSFLIP_ONSYNC. Could work. Do you think we should still have a new layer capability flag? -- 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.
