View Full Version : Compiz caching window content. Navigate me to the source, plz.
Bohtvaroh
July 23rd, 2008, 12:13 PM
Hi all.
Compiz has the feature when switching between windows the window's content is cached and there is no visible widget tree repainting. Can someone tell me more verbosely how it works and where to look for it in the compiz source tree?
SmSpillaz
July 24th, 2008, 11:43 AM
As far as I know, it isn't 'cached', compiz just redraws the bits of the screen that are 'damaged', i.e they need redrawing because the toolkit drawing them either told the X server, or the X server picks this up. If you just want the code where compiz redraws only what is necessary, I'd have a look at the compiz-core source code and search for areas regarding 'damage'. I had a poke though myself, but couldn't find the relevant bits of code, but I know they are in there somewhere.
b0le
July 24th, 2008, 01:18 PM
You probably want to look at the composite extension (as this is doing what I think you are asking about (which may or may not be what you are actually asking...))
Bohtvaroh
July 24th, 2008, 02:48 PM
Yes, you're right. This is because of indirect composite rendering. Compiz 'exposes' only windows which are detected as being modified with XDamage extension. That is, if I understood correctly.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.