<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aiglx on Roberto Selbach</title><link>https://rselbach.com/tags/aiglx/</link><description>Recent content in Aiglx on Roberto Selbach</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 02 Aug 2006 21:03:00 +0000</lastBuildDate><atom:link href="https://rselbach.com/tags/aiglx/index.xml" rel="self" type="application/rss+xml"/><item><title>Two Roads to Composited Windows</title><link>https://rselbach.com/two-roads-to-composited-windows/</link><pubDate>Wed, 02 Aug 2006 21:03:00 +0000</pubDate><guid>https://rselbach.com/two-roads-to-composited-windows/</guid><description>&lt;p&gt;I enabled Compiz on a test machine today and immediately lost window borders. The cube worked, naturally. A desktop may be unusable, but at least it can be unusable on six rotating faces.&lt;/p&gt;
&lt;p&gt;The experiment clarified three pieces that are often bundled together in conversation. Compiz is the compositing window manager. It asks the X server for redirected window contents, combines those textures, and draws the resulting scene. Xgl is an X server built on top of OpenGL. AIGLX takes a different route by adding accelerated indirect GL rendering to the conventional X server and driver path.&lt;/p&gt;
&lt;p&gt;That difference affects setup and failure modes. With Xgl I start a separate server and run the session inside it. With AIGLX I keep the normal server architecture but depend on suitable server and driver support. Neither route makes every driver correct by declaration.&lt;/p&gt;
&lt;p&gt;For diagnosis I first remove decoration and plugins from the mystery. I run a plain window manager, confirm direct rendering information, then add composition. Useful checks include:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;glxinfo | grep direct
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;xdpyinfo | grep -i composite
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;compiz --replace gconf decoration move resize
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The exact plugin names and options are changing, so this is a notebook entry rather than scripture. The important mechanism is staged testing: server extension, GL path, window manager, then decorator.&lt;/p&gt;
&lt;p&gt;My missing borders came from the decorator not running, not from texture rendering. Starting it restored frames, though resizing still exposed corruption with this driver.&lt;/p&gt;
&lt;p&gt;I prefer AIGLX&amp;rsquo;s direction because it preserves more of the existing X server arrangement and avoids nesting a whole desktop on another server. The caveat is substantial: today Xgl may work better on a particular proprietary driver, while AIGLX support and performance vary. Architecture preferences do not repair hardware support.&lt;/p&gt;
&lt;p&gt;Before comparing speed, I also verify that both tests use the same resolution, colour depth, effects, and driver. Otherwise the benchmark measures configuration drift with impressive precision.&lt;/p&gt;
&lt;p&gt;These experiments are useful for KDE 4 because they reveal what a composited desktop might rely on, not because spinning windows constitute a completed desktop design. Effects must degrade gracefully, input must remain correct, and ordinary two-dimensional work must not become collateral damage. I have disabled the cube for now. It was beginning to look smug.&lt;/p&gt;</description></item></channel></rss>