Blit from the primary to another surface is very slow, if there is any problem in my code?
I tried the following code. ========================================================== ...... IDirectFBSurface *tempSurface; dfb->CreateSurface (dfb, &dsc, &tempSurface); /* The tempSurface is not primary. */ ...... while (...) { ...... primary->FillTriangle(....); primary->DrawLine(....); ..... primary->Flip (primary, NULL, DSFLIP_ONSYNC); /* Filp here because I want to save the primary surface to tempSurface. Is my thought correct? */ tempSurface->Blit(tempSurface, primary, NULL, 0, 0); primary->Blit(primary, tempSurface, NULL, 200, 200); /* Offset the previous screen. */ primary->Flip (primary, NULL, DSFLIP_ONSYNC); // Main loop flip ...... } ...... ========================================================== This loop had 0.5 second delay when "tempSurface->Blit(tempSurface, primary, NULL, 0, 0)" was executed. If I commented this line, no delay. Does anyone know the reason? Thanks a lot! Jack
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev