On Jun 30, 2010, at 11:24 PM, Alex Harrington wrote:

>> I changed the default for the div.crop attribute to false in svn,
>> because crop has been causing lots of performance problems.
> 
> Sorry - one more question about this.
> 
> Is it the fact that cropping is enabled on a div that causes the performance 
> issue, or does it only cause problems when there are nodes inside the div 
> that overhang its boundaries and therefore have to be cropped?
> 
> I'm just wondering what sort of performance hit/gain I could expect if I 
> either explicitly set my divs to crop=True but keep everything within their 
> boundaries or by allowing the change to set them all to False?


The speed hit happens whether or not anything is actually cropped. Behind the 
scenes, the cropping uses the OpenGL stencil buffer. It writes to the stencil 
buffer for every div that crops, and switching between normal writing to the 
back buffer and the stencil buffer seems to cause pipline flushes.

Given that the final crop shape can actually be any convex polygon (think 
multiple nested, rotated divs), I haven't found a better way of implementing 
this. Any ideas?

Cheers,

  Uli

--
Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: [email protected]
Skype: uzadow




_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to