>  Hi all, we are experencing strange behaviour in the Blit and Flip function.

First question - what is your system and gfx hardware ?

>  Basically if I set the primary surface with this DFBSurfaceDescription:
>       dsc.flags = DSDESC_CAPS;
>       dsc.caps = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
>
>  Then when I execute blit function on this primary surface nothing appears on 
> the display as expected, but, as far as I understood, I can execute the flip 
> function with the option:
>
>  DFBCHECK (primary->Flip (primary, NULL, DSFLIP_NONE)); I expected this 
> function to Flip immediatly, because I setted the NONE option, while it seems 
> to wait for some sort of shyncronization.
>  For sure the execution is extremely slow.

If you haven't hardware support then Flip() is copying the data from
shadow buffer into video memory. Usually it's very slow operation.

>  On the other hand when I set the Surface description with this option: 
> dsc.caps = DSCAPS_PRIMARY | DSCAPS_NONE; then the execution is 10 times 
> faster...
>
>  How is this possible, am I doing something wrong?
>
>  Furhtermore when I enable the alphachannel for the primary surface, by 
> setting the blitting flags to "DSBLIT_BLEND_ALPHACHANNEL" the flip/blit 
> performances slow extremely down...

Software blending is more slow than simple copying...

>  How can I improve this performance?

Enable the hardware support for gfx operation if it's possible.

-- 
Best Regards
Nikita Egorov
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to